08-02-2011 07:04 AM
Hey, guys
Currently I'm writing a script to get the temperature value via snmpget, but I can't find any temperature O.I.D. for this hardware. Can you help?
I tried mibbrowser software to make snmpwalk on the mib tree.I tried to connect some mibs, but that didn't help.
So I need advise or the definite oid, thank you.
08-02-2011 07:18 PM
You have to have the CERENT-ENVMON-MIB.mib loaded.
Look at oid .1.3.6.1.2.1.1.6.0 and see if the string says 15310MA. If it is not then these OIDs might not work.
If it does say 15310MA then look at oid .1.3.6.1.4.1.3607.2.80.20 for the cerentEnvMonTemperatureStatsTable. You should see something like this:
enterprises.3607.2.80.20.1.20.1 = STRING: "SYSTEM"
enterprises.3607.2.80.20.1.30.1 = Gauge32: 26
enterprises.3607.2.80.20.1.40.1 = Gauge32: 50
The middle number (in this case 26) is the temperature in Celcius.
Mike Dooley
Cisco Heartland TAC
08-03-2011 07:08 AM
Thank you very much!
08-09-2011 04:13 PM
No good. That doesn't work!
x # snmpget -c public -v 1 ip .1.3.6.1.4.1.3607.2.80.20.1.20.1
SNMPv2-SMI::enterprises.3607.2.80.20.1.20.1 = STRING: "SYSTEM"
x # snmpget -c public -v 1 ip .1.3.6.1.4.1.3607.2.80.20.1.30.1
SNMPv2-SMI::enterprises.3607.2.80.20.1.30.1 = Gauge32: 0
x # snmpget -c public -v 1 ip .1.3.6.1.4.1.3607.2.80.20.1.40.1
SNMPv2-SMI::enterprises.3607.2.80.20.1.40.1 = Gauge32: 50
I've got a disc with mibs for this network thing. There is A LOT of them on it. It is written that it does support a bunch of mibs, but which one do I need to use in mibbrowser to get the temperature value?
08-10-2011 06:12 AM
Vanessa...
You have to have the CERENT-ENVMON-MIB.mib loaded. And your output looks fine.
IMPORTANT--->Look at oid .1.3.6.1.2.1.1.6.0 and see if the string says 15310MA. If it is not then these OIDs might
not work.
This is the key. You are most likely looking at a 15310CL which a) does not return anything to the .1.3.6.1.2.1.1.6.0 OID and b) does not support the temperature measurement and returns "0" for the following:
x # snmpget -c public -v 1 ip .1.3.6.1.4.1.3607.2.80.20.1.30.1
SNMPv2-SMI::enterprises.3607.2.80.20.1.30.1 = Gauge32: 0
Mike Dooley
Cisco Heartland TAC
08-28-2011 12:44 PM
Thank you for your answers.
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: