On Wed, 16 Mar 2011 03:58:25 +0100 Joachim Tingvold joachim@tingvold.com wrote:
Is there a way to rename the 'interface'-fields on a switch?
Not in NAV, no.
We have some (really) old switches (Netgear FSM726) that has really long interface-names; "FSM726 Management Switch 10/100 Mbps Ethernet Network Interface 1", which kinda breaks the "Switch port status"- and "Switch port activity"-tabs on the "IP Device Info"-page of the devices in question.
Could I change this in the DB in some way? Or will it just be overwritten next time navcron runs?
We had similar issues with Cisco devices before NAV 3.6. For Cisco devices we used their ifDescr value as interface names; a typical value would be "GigabitEthernet3/2", which is way too long for the port matrix in ipdevinfo (today we use the ifName value always, which in the Cisco case would be "Gi3/2").
Before NAV 3.6, ipdevinfo had some shortening logic especially for Cisco interfaces names, which knew how to shorten "GigabitEthernet3/2" into "Gi3/2".
I might imagine some sort of generic algorithm for shortening interface names if they happen to exceed some maximum length. Something that might work in this case is to pick the rightmost word containing any digits. Wouldn't work nicely for GigabitEthernet3/2, though.
Any idea what the ifDescr values look like on this device (snmpwalk ifDescr)?