Thanks
It worked with giving the config file (snmpd.conf) path with -c options while 
running the daemon


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Wednesday, April 01, 2009 2:24 PM
To: Sanad Kumar Mishra
Cc: [email protected]
Subject: Re: snmpd.conf

2009/4/1 Sanad Kumar Mishra <[email protected]>:
> While compiling netsnmp with   --prefix=/xyz
> And running the agent (snmpd) from the installed folder ( /xyz/sbin/snmpd).
> Also  running snmpget (/xyz/bin/snmpget).
>
> Snmpget gives Timeout: no response from localhost.
>
>
>
> I think while doing this .. I am snmpget is not able to locate 'snmpd.conf'

snmpget does not use 'snmpd.conf' - the agent (snmpd) does.
(The clue is in the name!)

Where have you put this file?

If you run snmpd using "snmpd -f -Le -Dread_config"
it will display the list of locations where it is looking for config files.

Dave

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to