net-snmp Agentx

mass mass <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello all,

First time i am posting the query on tis group, I have joined a day before.

I have done installation of net-snmp and i am trying the daemon example
given at net-snmp tutorials
http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demon/ . I am trying
code with agentx support. I have done following steps:

1) copied NET-SNMP-TUTORIAL-MIB.txt to    /usr/share/snmp/mibs directory.

2) # export MIBS=+NET-SNMP-TUTORIAL-MIB.txt

3)copied all files given in example. also added 'master agentx' line at end
of the snmpd.conf file.

4) %make example-demon
    After this binary file is get generated.

5) % ./example-demon &

PROBLEM IS HERE:

6)snmpget -v1 -c public localhost
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0

*THIS GIVES:*

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0

7)# snmptranslate -Td -M+. -mNET-SNMP-TUTORIAL-MIB -IR
nstAgentSubagentObject.0

*THIS GIVES:*

NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject
nstAgentSubagentObject OBJECT-TYPE
  -- FROM NET-SNMP-TUTORIAL-MIB
  SYNTAX Integer32
  MAX-ACCESS read-write
  STATUS current
  DESCRIPTION "This is an object that simply supports a writable integer
 when attached to the agent.  The object should be accessible
 when the agentx subagent containing this object is attached.
 See http://www.net-snmp.org/tutorial-5/toolkit/XXX for
 further implementation details."
  DEFVAL { 2 }
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
netSnmp(8072) netSnmpExamples(2) netSnmpTutorialMIB(4) nstMIBObjects(1)
nstAgentModules(1) 2 }


8)# snmpget -v1 -c public localhost .1.3.6.1.4.1.8072.2.4.1.1.2

*THIS GIVES:*
*
*
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject


9)when I kill the example-demon and enter the following command it gives
following result.

# snmpget -v1 -c public localhost NET-SNMP-TUTORIAL-MIB::nstAgentSubagent.0

*THIS GIVES:*

Cannot find module (NET-SNMP-TUTORIAL-MIB.txt): At line 0 in (none)
NET-SNMP-TUTORIAL-MIB::nstAgentSubagent.0: Unknown Object Identifier
[1]+  Killed                  ./example-demon  (wd:
/home1/infonet/Desktop/megh/AgentX)
(wd now: /home1/infonet/Desktop/megh)


10)# snmptranslate -M+. -mNET-SNMP-TUTORIAL-MIB -Tp -IR netSnmpTutorialMIB

*THIS GIVES:*

+--netSnmpTutorialMIB(4)
   |
   +--nstMIBObjects(1)
   |  |
   |  +--nstAgentModules(1)
   |     |
   |     +-- -RW- Integer32 nstAgentModuleObject(1)
   |     +-- -RW- Integer32 nstAgentSubagentObject(2)
   |     +-- -RW- Integer32 nstAgentPluginObject(3)
   |
   +--nstMIBConformance(2)



These are the steps that i have done, I am struggling from last 2 weeks to
make it working, but did not found the solution for this problem.

Please tell me what could be the problem and how can i figure it out.
Actually I am new user for snmp, so better explained solution will
be appreciated.

Thanx in advance .... please help me to solve this problem.

Regards,
Meghanad.

------------------------------------------------------------------------------

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.