On 20/04/07, Andy Fry <[EMAIL PROTECTED]> wrote:
> This is the difference between the two outputs, but I'm not entirely
> sure what's going on:
> from command line snmpget -c public -Dparse-mibs -m CISCO-PROCESS-MIB -v
> 1 129.127.71.2 CISCO-PROCESS-MIB::cpmCPUTotal5min.9 > name 2>&1
> < parse-mibs: Module CISCO-PROCESS-MIB already loaded
No - that's normal.
You've told the library to load the CISCO-PROCESS-MIB via the -m flag,
then you've told the library to load it again by including it in the name
of the object itself.
I suspect that
snmpget -c public -Dparse-mibs -m CISCO-PROCESS-MIB -v 1
129.127.71.2 :cpmCPUTotal5min.9
and
snmpget -c public -Dparse-mibs -v 1 129.127.71.2
CISCO-PROCESS-MIB::cpmCPUTotal5min.9
would both give basically the same output as the numeric form,
except for the final error:
> < CISCO-PROCESS-MIB::cpmCPUTotal5min.9: Unknown Object Identifier
> (Index out of range: 9 (cpmCPUTotalIndex))
I really don't understand that last message.
The definition of cpmCPUTotalIndex gives a range of 1..4294967295
so 9 is perfectly valid.
As a workaround, try
snmpget -Ir -c public -v 1 129.127.71.2
CISCO-PROCESS-MIB::cpmCPUTotal5min.9
(That's "minus-capital-i-lower-case-r")
Does that work?
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users