RE: snmpget returns Unknown host

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0705D778@mailserver.metatv-ds.metatv.com>
> 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

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.