sudhirgoogle
asked on
unable to do snmpwalk from monitoring server to snmp client
I have ServerA and ServerB, ServerA is monitoring server and ServerB is SNMP client. SNMPWALK from serverA to serverB is getting timeout error, please help me to resolve this issue. I am able to do snmpwalk from serverA to other servers so there is no problem with ServerA. network port opened 161, 162 and 199 opened on routers in bidirectional way between source ip and destination ip so there is no issue with network as well. some configuration issue with ServerB, community string is same between two servers.
ServerA's config
--------------------
cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m
arch
x86_64
snmpd -v
NET-SNMP version: 5.3.2.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sour ceforge.ne t
netstat -plan | grep snmp
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 3807/snmpd
udp 0 0 0.0.0.0:41345 0.0.0.0:* 22860/snmpwalk
udp 0 0 0.0.0.0:36377 0.0.0.0:* 22944/snmpwalk
udp 0 0 0.0.0.0:161 0.0.0.0:* 3807/snmpd
udp 0 0 0.0.0.0:39340 0.0.0.0:* 22909/snmpwalk
udp 0 0 0.0.0.0:54320 0.0.0.0:* 22953/snmpwalk
udp 0 0 0.0.0.0:37813 0.0.0.0:* 22918/snmpwalk
udp 0 0 0.0.0.0:53057 0.0.0.0:* 22861/snmpwalk
udp 0 0 0.0.0.0:54233 0.0.0.0:* 22870/snmpwalk
udp 0 0 0.0.0.0:44661 0.0.0.0:* 22946/snmpwalk
unix 2 [ ] DGRAM 8710 3807/snmpd
nc -zu ServerB 161
Connection to ServerB port [udp/snmp] succeeded!
snmpwalk -v2c -cstring ServerB
Timeout: No Response from ServerB
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -------
ServerB's Config
---------------------
cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m
snmpd -v
NET-SNMP version: 5.5
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sour ceforge.ne t
rpm -qa | grep snmp
net-snmp-libs-5.5-44.el6.x 86_64
net-snmp-5.5-44.el6.x86_64
netstat -plan | grep snmp
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 7978/snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:* 7978/snmpd
unix 2 [ ] DGRAM 1378957 7978/snmpd
nc -zu ServerA 161
Connection to ServerA 161 port [udp/snmp] succeeded!
ServerA's config
--------------------
cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m
arch
x86_64
snmpd -v
NET-SNMP version: 5.3.2.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sour
netstat -plan | grep snmp
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 3807/snmpd
udp 0 0 0.0.0.0:41345 0.0.0.0:* 22860/snmpwalk
udp 0 0 0.0.0.0:36377 0.0.0.0:* 22944/snmpwalk
udp 0 0 0.0.0.0:161 0.0.0.0:* 3807/snmpd
udp 0 0 0.0.0.0:39340 0.0.0.0:* 22909/snmpwalk
udp 0 0 0.0.0.0:54320 0.0.0.0:* 22953/snmpwalk
udp 0 0 0.0.0.0:37813 0.0.0.0:* 22918/snmpwalk
udp 0 0 0.0.0.0:53057 0.0.0.0:* 22861/snmpwalk
udp 0 0 0.0.0.0:54233 0.0.0.0:* 22870/snmpwalk
udp 0 0 0.0.0.0:44661 0.0.0.0:* 22946/snmpwalk
unix 2 [ ] DGRAM 8710 3807/snmpd
nc -zu ServerB 161
Connection to ServerB port [udp/snmp] succeeded!
snmpwalk -v2c -cstring ServerB
Timeout: No Response from ServerB
--------------------------
ServerB's Config
---------------------
cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m
snmpd -v
NET-SNMP version: 5.5
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sour
rpm -qa | grep snmp
net-snmp-libs-5.5-44.el6.x
net-snmp-5.5-44.el6.x86_64
netstat -plan | grep snmp
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 7978/snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:* 7978/snmpd
unix 2 [ ] DGRAM 1378957 7978/snmpd
nc -zu ServerA 161
Connection to ServerA 161 port [udp/snmp] succeeded!
Have you verify the version of snmp is configured as v2 on the client? Is this the only Centos 6 client you are having issue?
ASKER
how do i check that ?
Can you post snmp.conf?
Try -
Try -
snmpwalk -v1 -cstring ServerB
ASKER
On ServerB
cat /etc/snmp/snmpd.conf
rocommunity string
On ServerA
snmpwalk -v1 -cstring ServerB
Timeout: No Response from ServerB
FYI. I am able to do snmpwalk from ServerB to ServerA.
cat /etc/snmp/snmpd.conf
rocommunity string
On ServerA
snmpwalk -v1 -cstring ServerB
Timeout: No Response from ServerB
FYI. I am able to do snmpwalk from ServerB to ServerA.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for all your support guys. Issue resolved. This issue is due to firewall, on firewall after enabling bidirectional access to 161 & 162 UDP port from monitoring server to snmp client host then it started working.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for sudhirgoogle's comment #a40014545
for the following reason:
thanks for the support
Accepted answer: 0 points for sudhirgoogle's comment #a40014545
for the following reason:
thanks for the support
i mentioned firewall, ok you may have come to parallel discovery of same.
Usually for thanks you give b grades or c grades instead of pulling out with nothing.
Usually for thanks you give b grades or c grades instead of pulling out with nothing.
Should be grade A to Gheist. Gheist mentioned firewall again regardless asker claimed to have checked firewall on the first post.