[c-nsp] NX-OS SNMP agent returns first 64 characters of interface description while CLI allows one to enter 80 characters interface descriptions

Martin T m4rtntns at gmail.com
Thu Oct 29 12:25:54 EDT 2015


Hi,

I have a Cisco Nexus 5548 switch with NX-OS version 6.0(2)N2(6) and it
allows one to insert 80 characters long interface descriptions:

Nexus5548(config-if)# description
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Nexus5548(config-if)# description
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ERROR: error: name too long. max size allowed is 80
Nexus5548(config-if)#


However, over SNMP it returns only the first 64 characters of this 80
characters interface description:

$ snmpget -Ov -v 2c -c public Nexus5548 IF-MIB::ifAlias.436281344
STRING: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ snmpget -Ov -v 2c -c public Nexus5548 IF-MIB::ifAlias.436281344 | tr
-d 'STRING: ' | tr -d '\n' | wc -c
      64
$


Where does this inconsistency come from? Is there a way to increase
the amount of characters returned by NX-OS SNMP agent for interface
descriptions?


thanks,
Martin


More information about the cisco-nsp mailing list