Hi Dave,I followed the FAQ:Coding 13 you mentioned.In the third step "Is the
initialisation routine being run?",I ran "/usr/local/sbin/snmpd -f -L
-DsysConfigMib",and got "
sysConfigMib: Initializing //DEBUGMSGTL information
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for
this agent.
NET-SNMP version 5.1.2
"
It is said to be the access control problem.The lines related in
/etc/snmp/snmpd.conf:
"
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
access notConfigGroup "" any noauth exact all none none
"
Then I ran "snmpwalk -v2c localhost -m ALL -t 3 -c public sysConfigMib" in
another terminal window,and got "Timeout: No Response from localhost".
在2007-11-06,"Dave Shield" <[EMAIL PROTECTED]> 写道:
On 05/11/2007, wqs <[EMAIL PROTECTED]> wrote:
> I wrote my own MIB file and compiled the module into the agent.
> When I ran "snmpwalk -v2c localhost -m ALL -t 3 -c public sysConfigMib"
> and got "SYS-CONFIG-MIB::sysConfigMib = No Such Object ...
> Where is the problem?Please help me.Thanks!
Can you please try working through the checklist in the FAQ entry
I've added my code to this template and it still doesn't work. Why not?
http://www.net-snmp.org/wiki/index.php/FAQ:Coding_13
Dave-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders