Ad Code

SNMP : Timeout: No Response from 10.10.10.1

Bagi yang menggunakan Debian Etch mungkin pernah mengalami saat SNMP sudah terinstall dengan baik tetapi tidak memberikan respon jika ada request menggunakan IP Address, tetapi jika menggunakan alamat localhost memberikan respon.

Router:/home/aris# snmpwalk -v 1 -c public localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux Router 2.6.18 #1 SMP Wed May 14 18:42:07 WIT 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (310) 0:00:03.10
SNMPv2-MIB::sysContact.0 = STRING: aris <aris @ sssss.co.id>
SNMPv2-MIB::sysName.0 = STRING: Router
SNMPv2-MIB::sysLocation.0 = STRING: "Jl.xxxxxxxx 17-21 Surabaya"
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
.
.
.
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00

Tapi kalau menggunakan IP Address error seperti berikut :

Router:/home/aris# snmpwalk -v 1 -c public 10.10.10.1 system
Timeout: No Response from 10.10.10.1

Solusinya edit saja konfigrasi defaultnya.

Berikut konfigurasi /etc/default/snmpd

#/etc/default/snmpd [----] 2 L:[ 1+10 11/ 21] *(315 / 679b)= M 77 0x4D
# This file controls the activity of snmpd and snmptrapd

# MIB directories. /usr/share/snmp/mibs is the default, but
# including it here avoids some strange problems.
export MIBDIRS=/usr/share/snmp/mibs

# snmpd control (yes means start daemon).
SNMPDRUN=yes

# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'

# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=no

# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'

Hilangkan alamat 127.0.0.1, sehingga baris yang diubah menjadi berikut :

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

Jika sudah restart snmpd nya:

Router:/home/aris# /etc/init.d/snmpd restart

Semoga berhasil

Close Menu