Forum Discussion

phakesley's avatar
phakesley
Icon for Neophyte rankNeophyte
2 days ago

SNMP Interface Naming

LM discovers the interfaces as instances which is normal. What I would like to do is change the name of the interfaces to include either the description or override it with a custom property

E.g. current 

SNMP_Network_Interfaces-GigabitEthernet1/0/11 [ID:10111]

To

SNMP_Network_Interfaces-GigabitEthernet1/0/11 [ID:10111] - Interrface Description
Or
SNMP_Network_Interfaces-GigabitEthernet1/0/11 [ID:10111] - [Custom Property Text]

Reason: I really want to have circuit Id's in the instance naming convention. Is this even possible?

  • You can edit the datasource itself to do what you are asking. Below is what is in the datasource. You could move the description call out into the name area.

    // Current Line
    println "${ifIndex}##${ifEntry.description} [ID:${ifIndex}]##${description}####${ifEntry.collect { it.key.contains("predef") ? "${it}" : "auto.interface.${it}" }.join("&")}"