Connect to console server by name

I have several servers connected to my VyOS router over USB-to-Serial adapters to provide out-of-band access, like so:

service {
  console-server {
    device usb0b4p1.0 {
       description ServerA
       speed 9600
   }
   device usb0b5p1.0 {
       description ServerB
       speed 115200
   }
   device usb0b10p1.0 {
       description ServerC
       speed 115200
   }
 }
}

This works, but to connect to Server A, I need to run connect console usb0b4p1.0 - so inevitably I need to configure; show service console-server to remember which adapter maps to which server.

It would be much easier if I could do connect console ServerA, or at the very least if show console-server ports included the configured description.

I’ve had a go at implementing this: conserver: T4717: Support for setting a name for console-server devices by insertjokehere · Pull Request #1559 · vyos/vyos-1x · GitHub

1 Like