diff options
Diffstat (limited to 'meta-ibm/recipes-phosphor/dbus')
4 files changed, 38 insertions, 19 deletions
diff --git a/meta-ibm/recipes-phosphor/dbus/events-policy/config.yaml b/meta-ibm/recipes-phosphor/dbus/events-policy/config.yaml index 5c62d45a3..0d31afb2b 100644 --- a/meta-ibm/recipes-phosphor/dbus/events-policy/config.yaml +++ b/meta-ibm/recipes-phosphor/dbus/events-policy/config.yaml @@ -112,22 +112,3 @@ properties: occmemtemp property eventName: occ eventMessage: "Memory throttled due to an over temperature condition." - -- name: errorlog path group - class: group - group: path - members: - - meta: PATH - path: /xyz/openbmc_project/logging - -- name: pathwatch errorlog - class: pathwatch - pathwatch: path - paths: errorlog path group - pathcallback: create errorlog trap - -- name: create errorlog trap - class: pathcallback - pathcallback: eventpath - paths: errorlog path group - eventType: ErrorTrap diff --git a/meta-ibm/recipes-phosphor/dbus/phosphor-dbus-monitor-config.bbappend b/meta-ibm/recipes-phosphor/dbus/phosphor-dbus-monitor-config.bbappend index 3a18960ea..8437cba8f 100644 --- a/meta-ibm/recipes-phosphor/dbus/phosphor-dbus-monitor-config.bbappend +++ b/meta-ibm/recipes-phosphor/dbus/phosphor-dbus-monitor-config.bbappend @@ -2,7 +2,10 @@ PHOSPHOR_DBUS_MONITOR_CONFIGS_append_ibm-ac-server = " fan-policy" PHOSPHOR_DBUS_MONITOR_CONFIGS_append_ibm-ac-server = " thermal-policy" PHOSPHOR_DBUS_MONITOR_CONFIGS_append_ibm-ac-server = " power-supply-policy" PHOSPHOR_DBUS_MONITOR_CONFIGS_append_ibm-ac-server = " events-policy" +PHOSPHOR_DBUS_MONITOR_CONFIGS_append_ibm-ac-server = " snmp-policy" PHOSPHOR_DBUS_MONITOR_CONFIGS_append_mihawk = " fan-policy" PHOSPHOR_DBUS_MONITOR_CONFIGS_append_mihawk = " thermal-policy" PHOSPHOR_DBUS_MONITOR_CONFIGS_append_mihawk = " power-supply-policy" PHOSPHOR_DBUS_MONITOR_CONFIGS_append_mihawk = " events-policy" +PHOSPHOR_DBUS_MONITOR_CONFIGS_append_mihawk = " snmp-policy" +PHOSPHOR_DBUS_MONITOR_CONFIGS_append_p10bmc = " snmp-policy" diff --git a/meta-ibm/recipes-phosphor/dbus/snmp-policy.bb b/meta-ibm/recipes-phosphor/dbus/snmp-policy.bb new file mode 100644 index 000000000..500c674dc --- /dev/null +++ b/meta-ibm/recipes-phosphor/dbus/snmp-policy.bb @@ -0,0 +1,17 @@ +SUMMARY = "snmp policy configuration for meta-ibm machines" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit allarch +inherit phosphor-dbus-monitor + +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" + +SRC_URI += "file://snmp-config.yaml" + +do_install() { + install -D ${WORKDIR}/snmp-config.yaml ${D}${config_dir}/snmp-config.yaml +} + +FILES_${PN} += "${config_dir}/snmp-config.yaml" diff --git a/meta-ibm/recipes-phosphor/dbus/snmp-policy/snmp-config.yaml b/meta-ibm/recipes-phosphor/dbus/snmp-policy/snmp-config.yaml new file mode 100644 index 000000000..a168bde3f --- /dev/null +++ b/meta-ibm/recipes-phosphor/dbus/snmp-policy/snmp-config.yaml @@ -0,0 +1,18 @@ +- name: errorlog path group + class: group + group: path + members: + - meta: PATH + path: /xyz/openbmc_project/logging + +- name: pathwatch errorlog + class: pathwatch + pathwatch: path + paths: errorlog path group + pathcallback: create errorlog trap + +- name: create errorlog trap + class: pathcallback + pathcallback: eventpath + paths: errorlog path group + eventType: ErrorTrap |