SNMPGET::no such object is found on this agent ...
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] 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
[email protected]
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 [email protected] immediately
and destroy all copies of this message and any attachments.
------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
snmp.conf
(application/octet-stream, 2.1 KB)
########################################################################### # # snmp.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: Default Authentication Options # # This section defines the default authentication # information. Setting these up properly in your # ~/.snmp/snmp.conf file will greatly reduce the amount of # command line arguments you need to type (especially for snmpv3). # defaultport: The default port number to use # This token specifies the default port number you want packets to # be sent to and received from. # override: with -p on the command line. # arguments: portnum defaultport 161 # defversion: The default snmp version number to use. # override: with -v on the command line. # arguments: 1|2c|3 defversion 2c # defcommunity: The default snmpv1 and snmpv2c community name to use when needed. # If this is specified, you don't need to include the community # name as an argument to the snmp applications. # override: with -c on the command line. # arguments: communityname defcommunity public ########################################################################### # SECTION: Textual mib parsing # # This section controls the textual mib parser. Textual # mibs are parsed in order to convert OIDs, enumerated # lists, and ... to and from textual representations # and numerical representations. # mibdirs: Specifies directories to be searched for mibs. # Adding a '+' sign to the front of the argument appends the new # directory to the list of directories already being searched. # arguments: [+]directory[:directory...] mibdirs C:\usr\share\snmp\mibs mibdirs C:\usr\share\snmp\mibs # mibs: Specifies a list of mibs to be searched for and loaded. # Adding a '+' sign to the front of the argument appends the new # mib name to the list of mibs already being searched for. # arguments: [+]mibname[:mibname...] mibs +ALL mibs +ALL
snmpd.conf
(application/octet-stream, 1.8 KB)
########################################################################### # # snmpd.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity public localhost # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity private localhost ########################################################################### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation COMMUNICATIONS-CRL # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact "GANESH YELLAPU"