11-17-2005 12:41 PM
Can anybody give me a hint where I'm doing a mistake looking for correct oid for my hardware.
I want to read via simple snmpget 5min cpu usage for SSL-PROXY module.
In mibs from Cisco ftp I've found:
CISCO-SSL-PROXY-MIB.oid:"cspCpuProcessUtilIn5Min" "1.3.6.1.4.1.9.9.370.1.18.1.1.8"
But when I try to read this value:
snmpget -c public -v 1 X.Y.Z.139 .1.3.6.1.4.1.9.9.370.1.18.1.1.8
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.9.9.370.1.18.1.1.8
Of course snmpwalk, for example for system tree works just fine.
I don't want to use mib files, just pure oids, could You please give me a hint, cause it must be something simple...
tia
11-17-2005 04:30 PM
You need to specify an instance at the end of the oid.
The instance is found by performing the snmpwalk first.
For example:
snmpget -c public -v 1 X.Y.Z.139 .1.3.6.1.4.1.9.9.370.1.18.1.1.8.0
or
snmpget -c public -v 1 X.Y.Z.139 .1.3.6.1.4.1.9.9.370.1.18.1.1.8.1
Notice the added .0 and .1 at the end of the oid.
11-18-2005 01:36 AM
I was trying to, but snmpwalk gives me that:
snmpwalk -Ofn -c public -v 1 X.Y.Z.139 .1.3.6.1.4.1.9.9.370.1.18.1.1.8
.1.3.6.1.4.1.9.9.370.1.18.1.1.8.3.70.68.85 = Gauge32: 0
.1.3.6.1.4.1.9.9.370.1.18.1.1.8.3.84.67.80 = Gauge32: 0
.1.3.6.1.4.1.9.9.370.1.18.1.1.8.3.83.83.76 = Gauge32: 0
Error: OID not increasing: .1.3.6.1.4.1.9.9.370.1.18.1.1.8.3.84.67.80
>= .1.3.6.1.4.1.9.9.370.1.18.1.1.8.3.83.83.76
So it's till not clear for me how to read this CPU usage and how do I find OIDs.
thx
11-18-2005 05:33 AM
Ok, there are two issues here:
- we don't know what the instances represent (3.70.68.85, 3.84.67.80 ...) Could these be ip addresses by any chance?
- you seem to be running into some kind of a bug, notice that the OID is not increasing
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