[ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]


On 14 November 2011 13:57, prashant n <[email protected]> wrote:
> Hi Dave Shield,
>              Thanks for your valuable feed back.
>
>  I tried omitting the '-p' flag, and used following command
>
>     /usr/local/sbin/snmpd -f -L -d  9999
>
> Now the agent is running giving following warnings
>
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> read_config_store open failure on /var/net-snmp/snmpd.conf
> NET-SNMP version 5.6.1.1

OK - so that's running
And there are no warnings about "no access control" settings,
so it should be possible to query it.



> But when i used following command to get the value
>
> $snmpget -v 2c -c public localhost
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
>
> PROBLEM:It is giving response as: Timeout: No Response from localhost.

First thing - how have you configured the access control?
Is it configured to respond to the community "public"?

Second - to start with, try querying the system group

   snmpget -v 2c -c public localhost sysDescr.0

If the agent is to configured to respond to the community string "public"
at all, then it's likely to report the system information.
(Even if it won't necessarily report everything else)


>  How to fix this?
>
> Please provide me solution for this problem

We'll provide solutions, if you provide the necessary information for
us to work with.
"It doesn't work" is not a very helpful problem report! :-)


Dave

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to