cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8418
Views
0
Helpful
5
Replies

How to find out catalyst 2950 current temperature

josephp
Level 1
Level 1

Hi Folk's,

I need a little help. is the a way to find out the temperature of a device from the command line?

Thanks,

JP

5 Replies 5

Collin Clark
VIP Alumni
VIP Alumni

AFAIK you can't.

Edison Ortiz
Hall of Fame
Hall of Fame

Edison-

That works on most devices, but not the 2950's.

Lucien Avramov
Level 10
Level 10

Is there a show envmon temp command?

If not supported on that device, please use SNMP as a workaround here is how:

First use the following mib object to get the snmp index no. for each

chassis type..

.1.3.6.1.4.1.9.9.13.1.3.1.2

ciscoEnvMonTemperatureStatusDescr OBJECT-TYPE

-- FROM CISCO-ENVMON-MIB

-- TEXTUAL CONVENTION DisplayString

SYNTAX OCTET STRING (0..32)

DISPLAY-HINT "255a"

MAX-ACCESS read-only

STATUS Current

DESCRIPTION "Textual description of the testpoint being

instrumented.

This description is a short textual label, suitable as a

human-sensible identification for the rest of the

information in the entry."

Example:

> snmpwalk -c public 172.16.99.1

.1.3.6.1.4.1.9.9.13.1.3.1.2

SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis inlet"

SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.2 = STRING: "chassis outlet 1"

SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.3 = STRING: "chassis outlet 2"

SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.4 = STRING: "chassis outlet 3"

The last no. in the oid above is the snmp index no. So as you can see

above, that for chassis outlet

3, the snmp index no. is 4.

Now we have to use the following mib object to get the tempearture . You

will append 4 the the

following object if you only want to get the temperature for outlet 3.

1.3.6.1.4.1.9.9.13.1.3.1.3

ciscoEnvMonTemperatureStatusValue OBJECT-TYPE

-- FROM CISCO-ENVMON-MIB

SYNTAX Gauge

MAX-ACCESS read-only

STATUS Current

DESCRIPTION "The current measurement of the testpoint being

instrumented."

Now using ucd-snmp, if I poll the router with indexes 1, 2 , 3 and 4, I

would get the temps as show

in the above command.

> snmpwalk -c public 172.16.99.1

.1.3.6.1.4.1.9.9.13.1.3.1.3.1

SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.1 = Gauge32: 25

> snmpwalk -c public 172.16.99.1

.1.3.6.1.4.1.9.9.13.1.3.1.3.2

SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.2 = Gauge32: 28

>snmpwalk -c public 172.16.99.1

.1.3.6.1.4.1.9.9.13.1.3.1.3.3

SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.3 = Gauge32: 34

> snmpwalk -c public 172.16.99.1

.1.3.6.1.4.1.9.9.13.1.3.1.3.4

SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.4 = Gauge32: 37

Last one with index 4 is the chassis outlet 3.

Leo Laohoo
Hall of Fame
Hall of Fame

Hi Joseph,

The only way to find out via CLI if the appliance temperature is good or not is to use the sh environment alarm command.

Please note, depending on the version of IOS you are using, can have some reporting errors caused by IOS bugs. I'm using the final version, EA13 and it's worked out well for me.

Hope this helps.

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: