Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

IOS XR Interface up/down trap

For interface up/down trap

In IOS it used to be:

Generic: 2; Specific: 0; Enterprise: .1.3.6.1.6.3.1.1.5;

Variables:

[1] mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.34 (Integer): 34

[2] mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.34 (OctetString): POS2/1/0

[3] mgmt.mib-2.interfaces.ifTable.ifEntry.ifType.34 (Integer): 171

[4] private.enterprises.cisco.local.linterfaces.lifTable.lifEntry.locIfReason.34 (OctetString): Keepalive failed

Annotations:

In IOS XR we are missing ifDescr

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: IOS XR Interface up/down trap

Try doing:

no snmp-server trap link ietf
6 REPLIES
Cisco Employee

Re: IOS XR Interface up/down trap

IOS is using a custom linkDown trap which includes ifDescr.  The IETF linkUp/linkDown traps do not include this varbind.  I do not have an IOS-XR device with which to test, but from what I've seen IOS-XR can send the same traps that IOS sends.  What version of XR do you have?  What does your config look like?

New Member

Re: IOS XR Interface up/down trap

Here is the config:

IOS XR version 3.6.1

snmp-server trap link ietf  ---> I see this is ietf and no other choice
snmp-server host 10.10.10.40 traps admin

snmp-server host 10.11.10.40 traps admin
snmp-server view N ip included
snmp-server view N ifMIB included
snmp-server view N system included
snmp-server view N cpwVcMIB included
snmp-server view N entityMIB included
snmp-server view N interfaces included
snmp-server view N cpwVcMplsMIB included
snmp-server view N ciscoCBQosMIB included
snmp-server view N ciscoPingEntry included
snmp-server view N ciscoProcessMIB included
snmp-server view N ciscoMemoryPoolEntry included
snmp-server view N ciscoEnhancedMemPoolMIB included
snmp-server community admin RO N-SNMP-ACL
snmp-server traps snmp
snmp-server traps config
snmp-server traps entity
snmp-server location X
snmp-server trap-source MgmtEth0/8/CPU0/0

Cisco Employee

Re: IOS XR Interface up/down trap

Try doing:

no snmp-server trap link ietf
New Member

Re: IOS XR Interface up/down trap

Thanks Joe.

This solves the problem.

One more question. we do not see LDP traps coming from the XR router.

here is the config; when i enable LDP traps it just does not show up in the config:

snmp-server host 10.10.141.253 traps ovadmin
snmp-server view N ip included
snmp-server view N system included
snmp-server view N cpwVcMIB included
snmp-server view N entityMIB included
snmp-server view N interfaces included
snmp-server view N cpwVcMplsMIB included
snmp-server view N mplsTeStdMIB included
snmp-server view N ciscoCBQosMIB included
snmp-server view N ciscoPingEntry included
snmp-server view N ciscoProcessMIB included
snmp-server view N ciscoMemoryPoolEntry included
snmp-server view N ciscoEnhancedMemPoolMIB included
snmp-server community admin RO
snmp-server community admirw RW
snmp-server traps snmp
snmp-server traps config
snmp-server traps entity
snmp-server location Y

snmp-server trap-source MgmtEth0/8/CPU0/0

Tried to enable it:

RP/0/8/CPU0:P1(config)#snmp-server traps mpls ?
  frr          Enable MPLS FRR traps
  l3vpn        Enable MPLS L3VPN traps
  ldp          Enable MPLS LDP traps
  traffic-eng  Enable MPLS TE traps
RP/0/8/CPU0:P1(config)#snmp-server traps mpls ldp ?
  down       Enable MPLS LDP session down traps
  threshold  Enable MPLS LDP threshold traps
  up         Enable MPLS LDP session up traps
RP/0/8/CPU0:P1(config)#snmp-server traps mpls ldp ?
  down       Enable MPLS LDP session down traps
  threshold  Enable MPLS LDP threshold traps
  up         Enable MPLS LDP session up traps
RP/0/8/CPU0:P1(config)#snmp-server traps mpls ldp down ?
   
RP/0/8/CPU0:P1(config)#snmp-server traps mpls ldp down
RP/0/8/CPU0:P1(config)#snmp-server traps mpls ldp up  
RP/0/8/CPU0:P1(config)#commit
RP/0/8/CPU0:P1(config)#end

does not show up in the config.

New Member

Re: IOS XR Interface up/down trap

Does this discussion say anything about this. LDP traps being sent label switched: not sure:

https://supportforums.cisco.com/message/974282

Cisco Employee

Re: IOS XR Interface up/down trap

I do not think this thread is applicable since you appear to be seeing other traps, and you are specifying what is probably the correct trap source interface.  I don't see any known bugs affecting LDP traps, and as I said before, I am unable to test locally.  I can say your config (at least SNMP-wise) does look correct.

1373
Views
8
Helpful
6
Replies