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
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

Reply via email to