Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# lsof -i :199
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
snmpd 15903 root 9u IPv4 47423 TCP 127.0.0.1:smux (LISTEN)
The problem is wheh I use "snmpwalk" command it show me the following error.
Code:
[root@pdc-proxy ~]# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
getaddrinfo: localhost Name or service not known
snmpwalk: Unknown host (localhost)
[root@pdc-proxy ~]#
I ven change local host with pdc-proxy but no success.
Code:
[root@pdc-proxy ~]# snmpwalk -v 1 -c public pdc-proxy IP-MIB::ipAdEntIfIndex
Timeout: No Response from pdc-proxy
[root@pdc-proxy ~]#
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by gardenair
getaddrinfo: localhost Name or service not known
This raises my suspicion something is wrong with your IP resolving. First try to ping localhost.
When that fails, try to resolve that problem. In any case, try to use 127.0.0.1 as host in snmpwalk and see what happens.
No output.I am not sure it is a DNS issue which is not resolving.Ok if we assume that it is a DNS issue then at least it should show any output when i use 127.0.0.1 in localhost.
I have you jet edit snmpd.conf file. Is thers need to 1st make some nessary changes and then use snmpwalk command ?
No output.I am not sure it is a DNS issue which is not resolving.Ok if we assume that it is a DNS issue then at least it should show any output when i use 127.0.0.1 in localhost.
I have you jet edit snmpd.conf file. Is thers need to 1st make some nessary changes and then use snmpwalk command ?
Instead of running all those commands in your first post, have you just run "/etc/init.d/snmpd status"?? Have you tried running "/etc/init.d/snmpd restart", to see if you have any configuration errors? You don't say what version/distro of Linux you're using, but was SNMP ever working on this system? Has it been configured, and if so, are you sure the RO string you specified is correct?? Did you check the snmpd.conf file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.