agentX with MIB tutorial problem

Ran Shalit <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJ2oMhJAYeVuuquX59e0tkhev3sE4dtHz4gpqsTr6JJZ4Kz37g@mail.gmail.com>
Hello,

I am trying to run the tutorial for running agentX with MIB as described here:

http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent


Yet, I keep getting "No Such Object available on this agent at this OID".......


root@dm814x-evm:~# snmpd -Lo
Turning on AgentX master support.
/home/root/.snmp/snmpd.conf: line 15: Warning: Unknown token: mibdirs.
/home/root/.snmp/snmpd.conf: line 16: Warning: Unknown token: mibs.
/home/root/.snmp/snmpd.conf: line 17: Warning: Unknown token: mibs.
/home/root/.snmp/snmpd.conf: line 18: Warning: Unknown token: mibs.
/home/root/.snmp/snmpd.conf: line 19: Warning: Unknown token: mibs.
Created directory: /var/agentx
root@dm814x-evm:~# NET-SNMP version 5.6.2

root@dm814x-evm:~# ./example_snmp &
root@dm814x-evm:~# example-demon is up and running.

root@dm814x-evm:~# snmpget -m /usr/share/snmp/mibs/NET-SNMP-TUTORIAL-MIB.txt -v
2c 127.0.0.1 -c public NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 = No Such Object
available on this agent at this OID
root@dm814x-evm:~#


This is my snmpd.conf
root@dm814x-evm:~# cat /home/root/.snmp/snmpd.conf
#s will make snmpd listen on all interfaces
agentAddress  udp:161

# open to all network (not secured)

master  agentx

rocommunity public
rwcommunity private

com2sec readonly  default         public
com2sec readwrite default         private


mibdirs /usr/share/snmp/mibs/
mibs +NET-SNMP-EXAMPLES-MIB
mibs +UCD-DEMO-MIB
mibs +ETHTOOL-MIB
mibs +NET-SNMP-TUTORIAL-MIB



Can someone please advise ?

Thank you,
ranran

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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.