1mib: ES4552BH2-MIB
2modules:
3    os:
4        hardware: ES4552BH2-MIB::swModelNumber.1
5        serial: ES4552BH2-MIB::swSerialNumber.1
6        version: ES4552BH2-MIB::swOpCodeVer.1
7    sensors:
8        pre-cache:
9            data:
10                -
11                    oid:
12                        - portTransceiverThresholdInfoTable
13                        - portName
14        voltage:
15            data:
16                -
17                    oid: portOpticalMonitoringInfoTable
18                    value: portOpticalMonitoringInfoVcc
19                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.2.11.1.3.{{ $index }}'
20                    descr: '{{ $portName }}'
21                    index: 'portOpticalMonitoringInfoVcc.{{ $index }}'
22                    low_warn_limit: portTransceiverThresholdInfoVccLowWarn
23                    low_limit: portTransceiverThresholdInfoVccLowAlarm
24                    warn_limit: portTransceiverThresholdInfoVccHighWarn
25                    high_limit: portTransceiverThresholdInfoVccHighAlarm
26        current:
27            data:
28                -
29                    oid: portOpticalMonitoringInfoTable
30                    value: portOpticalMonitoringInfoTxBiasCurrent
31                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.2.11.1.4.{{ $index }}'
32                    descr: '{{ $portName }} - Tx'
33                    index: 'portOpticalMonitoringInfoTxBiasCurrent.{{ $index }}'
34                    low_warn_limit: portTransceiverThresholdInfoTxBiasCurrentLowWarn
35                    low_limit: portTransceiverThresholdInfoTxBiasCurrentLowAlarm
36                    warn_limit: portTransceiverThresholdInfoTxBiasCurrentHighWarn
37                    high_limit: portTransceiverThresholdInfoTxBiasCurrentHighAlarm
38                    divisor: 1000
39        dbm:
40            data:
41                -
42                    oid: portOpticalMonitoringInfoTable
43                    value: portOpticalMonitoringInfoTxPower
44                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.2.11.1.5.{{ $index }}'
45                    descr: '{{ $portName }} - Tx'
46                    index: 'portOpticalMonitoringInfoTxPower.{{ $index }}'
47                    low_warn_limit: portTransceiverThresholdInfoTxPowerLowWarn
48                    low_limit: portTransceiverThresholdInfoTxPowerLowAlarm
49                    warn_limit: portTransceiverThresholdInfoTxPowerHighWarn
50                    high_limit: portTransceiverThresholdInfoTxPowerHighAlarm
51                -
52                    oid: portOpticalMonitoringInfoTable
53                    value: portOpticalMonitoringInfoRxPower
54                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.2.11.1.6.{{ $index }}'
55                    descr: '{{ $portName }} - Rx'
56                    index: 'portOpticalMonitoringInfoRxPower.{{ $index }}'
57                    low_warn_limit: portTransceiverThresholdInfoRxPowerLowWarn
58                    low_limit: portTransceiverThresholdInfoRxPowerLowAlarm
59                    warn_limit: portTransceiverThresholdInfoRxPowerHighWarn
60                    high_limit: portTransceiverThresholdInfoRxPowerHighAlarm
61        temperature:
62            data:
63                -
64                    oid: portOpticalMonitoringInfoTable
65                    value: portOpticalMonitoringInfoTemperature
66                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.2.11.1.2.{{ $index }}'
67                    descr: '{{ $portName }}'
68                    index: 'portOpticalMonitoringInfoTemperature.{{ $index }}'
69                    low_warn_limit: portTransceiverThresholdInfoTemperatureLowWarn
70                    low_limit: portTransceiverThresholdInfoTemperatureLowAlarm
71                    warn_limit: portTransceiverThresholdInfoTemperatureHighWarn
72                    high_limit: portTransceiverThresholdInfoTemperatureHighAlarm
73                -
74                    oid: switchThermalTempTable
75                    value: switchThermalTempValue
76                    group: 'Unit {{ $subindex0 }}'
77                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.1.11.1.3.{{ $index }}'
78                    descr: 'Unit {{ $subindex0 }} Thermal {{ $subindex1 }}'
79                    index: 'switchThermalTempValue.{{ $index }}'
80        fanspeed:
81            data:
82                -
83                    oid: switchFanTable
84                    value: switchFanOperSpeed
85                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.1.9.1.6.{{ $index }}'
86                    group: 'Unit {{ $subindex0 }}'
87                    descr: 'Unit {{ $subindex0 }} Fan {{ $subindex1 }}'
88                    index: 'switchFanOperSpeed.{{ $index }}'
89        state:
90            data:
91                -
92                    oid: switchFanTable
93                    value: switchFanStatus
94                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.1.9.1.3.{{ $index }}'
95                    group: 'Unit {{ $subindex0 }}'
96                    descr: 'Unit {{ $subindex0 }} Fan {{ $subindex1 }}'
97                    index: 'switchFanStatus.{{ $index }}'
98                    state_name: switchFanStatus
99                    states:
100                        - { value: 1, generic: 0, graph: 1, descr: ok }
101                        - { value: 2, generic: 2, graph: 1, descr: failure }
102                -
103                    oid: switchInfoTable
104                    value: swPowerStatus
105                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.1.3.1.8.{{ $index }}'
106                    descr: Power state
107                    index: 'swPowerStatus.{{ $index }}'
108                    state_name: swPowerStatus
109                    states:
110                        - { value: 1, generic: 1, graph: 1, descr: internalPower }
111                        - { value: 2, generic: 0, graph: 1, descr: redundantPower }
112                        - { value: 3, generic: 0, graph: 1, descr: internalAndRedundantPower }
113                -
114                    oid: switchInfoTable
115                    value: swRoleInSystem
116                    num_oid: '.1.3.6.1.4.1.259.6.10.120.1.1.3.1.9.{{ $index }}'
117                    descr: Switch role
118                    index: 'swRoleInSystem.{{ $index }}'
119                    state_name: swRoleInSystem
120                    states:
121                        - { value: 1, generic: 0, graph: 1, descr: master }
122                        - { value: 2, generic: 0, graph: 1, descr: backupMaster }
123                        - { value: 3, generic: 0, graph: 1, descr: slave }
124