06-27-2008 08:25 AM - edited 02-21-2020 02:54 AM
Hi
Is there anyway of limiting the type of traps to be sent to a particular SNMP management station? When I enable snmp-server enable trap ds1 e.g., I would only like that type of trap to go to SNMP Server A and not SNMP Server B. Can't think of any way myself?
Regards
Mary
06-28-2008 01:13 AM
Have you had a look at SNMP views?
Also you can do per-host snmp traps also
snmp-server host 10.10.10.10 traps ABCD
Regards
Farrukh
06-30-2008 04:26 AM
Yes, I can see that snmp-server host etc., would be an option but I just want to pass on linkup/linkdown traps. This doesn't seem to be possible using the syntax above.
Will I have to create an snmp view if I just want linkup/linkdown traps?
06-30-2008 12:10 PM
No 'views' really don't solve the trap issue AFAIK, they are for polling. But why cant you achieve your requirement using snmp-server host ..... command?
Regards
Farrukh
07-01-2008 01:16 AM
Hi Farrukh
When I type the command snmp-server host 10.50.1.228 traps snmp ? , I get the traps below but not linkup linkdown. The router is running flash:c2800nm-entservicesk9-mz.124-7a.bin. Output of what I see below.
Router_A#(config)#snmp-server host 10.50.1.228 traps snmp ?
atm Allow SNMP atm traps
bgp Allow BGP state change traps
bstun Allow bstun event traps
bulkstat Allow Data-Collection-MIB traps
cnpd Allow NBAR Protocol Discovery traps
config Allow SNMP config traps
config-copy Allow SNMP config-copy traps
cpu Allow cpu related traps
dlsw Allow dlsw traps
dnis Allow SNMP DNIS traps
ds0-busyout Allow ds0-busyout traps
ds1 Allow SNMP ds1 traps
ds1-loopback Allow ds1-loopback traps
ds3 Allow SNMP ds3 traps
dsp Allow SNMP DSP traps
dspu Allow dspu event traps
eigrp Allow SNMP EIGRP traps
entity Allow SNMP entity traps
envmon Allow environmental monitor traps
event-manager Allow SNMP Embedded Event Manager traps
flash Allow SNMP FLASH traps
frame-relay Allow SNMP frame-relay traps
hsrp Allow SNMP HSRP traps
icsudsu Allow SNMP ICSUDSU traps
ipmobile Allow SNMP ipmobile traps
ipmulticast Allow SNMP ipmulticast traps
isdn Allow SNMP ISDN traps
l2tun-session Allow SNMP L2 tunnel protocol traps
mpls-ldp Allow SNMP MPLS label distribution protocol traps
mpls-traffic-eng Allow SNMP MPLS traffic engineering traps
mpls-vpn Allow SNMP MPLS Virtual Private Network traps
msdp Allow SNMP MSDP traps
mvpn Allow Multicast Virtual Private Network traps
ospf Allow OSPF traps
pim Allow SNMP PIM traps
rsrb Allow rsrb event traps
rsvp Allow RSVP flow change traps
rtr Allow SNMP Response Time Reporter traps
sdlc Allow sdlc event traps
sdllc Allow sdllc event traps
snmp Allow SNMP-type notifications
stun Allow stun event traps
syslog Allow SNMP syslog traps
tty Allow TCP connection traps
udp-port The notification host's UDP port number
voice Allow SNMP Voice traps
vrrp Allow SNMP vrrp traps
vsimaster Allow SNMP vsimaster traps
vtp Allow SNMP VTP traps
x25 Allow x25 event traps
xgcp Allow XGCP protocol traps
Any ideas?
Regards
Mary
07-01-2008 01:59 AM
Try this:
snmp-server host 10.50.1.228 traps snmp linkdown.
Have a look at this link http://www.cisco.com/en/US/docs/ios/12_1t/12_1t3/feature/guide/dtitraps.html#wp1015363
Regards
Farrukh
07-01-2008 04:18 AM
Farrukh
The command above is not accepted but snmp-server host 10.50.1.228 traps linkdown is .....weird but now have to test and see if it actually works. Crossed fingers it works, if it does, I'll get back
Mary
10-21-2012 01:17 AM
It should be :
snmp-server host x.x.x.x public snmp.
These all, linkup/linkdown etc are snmp related traps and when you enter the command with no keywords, all notification types are enabled. When you enter the command with a keyword, only the types of notifications related to that keyword are enabled.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: