09-04-2024 11:23 PM
Hello to everybody. I need to monitor the status of several C9300 health in general. I mean that I want to know if the system led is green, amber or red via snmp variable: is there a such variable?
best regards
e.frediani - italy
09-04-2024 11:42 PM - edited 09-04-2024 11:43 PM
- I don't think there is an snmp oid in the supported MIBS for the 9300 that can query the led status (directly) ; from
https://github.com/cisco/cisco-mibs
You can look at related mibs and find and or test related OID's such as form :
https://github.com/cisco/cisco-mibs/blob/main/v2/CISCO-ENTITY-ALARM-MIB.my
https://github.com/cisco/cisco-mibs/blob/main/v2/CISCO-ALARM-MIB.my (corrected)
M.
09-05-2024 03:16 AM
I tried to snmpwalk through CISCO-ENTITY-ALARM-MIB and CISCO-ENTITY-MIB, but i suppose that these variables are not avalilable il C9300.
09-05-2024 04:05 AM
I try to explain further my need. I would like to check if the system reports an error like a fan removed. I see that if I unplug a fan from the C9300, the system led becomes amber, but I do not find an snmp variable that makes evident this anomaly. I tried to use the CiscoEnvMonState but this variable only shows the fans connected (working or not) but it does not show the fans removed.
Before unplugging a fan:
snmpwalk -c xxxxx -v 2c 192.168.1.1 1.3.6.1.4.1.9.9.13.1.4.1.3
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1017 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1018 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1019 = INTEGER: 1
After unplugging one fan:
snmpwalk -c xxxxx -v 2c 192.168.1.1 1.3.6.1.4.1.9.9.13.1.4.1.3
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1018 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1019 = INTEGER: 1
You can see that the command has one row less, but in general I don't know how many fans a switch has. I think that the snmpwalk should show always 3 lines, with one of them with a value grater than '1'.
Do you think could be another snmp variable that could tell me that a fan has been removed?
thank you
09-05-2024 05:31 AM - edited 09-05-2024 09:54 AM
- In can be difficult to find the correct OID for 'the alarm that we need' , you could also look into :
https://github.com/cisco/cisco-mibs/blob/main/v2/CISCO-ENTITY-FRU-CONTROL-CAPABILITY.my
and start testing with stuff as cefcMIBFanTrayStatusGroup , cefcFanTrayOperStatus
In that context it is then always advised to enable all snmp traps and also have an snmp trap receiver installed
to get alarms based on snmp traps being send from the switch,
M.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide