> When I try to give snmpget ,like the following command
> snmpget -v 2c -c public 10.116.20.5 ip.ipForwarding.0
> I am getting the result as follows
> .1.3.6.1.2.1.4.1.0 forwarding
> and I am not getting the value of the forwarding as either 1 or 2
Yes, in fact you are. Look at the packet dump - the last three
octets "02 01 01" are encoding the value "INTEGER 1"
What's happening is that the "snmpget" command is using the MIB file
to convert this (numeric) value into the text label associated with
that file. So in fact this is happening because the command *is*
finding the MIB file, not because it isn't.
If you want to see the numeric results, try:
snmpget -Oe -v 2c -c public 10.116.20.5 ip.ipForwarding.0
^^^
Dave
PS: It wasn't actually necessary to include the IP-MIB, since this is
part of what's shipped with the Net-SNMP suite anyway.
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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