Posted on June 11, 2020 8:58 am
 |  Asked by kang Minjun
 |  100 views
RESOLVED
0
0
Print Friendly, PDF & Email

I’d like to find the contents below.

Fan, Power : status, error code, error message, temperature ..etc

Please give me OID informations.

0
Posted by Akshita
Answered on June 11, 2020 10:26 am

Thanks for writing it to the portal.

Below mentioned are the MIBs that will provide the information required:-

• ENTITY-MIB
• ENTITY-SENSOR-MIB
• ENTITY-STATE-MIB

Using the above MIBs, the OIDs can be extracted respectively.

Sw#show snmp mib walk . | grep "ENTITY-MIB"
ENTITY-MIB::entPhysicalDescr[1] = STRING: 48 SFP+ + 4 QSFP+ 1RU
ENTITY-MIB::entPhysicalDescr[100004002] = STRING: Scd Chip 2
ENTITY-MIB::entPhysicalDescr[100004196] = STRING: Standby Cpld Chip 196
ENTITY-MIB::entPhysicalDescr[100006001] = STRING: Cpu temp sensor
ENTITY-MIB::entPhysicalDescr[100006002] = STRING: Cpu board temp sensor
ENTITY-MIB::entPhysicalDescr[100006003] = STRING: Back-panel temp sensor
ENTITY-MIB::entPhysicalDescr[100006004] = STRING: Board sensor
ENTITY-MIB::entPhysicalDescr[100006005] = STRING: Front-panel temp sensor

Similarly, it can be done for ENTITY-SENSOR-MIB and ENTITY-STATE-MIB too.

Now, we can use the particular index to find the specific OID:-
For example to find the specific OID for “ Cpu temp sensor” we can use the index number from above “ENTITY-MIB::entPhysicalDescr[100006001] = STRING: Cpu temp sensor” as mentioned below:-
switch#sh snmp mib translate SNMPv2-MIB::sysDescr.100006001
.1.3.6.1.2.1.1.1.100006001

Now, as per the requirement, we need the OIDs specifically for:-
—power
—fan
—temperature

The below mentioned example can be used to fetch the MIBs and OIDs as required:-

For OID from PSU
Arista#show snmp mib walk entPhysicalDesc | egrep "PowerSupply.$"
ENTITY-MIB::entPhysicalDescr[100711000] = STRING: PowerSupply1
ENTITY-MIB::entPhysicalDescr[100721000] = STRING: PowerSupply2
Arista#

For OID from Fan
Arista#show snmp mib walk entPhysicalDesc | grep "Fan"
h snmp mib walk entPhysicalDesc | grep "Fan"
ENTITY-MIB::entPhysicalDescr[100601000] = STRING: Fan Tray Slot 1
ENTITY-MIB::entPhysicalDescr[100601100] = STRING: Fan Tray 1
ENTITY-MIB::entPhysicalDescr[100601110] = STRING: Fan Tray 1 Fan 1
ENTITY-MIB::entPhysicalDescr[100601111] = STRING: Fan Tray 1 Fan 1 Sensor 1
ENTITY-MIB::entPhysicalDescr[100602000] = STRING: Fan Tray Slot 2
ENTITY-MIB::entPhysicalDescr[100602100] = STRING: Fan Tray 2
ENTITY-MIB::entPhysicalDescr[100602110] = STRING: Fan Tray 2 Fan 1
ENTITY-MIB::entPhysicalDescr[100602111] = STRING: Fan Tray 2 Fan 1 Sensor 1

For the Old for temperature
#show snmp mib walk entPhysicalDesc | grep sensor
ENTITY-MIB::entPhysicalDescr[100006001] = STRING: Cpu temp sensor
ENTITY-MIB::entPhysicalDescr[100006002] = STRING: Cpu board temp sensor
ENTITY-MIB::entPhysicalDescr[100006003] = STRING: Back-panel temp sensor
ENTITY-MIB::entPhysicalDescr[100006004] = STRING: Board sensor
ENTITY-MIB::entPhysicalDescr[100006005] = STRING: Front-panel temp sensor
ENTITY-MIB::entPhysicalDescr[100711103] = STRING: Input current sensor
ENTITY-MIB::entPhysicalDescr[100711104] = STRING: Output current sensor
ENTITY-MIB::entPhysicalDescr[100711105] = STRING: Input voltage sensor
ENTITY-MIB::entPhysicalDescr[100711106] = STRING: Output voltage sensor
ENTITY-MIB::entPhysicalDescr[100721103] = STRING: Input current sensor

Furthermore, please refer to the below mentioned link for more information:-
https://www.arista.com/en/support/product-documentation/arista-snmp-mibs

Thanks and Regards

Akshita

That's not the answer I want. If Fan is taken out, oid value is not identified. If an error occurs, how can I check the oid value? In conclusion, oid information is needed that can be identified when a fan has an abnormality.
(kang Minjun at June 12, 2020 5:58 am)

Post your Answer

You must be logged in to post an answer.