hello
I'm doing some job with the NET-SNMP upon Linux.But there is something strange arised.
I wanted to write a MIB module of my own,but i didn't know how to start with it.
So i followed the tutorial in the web site: http://net-snmp.sourceforge.net/wiki...g_a_MIB_Module. As this is an example of how to write a MIB module. Then I've done the job as follows:
Firstly,I've downloaded the MIB named "NET-SNMP-TUTORIAL-MIB" from the web site,then I put this .txt file into the directory:/usr/local/share/ snmp/mibs; Then i've downloaded "example mib module"(nstAgentModuleObject.c) and "header file"(nstAgentModuleObject.h ) and put them into the directory:/usr/ local/src/net-snmp-5.1.4/agent/mibgroup.
Secondly,I entered the commands in the terminal as follows: # export MIBS=ALL # ./configure --with-mib-modules="nstAgentModuleObject" # make # make install
Then when i asked for a snmptranslate command,it gave me the right result: # snmptranslate -On NET-SNMP-TURORIAL-MIB::nstAgentModuleObject.0 .1.3.6.1.4.1.8072.2.4.1.1.1.0
but when i asked for a snmpget command,it gave me the result: # snmpget -v 2c -c xzpublic localhost NET-SNMP-TUTORIAL- MIB::nstAgentModuleObject.0 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0=No Such Object available on this agent at this OID
--
Thanks and Best Regards!
*******************************************
天通 浙江精电科技有限公司
TDG Technology Zhejiang Co., Ltd.
崔适南
arslan
软件工程师
Mobile Tel.: 86-15857380854
Web. Site: www.tdg-tech.com
*******************************************
To be
service (
standards
------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
