Search My Techie Guy

Wednesday, February 10, 2016

snmpwalk: Timeout: No Response from 10.0.46.149

Problem:

Server1:~ # snmpwalk -v2c -c public 10.0.46.149
Timeout: No Response from 10.0.46.149


Server1:~ # ifconfig -a
ens160    Link encap:Ethernet  HWaddr 00:0C:29:D1:E6:46  
          inet addr:10.0.43.18  Bcast:10.0.43.63  Mask:255.255.255.192
          inet6 addr: fe80::20c:29ff:fed1:e646/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18983282 errors:0 dropped:1223 overruns:0 frame:0
          TX packets:67797 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1646195609 (1569.9 Mb)  TX bytes:5717429 (5.4 Mb)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:630856 errors:0 dropped:0 overruns:0 frame:0
          TX packets:630856 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:56145204 (53.5 Mb)  TX bytes:56145204 (53.5 Mb)

Solution:

Make sure the server IP where you are running the snmpwalk command from has been added as an snmp client and it's IP allowed on the router/switch that you are trying to query.

for my case am trying to query a juniper switch, so i added the line below:

# set snmp community public clients 10.0.43.18/32  
# commit 
configuration check succeeds
commit complete

Trying the snmpwalk command again: problem solved

Server1:~ # snmpwalk -v2c -c public 10.0.46.149
SNMPv2-MIB::sysDescr.0 = STRING: Vodafone UG Border Gateway Router 01
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2636.1.1.1.2.43
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3947453981) 456 days, 21:08:59.81
SNMPv2-MIB::sysContact.0 = STRING: Joshua Nomwesigwa 0723000208
SNMPv2-MIB::sysName.0 = STRING: VODAFONEUG-BGW-01
SNMPv2-MIB::sysLocation.0 = STRING: Kololo, 1 Hill Drive, Kampala
SNMPv2-MIB::sysServices.0 = INTEGER: 6

No comments: