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

Peter Rathlev peter at rathlev.dk
Thu Oct 29 18:55:49 EDT 2015


On Thu, 2015-10-29 at 18:25 +0200, Martin T wrote:
> However, over SNMP it returns only the first 64 characters of this 80
> characters interface description:
[...]
> 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?

The IF-MIB I have lying around says:

  ifAlias   OBJECT-TYPE
      SYNTAX      DisplayString (SIZE(0..64))

If one were to let IOS return longer than 64 characters, as per Tims
suggestions, then it might also be necessary to adjust the above in your
local IF-MIB to avoid SNMP utilities to treat long answers as invalid. I
haven't tested anything, just thinking aloud.

-- 
Peter




More information about the cisco-nsp mailing list