05-25-2011 12:16 AM - edited 03-07-2019 12:40 AM
hi all,
i've a cisco 1841 router and setup for SNMP. i've added the commands below but i'm not seeing SNMP traps sent to our customer's SNMP servers 63.247.WW.XX and 63.247.YY.ZZ (still verifying with him). meanwhile, i tried to test SNMP using telnet to the router's WAN IP using ports 161 and 162 but it was refused. there's no ACL on both WAN and LAN ports. can someone help what if i'm missing anything here? thanks in advance!
snmp-server community SpecToo RO
snmp-server host 63.247.WW.XX SpecToo
snmp-server host 63.247.YY.ZZ SpecToo
----
1841#sh snmp
Chassis: FHK111819JD
27 SNMP packets input
0 Bad SNMP version errors
9 Unknown community name
0 Illegal operation for community name supplied
0 Encoding errors
18 Number of requested variables
0 Number of altered variables
18 Get-request PDUs
0 Get-next PDUs
0 Set-request PDUs
0 Input queue packet drops (Maximum queue size 1000)
18 SNMP packets output
0 Too big errors (Maximum packet size 1500)
0 No such name errors
0 Bad values errors
0 General errors
18 Response PDUs
0 Trap PDUs
SNMP logging: enabled
Logging to 63.247.WW.XX.162, 0/10, 0 sent, 0 dropped.
Logging to 63.247.YY.ZZ.162, 0/10, 0 sent, 0 dropped.
------
LINUX>telnet 203.120.AA.BB 161
Trying 203.120.AA.BB...
telnet: Unable to connect to remote host: Connection refused
LINUX>telnet 203.120.AA.BB 162
Trying 203.120.AA.BB...
telnet: Unable to connect to remote host: Connection refused
------
1841#sh run int f0/0
Building configuration...
Current configuration : 193 bytes
!
interface FastEthernet0/0
description Connection To ISP
bandwidth 2048
ip address 203.120.AA.BB 255.255.255.252
no ip route-cache cef
no ip route-cache
speed 100
full-duplex
end
1841#sh run int f0/1
Building configuration...
Current configuration : 188 bytes
!
interface FastEthernet0/1
description LAN Network
ip address 203.120.CC.DD 255.255.255.224
no ip route-cache cef
no ip route-cache
speed 100
full-duplex
no keepalive
end
05-25-2011 11:03 PM
just an update. i've found the missing piece.
snmp-server enable traps
anyone who runs the same issue can refer URL below.
http://www.netcraftsmen.net/resources/archived-articles/370-configuring-snmp-in-cisco-routers.html
05-26-2011 12:19 AM
Hi,
Yes you're right this was the missing piece but:
LINUX>telnet 203.120.AA.BB 161
Is it working now? No it can't as SNMP = UDP and telnet =TCP
Regards.
Alain.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide