cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
15038
Views
20
Helpful
7
Replies

CAT3750 Temperature via OID

thomascollins
Level 3
Level 3

Hello,

I have a 3750 that should support temperature readings (WS-C3750G-48TS). In fact through CLI I can get the exact temperature:

show env all

FAN is OK

TEMPERATURE is OK

Temperature Value: 40 Degree Celsius

Temperature State: GREEN

Yellow Threshold : 56 Degree Celsius

Red Threshold : 66 Degree Celsius

POWER is OK

RPS is NOT PRESENT

So it would seem that I should be able to read the temperature via SNMP. But the OID that I thought it was, returns nothing:

snmpget -v1 -cmystring myswitch 1.3.6.1.4.1.9.9.13.1.3.1.3

Error in packet

Reason: (noSuchName) There is no such variable name in this MIB.

Failed object: SNMPv2-SMI::enterprises.9.9.13.1.3.1.3

I read somewhere else that the OID might be different because these are stackable switches? Not sure if that is true?

2 Accepted Solutions

Accepted Solutions

nhabib
Level 9
Level 9

Try snmpwalk instead of snmpget and see if you have better success.

View solution in original post

unbrowser
Level 1
Level 1

It seems you are trying to retrieve this object.

CISCO-ENVMON-MIB::ciscoEnvMonTemperatureStatusValue

This is a column in the table ciscoEnvMonTemperatureStatusTable. You need to append an index to the OID if you want to retrieve table entries. You can use the snmpwalk command or a free MIB browser such as Unbrowse or iReasoning to find out the index values.

View solution in original post

7 Replies 7

nhabib
Level 9
Level 9

Try snmpwalk instead of snmpget and see if you have better success.

unbrowser
Level 1
Level 1

It seems you are trying to retrieve this object.

CISCO-ENVMON-MIB::ciscoEnvMonTemperatureStatusValue

This is a column in the table ciscoEnvMonTemperatureStatusTable. You need to append an index to the OID if you want to retrieve table entries. You can use the snmpwalk command or a free MIB browser such as Unbrowse or iReasoning to find out the index values.

Wow perfect thanks guys. SNMPWALK showed me the correct OID. Oddly, it is .1005. Not sure why?

snmpwalk -v1 -cmystring myswitch 1.3.6.1.4.1.9.9.13.1.3.1.3

SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.1005 = Gauge32: 40

Any idea what it might be .1005? It does appear to be consistant for all my switches, so it'll work.

THANKS!!!

Hi Thomas

Since its your master switch you're getting the temperature from, the 1005 number indicates that its switch number 1 which is the master..

I have a stack where switch 2 is the master, on that switch stack i need to poll the mib with .2005 at the end of the OID.

Interesting, thanks!

Hi there, do you know the default values (normal, warning, critical) of temperature for the this catalyst. What value is for default warning and critial. Thanks

You can see this via the "show env temp status" command.  Here's mine:

#show env temp status

Temperature Value: 28 Degree Celsius

Temperature State: GREEN

Yellow Threshold : 46 Degree Celsius

Red Threshold    : 60 Degree Celsius

Also, I created a Cacti template for graphing the temperature on a 3750 stack, if anyone's interested:

https://www.hightail.com/download/OGhjc2ZGSWhZY1FLSk1UQw