a way to update port aliases, via LLDP?


New (to enterprise networking) guy--Wondering if there would be a way to update port aliases, via LLDP, to avoid manually having to do it, which seems to not be very consistent where I work.

I know not all endpoint devices advertise LLDP out-of-the-box, but I'd be willing to do some configuring... it just seems like a saner way to handle knowing 'what's on the other end' questions.

TLDR: I guess I'm curious what other people do to handle aliasing...

5 replies

Userlevel 4
You could consider using the LLDP device discovery method for UPM scripting per the example below. This example was tested using EXOS 22.2.1.5 but should work with EXOS 16.2 or later.

This configuration assumes that the end-system device advertises System Name via LLDP. Because of the default timers, LLDP may take up to as long as 120 seconds to discover or "undiscover" a device. The port number ranges specified in the config upm event commands in this configuration example would be the ports where you would have systems using LLDP.

####
create upm profile nameport

disable clip

set var cli.out 0

show lldp port $(EVENT.USER_PORT) neigh detail

set var s $TCL(split ${cli.out} "\n")

set var i $TCL(lsearch $s *System\ Name\:*)

set var l $TCL(lindex $s $i)

set var n $TCL(lindex $l 3)

config port $(EVENT.USER_PORT) display-string $(n)

save

.

create upm profile unnameport

unconfig port $(EVENT.USER_PORT) display-string

save

.

configure upm event device-detect profile nameport ports 1-7

configure upm event device-undetect profile unnameport ports 1-7
Userlevel 4
Hello,
in case you want to see the port alias in EMC Extreme Management Center (Netsight)
You can set the display and description-string, which will allow to query the Alias per SNMP

config port $(EVENT.USER_PORT) description-string $(n)
config port $(EVENT.USER_PORT) display-string $(n)

-
Bastian, yes, that's what I was hoping for. I'll let you know how I do with that.
Userlevel 4
Hi,
note the UPM detection will only start if the Port goes up/down/up
if you copy the UPM as we send,
you might need to disable the Ports and enable again.
Or you boot the system;)

-
Userlevel 4
Bastian Sprotte wrote:

Hi,
note the UPM detection will only start if the Port goes up/down/up
if you copy the UPM as we send,
you might need to disable the Ports and enable again.
Or you boot the system;)

-

If you disable and then enable the port, you may stand a chance of re-triggering the UPM scripts. Not a big deal, but knowing that will explain extra events in the UPM history.

Reply