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

interface link trap in ios-xr

Hello,

How to enable interface link trap in cisco ASR9010? and how to verify it?

I have enabled it on my ios-xr, i"m getting  all traps except interface link trap.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

hi there,yup possible, you

hi there,

yup possible, you may need to configure

snmp-server traps snmp linkup
snmp-server traps snmp linkdown

and

RP/0/RSP0/CPU0:A9K-BNG(config)#snmp-server trap link ietf
RP/0/RSP0/CPU0:A9K-BNG(config)#commit
Mon Jun  2 14:07:05.833 EDT
RP/0/RSP0/CPU0:Jun  2 14:07:05.908 : config[65901]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'root'. Use 'show configuration commit changes 1000000005' to view the changes.

 

it could be your trap server doesn't like the cisco format of the trap hence that ietf may make that difference.


RP/0/RSP0/CPU0:A9K-BNG(config)#do debug snmp pa
Mon Jun  2 14:07:10.935 EDT
RP/0/RSP0/CPU0:A9K-BNG(config)#int g 0/0/0/0
RP/0/RSP0/CPU0:A9K-BNG(config-if)#shut
RP/0/RSP0/CPU0:A9K-BNG(config-if)#commit
Mon Jun  2 14:07:15.169 EDT
LC/0/0/CPU0:Jun  2 14:07:15.188 : ifmgr[209]: %PKT_INFRA-LINK-5-CHANGED : Interface GigabitEthernet0/0/0/0, changed state to Administratively Down
RP/0/RSP0/CPU0:Jun  2 14:07:15.192 : snmpd[1125]: t8 snmp_is_dst_address_reachable:Successfully got src address:1.0.0.3 to dest:1.0.0.3 in vrf:Default, vrf_id:1610612736, ifhandle:0x40
RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 Src address updated as :3.0.0.233
RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 snmp_send_pdu_udp_transport: Q-ing TRAP[sp 161, dp 41472]
RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 snmp_is_dst_address_reachable:Successfully got src address:1.0.0.3 to dest:1.0.0.3 in vrf:Default, vrf_id:1610612736, ifhandle:0x40
RP/0/RSP0/CPU0:A9K-BNG(config-if)#RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 Src address updated as :3.0.0.233

xander

Xander Thuijs CCIE #6775 Principal Engineer ASR9000, CRS, NCS6000 & IOS-XR
2 REPLIES
Cisco Employee

hi there,yup possible, you

hi there,

yup possible, you may need to configure

snmp-server traps snmp linkup
snmp-server traps snmp linkdown

and

RP/0/RSP0/CPU0:A9K-BNG(config)#snmp-server trap link ietf
RP/0/RSP0/CPU0:A9K-BNG(config)#commit
Mon Jun  2 14:07:05.833 EDT
RP/0/RSP0/CPU0:Jun  2 14:07:05.908 : config[65901]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'root'. Use 'show configuration commit changes 1000000005' to view the changes.

 

it could be your trap server doesn't like the cisco format of the trap hence that ietf may make that difference.


RP/0/RSP0/CPU0:A9K-BNG(config)#do debug snmp pa
Mon Jun  2 14:07:10.935 EDT
RP/0/RSP0/CPU0:A9K-BNG(config)#int g 0/0/0/0
RP/0/RSP0/CPU0:A9K-BNG(config-if)#shut
RP/0/RSP0/CPU0:A9K-BNG(config-if)#commit
Mon Jun  2 14:07:15.169 EDT
LC/0/0/CPU0:Jun  2 14:07:15.188 : ifmgr[209]: %PKT_INFRA-LINK-5-CHANGED : Interface GigabitEthernet0/0/0/0, changed state to Administratively Down
RP/0/RSP0/CPU0:Jun  2 14:07:15.192 : snmpd[1125]: t8 snmp_is_dst_address_reachable:Successfully got src address:1.0.0.3 to dest:1.0.0.3 in vrf:Default, vrf_id:1610612736, ifhandle:0x40
RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 Src address updated as :3.0.0.233
RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 snmp_send_pdu_udp_transport: Q-ing TRAP[sp 161, dp 41472]
RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 snmp_is_dst_address_reachable:Successfully got src address:1.0.0.3 to dest:1.0.0.3 in vrf:Default, vrf_id:1610612736, ifhandle:0x40
RP/0/RSP0/CPU0:A9K-BNG(config-if)#RP/0/RSP0/CPU0:Jun  2 14:07:15.193 : snmpd[1125]: t8 Src address updated as :3.0.0.233

xander

Xander Thuijs CCIE #6775 Principal Engineer ASR9000, CRS, NCS6000 & IOS-XR
New Member

thank you

thank you

96
Views
5
Helpful
2
Replies
CreatePlease to create content