Can't find what you need?


• Ask the Community
• Create a Case
Reset Search
 

 

Article

Why does SNMP-TRAP for link UP/DOWN event not include interface type and number after configuring description under CLI over that interface?

« Go Back

Information

 
TitleWhy does SNMP-TRAP for link UP/DOWN event not include interface type and number after configuring description under CLI over that interface?
Question
SNMP-TRAP for link-down/up does not include interface type and number (e.g Gi0/18)after configuring description command under CLIof that interface.
Environment
Answer
In Network OS, SNMP-TRAP for Link-Down/UP events,includes following MIB objects:

ifIndex
ifAdminStatus
ifOperStatus
ifType
ifDescr


By default the value of ifDescr shows the type of interface and the number associated with it. For e.g Gi0/18
Configuring CLI description over the interface overwrites the value of ifDescr that is showing interface type and number.
This is an expected behavior and working as designed.

For example:

When we have not configured the interface description:

interface GigabitEthernet 15/0/18
no shutdown
!


The VDX switchgenerates the following SNMP-TRAP when the interface goes down:

generic-trap: linkDown (2)
specific-trap: 0
time-stamp: 10167501
variable-bindings: 5 items
1.3.6.1.2.1.2.2.1.1.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.1.403849476 (iso.3.6.1.2.1.2.2.1.1.403849476)
Value (Integer32): 403849476
1.3.6.1.2.1.2.2.1.7.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.7.403849476 (iso.3.6.1.2.1.2.2.1.7.403849476)
Value (Integer32): 2
1.3.6.1.2.1.2.2.1.8.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.8.403849476 (iso.3.6.1.2.1.2.2.1.8.403849476)
Value (Integer32): 2
1.3.6.1.2.1.2.2.1.3.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.3.403849476 (iso.3.6.1.2.1.2.2.1.3.403849476)
Value (Integer32): 6
1.3.6.1.2.1.2.2.1.2.403849476: 6769302f3138
Object Name: 1.3.6.1.2.1.2.2.1.2.403849476 (iso.3.6.1.2.1.2.2.1.2.403849476)
Value (OctetString):
6769302f3138

OID 1.3.6.1.2.1.2.2.1.2 is MIB ifDescr and the value 6769302f3138 means gi0/18 in ASCII code set by default, so SNMP manager can recognize the interface description as gi0/18.

However, when the user changes the interface description as shown below:

interface GigabitEthernet 15/0/18
description foobar
no shutdown
!


The following SNMP-TRAP with foobar instead of gi0/18 is generated.

generic-trap: linkDown (2)
specific-trap: 0
time-stamp: 10182821
variable-bindings: 5 items
1.3.6.1.2.1.2.2.1.1.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.1.403849476 (iso.3.6.1.2.1.2.2.1.1.403849476)
Value (Integer32): 403849476
1.3.6.1.2.1.2.2.1.7.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.7.403849476 (iso.3.6.1.2.1.2.2.1.7.403849476)
Value (Integer32): 2
1.3.6.1.2.1.2.2.1.8.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.8.403849476 (iso.3.6.1.2.1.2.2.1.8.403849476)
Value (Integer32): 2
1.3.6.1.2.1.2.2.1.3.403849476:
Object Name: 1.3.6.1.2.1.2.2.1.3.403849476 (iso.3.6.1.2.1.2.2.1.3.403849476)
Value (Integer32): 6
1.3.6.1.2.1.2.2.1.2.403849476: 666f6f626172
Object Name: 1.3.6.1.2.1.2.2.1.2.403849476 (iso.3.6.1.2.1.2.2.1.2.403849476)
Value (OctetString):
666f6f626172

666f6f626172 means foobar in ASCII code.

Note:WithBrocade's otherfamily ofproducts such as Ironware , CLI command port-nameis used instead of description. However unlike NOSCLIcommand "port-name" is handled by a completely different snmp OIDifAlias (OID 1.3.6.1.2.1.31.1.1.1.18)and
and does not overwrite ifDescr value.

SNMP-TRAP for link UP/DOWNin Ironwareincludes the following MIBs including ifDescr and ifAlias.
Therefore, interfacetype and numbervaluesremain, even though we change the port-name configuration.

ifIndex
ifAdminStatus
ifOperStatus
ifDescr
ifAlias


Example:

interface ethernet 1/1
port-name foobar
enable
!


Also, generic-trap: linkDown (2)
specific-trap: 0
time-stamp: 43567276
variable-bindings: 5 items
1.3.6.1.2.1.2.2.1.1.1:
Object Name: 1.3.6.1.2.1.2.2.1.1.1 (iso.3.6.1.2.1.2.2.1.1.1)
Value (Integer32): 1
1.3.6.1.2.1.2.2.1.7.1:
Object Name: 1.3.6.1.2.1.2.2.1.7.1 (iso.3.6.1.2.1.2.2.1.7.1)
Value (Integer32): 2
1.3.6.1.2.1.2.2.1.8.1:
Object Name: 1.3.6.1.2.1.2.2.1.8.1 (iso.3.6.1.2.1.2.2.1.8.1)
Value (Integer32): 2
1.3.6.1.2.1.2.2.1.2.1: 4769676162697445746865726e6574312f31
Object Name: 1.3.6.1.2.1.2.2.1.2.1 (iso.3.6.1.2.1.2.2.1.2.1)
Value (OctetString): 4769676162697445746865726e6574312f31
1.3.6.1.2.1.31.1.1.1.18.1: 686f6765686f6765
Object Name: 1.3.6.1.2.1.31.1.1.1.18.1 (iso.3.6.1.2.1.31.1.1.1.18.1)
Value (OctetString):
666f6f626172

OID 1.3.6.1.2.1.2.2.1.2 is MIB ifDescr and the value 4769676162697445746865726e6574312f31 means "GigabitEthernet1/1" in ASCII code. Also OID 1.3.6.1.2.1.31.1.1.1.18 is MIB ifAlias and value 666f6f626172 means foobar in ASCII code.
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255