cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
20085
Views
0
Helpful
2
Replies

SNMP OID for fan status and temperature CAT3560 (V1 & V2)

alexniko
Level 1
Level 1

Hello!

 

I have about 100 CAT3560(WS-C3560-48PS-S) and 70 CAT3560(WS-C3560V2-48PS-S).I try to get information about fan status and temp over SNMP. I found than this switches use differend OID to get fan status:

WS-C3560V2-48PS-S - .1.3.6.1.4.1.9.9.13.1.4.1.3.1007

WS-C3560-48PS-S - .1.3.6.1.4.1.9.9.13.1.4.1.3.1004

 

Is it right or i do something wrong?

 

2 Replies 2

Greetings,

The OID you entered contains the index for the device.

 

dot 1007 and dot 1004

 

All device may not use the same index. 

You have to check.

You can start by using snmpwalk on ciscoEnvMonMIB to see what your devices shows.

 

> snmpwalk -v2c -c<COMMUNITY> <DEVICE> .1.3.6.1.4.1.9.9.13

 

There is a great tool to help make sense of the OIDs on Cisco.com:

 

Click on Support, go to Tools section, click on View All Tools and then click on SNMP Object Navigator

 

You'll see what the OID means.

 

There is also a tool to find out if your device supports the shown MIB.

 

Simply click on the MIB and then search for your device and code version.

 

Cheers,

 

JFD

A bit more information to what Jean-Francois provided.

 

I have each of the switches listed running. Indexes seem fixed among the same model from what I've sampled, but it could be dependent on IOS version as well.  You would want to collect based on an arbitrary table rather than a fixed OID value.

 

In my case:

WS-C3560-48PS-S has no temperature sensor gauge data.

>snmpwalk ... v1.switch .1.3.6.1.4.1.9.9.13.1.3

.1.3.6.1.4.1.9.9.13.1.3 = No Such Object available on this agent at this OID

>snmpwalk ... v1.switch .1.3.6.1.4.1.9.9.13.1.4

.1.3.6.1.4.1.9.9.13.1.4.1.2.1004 = STRING: "Switch#1, Fan#1"
.1.3.6.1.4.1.9.9.13.1.4.1.3.1004 = INTEGER: 1

 

WS-C3560V2-48PS-S has both

>snmpwalk ... v2.switch .1.3.6.1.4.1.9.9.13.1.3

.1.3.6.1.4.1.9.9.13.1.3.1.2.1008 = STRING: "SW#1, Sensor#1, GREEN "
.1.3.6.1.4.1.9.9.13.1.3.1.3.1008 = Gauge32: 35
.1.3.6.1.4.1.9.9.13.1.3.1.4.1008 = INTEGER: 66
.1.3.6.1.4.1.9.9.13.1.3.1.5.1008 = INTEGER: 0
.1.3.6.1.4.1.9.9.13.1.3.1.6.1008 = INTEGER: 1

 

>snmpwalk ... v2.switch .1.3.6.1.4.1.9.9.13.1.4

.1.3.6.1.4.1.9.9.13.1.4.1.2.1007 = STRING: "Switch#1, Fan#1"
.1.3.6.1.4.1.9.9.13.1.4.1.3.1007 = INTEGER: 1

 

Note that for the fan status, they live at different indexes- 1004 for v1, 1007 for v2.

 

Hope that helps.