Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi ALL,
According to tutorial,I executd the
net-snmp-config --compile-subagent mysubagent
nstAgentSubagentObject.c
and generated the executable file,mysubagent.
I executed ./mysubagent & as root
When I used the snmpget command as following,
snmpget -v2c -c public localhost
nstAgentSubagentObject.0
It always shows
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
= No Such Object available on this agent at this OID
I have already checked the return value from
netsnmp_register_int_instance() is MIB_REGISTERED_OK.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.