hi,all.
i want to add the new mib lib in net-snmp.
i got some file from
http://net-snmp.sourceforge.net/tutorial-5/toolkit/dlmod/
as example.
the following is my commands:

1.make nstAgentPluginObject.so
2.cp nstAgentPluginObject.so /usr/lib/
3.cp NET-SNMP-TUTORIAL-MIB.txt /usr/local/share/snmp/mibs/ (it's my mib tree 
home)
4.add the line  "dlmod nstAgentPluginObject /usr/lib/nstAgentPluginObject.so" 
into /etc/snmp/snmp.conf
5.snmptable -v 2c -c public localhost UCD-DLMOD-MIB::dlmodTable
the result is as the following:

SNMP table: UCD-DLMOD-MIB::dlmodTable
dlmodName                        dlmodPath dlmodError dlmodStatus
nstAgentPluginObject /usr/lib/nstAgentPluginObject.so loaded
6.snmpget -v 2c -c public localhost  
NET-SNMP-TUTORIAL-MIB::nstAgentPluginObject.0
the result is as the following:

NET-SNMP-TUTORIAL-MIB::nstAgentPluginObject.0 = No Such Object available on 
this agent at this OID

can someguy tell me what's my mistake.
thank u a lot.
it has bothered me a long time.
thank u again.

Reply via email to