hi i am using windows xp + netsnmp5.5+ visual studio 2008
i wanted to extend agent by using NET-SNMP-TUTORIAL-MIB. i copied nstAgentModuleObject.c nstAgentModuleObject.h (downloaded from tuotorials) into c:\net-snmp-5.5\agen\mibgroup\ i added the following lines #include "mibgroup/nstAgentModuleObject.h" to c:\net-snmp-5.5\win32\mib_module_includes.h and if (should_init("nstAgentModuleObject")) init_nstAgentModuleObject(); to c:\net-snmp-5.5\win32\mib_module_inits.h next i rebuilt the 1.netsnmpmibssdk project and 2. snmpdsdk project. Both builds were succeeded. i follwed "Microsoft Visual C++ - Extending the Agent" from readme.win32 and the tutorial "writing a MIB module". i reconfigured the agent using snmpconf command now snmptranslate is working but when i tried to run snmpget and snmpset,they are not working properly. c:\usr\bin>snmptranslate -On -IR nstAgentModuelObject .1.3.6.1.4.1.8072.2.4.1.1.1 c:\usr\bin>snmpget -c public -v 2c localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuelObject.0 NET-SNMP-TUTORIAL-MIB::nstAgentModuelObject.0 no such object is availble on this agent at this oid c:\usr\bin>snmpset -c priavte -v 2c localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuelObject.0 i 999 Error in packet: Reason not writable (that object doesnot support modification) Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentModuelObject.0 Kindly find the attachments(snmpd.conf and snmp.conf) and help me inthis regard. Looking forward to the answers to this problem. Thank you with reagards ganesh y Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Bharat Electronics or supp...@bel.co.in immediately and destroy all copies of this message and any attachments.------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Bharat Electronics or supp...@bel.co.in immediately and destroy all copies of this message and any attachments.
snmp.conf
Description: Binary data
snmpd.conf
Description: Binary data
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users