08-17-2009 06:48 AM - edited 03-06-2019 07:17 AM
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
08-17-2009 08:08 AM
AFAIK you can't.
08-17-2009 09:05 AM
Please refer to the documentation:
http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_s1.html#wp1162981
HTH,
__
Edison.
08-17-2009 09:13 AM
Edison-
That works on most devices, but not the 2950's.
08-17-2009 09:09 AM
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.
08-17-2009 02:22 PM
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.
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