cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13352
Views
30
Helpful
9
Replies

Getting SNMP data out of a ASR9k router

Hi,

I am trying to build som quick snmp-checks from Nagios to the ASR.

I want to be able to monitor the state of the temperature, hd, fan and power. I am really having trouble getting the right data from the box.

Anyone who did this with success?

Regards

Andreas

2 Accepted Solutions

Accepted Solutions

Alexei Kiritchenko
Cisco Employee
Cisco Employee

Hi Andreas,

I am not sure if the disk usage is available. For the rest you can use "CISCO-ENTITY-SENSOR-MIB" to retrieve sensor entity information.

Below are the OID's you should use:

entSensorValue - 1.3.6.1.4.1.9.9.91.1.1.1.1.4 - This will give you each of the sensor values for (Temp, Voltage, Fan Speed, etc...)

entSensorType - 1.3.6.1.4.1.9.9.91.1.1.1.1.1 - This variable indicates the type of data reported by the entSensorValue.

entPhysicalName - 1.3.6.1.2.1.47.1.1.1.1.7 - This is the textual name of the physical entity your querying so you can match it up with index value from above.

For example:

FAN speed

entPhysicalDescr

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.2 | grep -i "fan speed sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.6869781 = STRING: "Fan Speed Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.11741762 = STRING: "Fan Speed Sensor"

entPhysicalName

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "speed"  

SNMPv2-SMI::mib-2.47.1.1.1.1.7.6869781 = STRING: "speed 0/FT1/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.11741762 = STRING: "speed 0/FT1/SP"

Geting Fan Speed

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.6869781

     SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.6869781 = INTEGER: 3540

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.11741762

     SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.11741762 = INTEGER: 3510

Current

snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.2 | grep -i "power module current"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.39039503 = STRING: "Power Module Current Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.49413261 = STRING: "Power Module Current Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.53687180 = STRING: "Power Module Current Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.61976104 = STRING: "Power Module Current Sensor"

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "current 0/pm"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.39039503 = STRING: "current 0/PM3/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.49413261 = STRING: "current 0/PM1/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.53687180 = STRING: "current 0/PM0/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.61976104 = STRING: "current 0/PM4/SP"

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.39039503

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.39039503 = INTEGER: 7200

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.49413261

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.49413261 = INTEGER: 7000

Voltage

snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "voltage 0/pm"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.3355929 = STRING: "voltage 0/PM0/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.11644853 = STRING: "voltage 0/PM4/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.22263542 = STRING: "voltage 0/PM3/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.32635680 = STRING: "voltage 0/PM1/SP"

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.3355929

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.3355929 = INTEGER: 53805

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.11644853

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.11644853 = INTEGER: 54207

View solution in original post

i mean not just the community, but that the community belong to the SystemOwner.

so, for example, if i have the community public, the complete command would be:

"snmp-server community public SystemOwner"

having only "snmp-server community public" won't allow us to poll the environmental information.

/A

View solution in original post

9 Replies 9

Alexei Kiritchenko
Cisco Employee
Cisco Employee

Hi Andreas,

I am not sure if the disk usage is available. For the rest you can use "CISCO-ENTITY-SENSOR-MIB" to retrieve sensor entity information.

Below are the OID's you should use:

entSensorValue - 1.3.6.1.4.1.9.9.91.1.1.1.1.4 - This will give you each of the sensor values for (Temp, Voltage, Fan Speed, etc...)

entSensorType - 1.3.6.1.4.1.9.9.91.1.1.1.1.1 - This variable indicates the type of data reported by the entSensorValue.

entPhysicalName - 1.3.6.1.2.1.47.1.1.1.1.7 - This is the textual name of the physical entity your querying so you can match it up with index value from above.

For example:

FAN speed

entPhysicalDescr

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.2 | grep -i "fan speed sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.6869781 = STRING: "Fan Speed Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.11741762 = STRING: "Fan Speed Sensor"

entPhysicalName

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "speed"  

SNMPv2-SMI::mib-2.47.1.1.1.1.7.6869781 = STRING: "speed 0/FT1/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.11741762 = STRING: "speed 0/FT1/SP"

Geting Fan Speed

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.6869781

     SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.6869781 = INTEGER: 3540

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.11741762

     SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.11741762 = INTEGER: 3510

Current

snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.2 | grep -i "power module current"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.39039503 = STRING: "Power Module Current Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.49413261 = STRING: "Power Module Current Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.53687180 = STRING: "Power Module Current Sensor"

SNMPv2-SMI::mib-2.47.1.1.1.1.2.61976104 = STRING: "Power Module Current Sensor"

root@Slack:~# snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "current 0/pm"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.39039503 = STRING: "current 0/PM3/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.49413261 = STRING: "current 0/PM1/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.53687180 = STRING: "current 0/PM0/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.61976104 = STRING: "current 0/PM4/SP"

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.39039503

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.39039503 = INTEGER: 7200

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.49413261

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.49413261 = INTEGER: 7000

Voltage

snmpwalk -v2c -c public obama 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "voltage 0/pm"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.3355929 = STRING: "voltage 0/PM0/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.11644853 = STRING: "voltage 0/PM4/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.22263542 = STRING: "voltage 0/PM3/SP"

SNMPv2-SMI::mib-2.47.1.1.1.1.7.32635680 = STRING: "voltage 0/PM1/SP"

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.3355929

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.3355929 = INTEGER: 53805

snmpwalk -v2c -c public obama 1.3.6.1.4.1.9.9.91.1.1.1.1.4.11644853

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.11644853 = INTEGER: 54207

Hi,

I have already tried this, but i dont get any match when i grep after power module or fan/speed. Is there any difference if the routers are powerd by -48vdc? The fans should still be able to monitor since they are located in the ASR9k Chassis?

XR version is 4.1.0.

/Andreas

Hi Andreas,

do you have asr9k-mgbl PIE installed?

do you have 9010 or 9006 chassis?

/A

Yes i have the asr9k-mgbl PIE installed. It is a 9006 chassis.

Hi Andreas,

Does the community on the ASR has SystemOwner permissions attached to it?

     snmp-server community xyz SystemOwner

/A

Yes the snmp-server community is configured.

i mean not just the community, but that the community belong to the SystemOwner.

so, for example, if i have the community public, the complete command would be:

"snmp-server community public SystemOwner"

having only "snmp-server community public" won't allow us to poll the environmental information.

/A

OK!

Now were talking..

The SystemOwner solved the problem.

Thanx!

Hi Alexei,

I'm able to get the power information but not the fan speed with 5.1.3. But I can get it with 5.3.4. I had "snmp-server community public SystemOwner" configured. Do you know the reason?

 

Thanks,

William

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: