Thanks Mike for your response.
   
  When I use 127.0.0.1 it works fine but I can also so do  < ping localhost > 
and that works fine too.It seems snmpget doesn't like the localhost name.
  Any suggestion in this matter would be appreciated.
   
  Regards,
  Reza

Note: forwarded message attached.

       
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, 
when. 
--- Begin Message ---
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Reza Salehi
> Sent: Thursday, August 30, 2007 3:01 PM

> I am having problem with snmpget or set on query from local host.
> When I type    : snmpget -d -v 2c -c TC localhost sysUpTime  
>                    snmpget  : Unknown host
>  
> But if I use  the real IP address of machine it will work:
>  
>                    snmpget  -v 2c -c TC  192.168.0.12 sysUpTime
>              SNMPv2-MIB::sysUpTime.0=................09:01

        Most likely, you don't have "localhost" defined in your hosts file.  
Try getting from "127.0.0.1" instead of "localhost".


        HTH,

Mike

--- End Message ---
-------------------------------------------------------------------------
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-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to