hello:
I have install net-snmp agent 4.1.x, and i added a new MIB module.
Add the C code into it.it can start , the init routine can run.
Then when i asked for a snmptranslate command,it gave me the right
result:
[EMAIL PROTECTED]:~/Desktop$ snmptranslate -IR -On MachType
.1.3.6.1.4.1.29881.3.1.1
but when i asked for a snmpget command,it gave me the result:
[EMAIL PROTECTED]:~/Desktop$ snmpget -v 2c -c public 192.168.4.12
.1.3.6.1.4.1.29881.3.1.1.0
SNMPv2-SMI::enterprises.29881.3.1.1.0 = No Such Object available on this
agent at this OID
hy?Why it didn't return the correct value to me?Is there anything
important I ignored?
But when i entered the command as follows,it gave me the correct value:
[EMAIL PROTECTED]:~/Desktop$ snmpgetnext -v 2c -c public 192.168.4.12 .1
SNMPv2-MIB::sysDescr.0 = STRING: Linux sarge 2.6.22.8 #54 Wed Apr 16
10:14:16 CST 2008 mips
through my debug i find the object handler routine is not run when i run
"snmpget -v 2c -c public 192.168.4.12 .1.3.6.1.4.1.29881.3.1.1.0" this command!
Why?
Isn't i can't regster the object MIB tree?
help me!
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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