Snmp/bgp traps

Unanswered Question
Jun 27th, 2008
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Farrukh Haroon Sat, 06/28/2008 - 01:13
User Badges:
  • Red, 2250 points or more

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

maryodriscoll Mon, 06/30/2008 - 04:26
User Badges:

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?

Farrukh Haroon Mon, 06/30/2008 - 12:10
User Badges:
  • Red, 2250 points or more

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

maryodriscoll Tue, 07/01/2008 - 01:16
User Badges:

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



maryodriscoll Tue, 07/01/2008 - 04:18
User Badges:

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

Vinod Arya Sun, 10/21/2012 - 01:17
User Badges:
  • Cisco Employee,

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.

Actions

This Discussion