a way to update port aliases, via LLDP?

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
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... 
Photo of Somebo O'Rother

Somebo O'Rother

  • 120 Points 100 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Matthew Helm

Matthew Helm, Employee

  • 1,852 Points 1k badge 2x thumb
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


Photo of Bastian Sprotte

Bastian Sprotte, Employee

  • 1,610 Points 1k badge 2x thumb
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)

-
Photo of Somebo O'Rother

Somebo O'Rother

  • 120 Points 100 badge 2x thumb
Bastian, yes, that's what I was hoping for.

I'll let you know how I do with that.
Photo of Bastian Sprotte

Bastian Sprotte, Employee

  • 1,610 Points 1k badge 2x thumb
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;)

-
Photo of Matthew Helm

Matthew Helm, Employee

  • 1,852 Points 1k badge 2x thumb
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.