Page MenuHomeVyOS Platform

SNMP ifAlias not returning interface description
Closed, InvalidPublicBUG

Description

The interfaces aliases returned when using snmpwalk and other tools don't show the interface description as alias.

This is an example of snmpwalk output:

iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "Red Hat, Inc Device 0001"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "Red Hat, Inc Device 0001"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "Red Hat, Inc Device 0001"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "Red Hat, Inc Device 0001"
iso.3.6.1.2.1.2.2.1.2.6 = STRING: "gre0"
iso.3.6.1.2.1.2.2.1.2.7 = STRING: "gretap0"
iso.3.6.1.2.1.2.2.1.2.8 = STRING: "erspan0"
iso.3.6.1.2.1.2.2.1.2.9 = STRING: "tun2"
iso.3.6.1.2.1.2.2.1.2.10 = STRING: "sit0"
iso.3.6.1.2.1.2.2.1.2.11 = STRING: "tun1"
iso.3.6.1.2.1.2.2.1.2.12 = STRING: "tun0"

Here I see Red Hat, Inc Device 0001 instead of Servers Rotterdam for iso.3.6.1.2.1.2.2.1.2.3.

When running /opt/vyatta/sbin/if-mib-alias from the router it does return the correct name:

iso.3.6.1.2.1.2.2.1.2.3
string
Servers Rotterdam

The interface itself also has the correct alias:

root@r1-alb:~# cat /sys/class/net/eth1/ifalias 
Servers Rotterdam

The snmpd config has the following in it, which appears to be correct

pass .1.3.6.1.2.1.31.1.1.1.18 /opt/vyatta/sbin/if-mib-alias

Not sure what is going on here as this appears to have been fixed in T719

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0-rc11
Why the issue appeared?
Will be filled on close

Related Objects

Event Timeline

syncer triaged this task as Low priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.

.1.3.6.1.2.1.2.2.1.2 is IF-MIB::ifDescr

Have you tried .1.3.6.1.2.1.31.1.1.1.18 (IF-MIB::ifAlias), there I see the descriptions in VyOS-1.2.0-rc11

My Monitoring (netxms.org) takes the alias successfully from there.

syncer edited projects, added Restricted Project; removed VyOS 1.3 Equuleus.Mar 16 2019, 7:14 PM
syncer added subscribers: rob, syncer.

@rob another for KB