Page 1 of 1

obtain the telnet port numbers in a script

Posted: Mon Nov 04, 2024 1:41 pm
by kiteboy
I'm running a lot of Junipers; shutting them all down takes quite a while authenticating to each one and issuing commands , and also, I'm constantly adding and removing devices from my lab.
The Junipers seem to be easily corrupted if not shut down properly.


Is there a way I can see all the port numbers allocated to my VMs from the CLI or a Script? I know hovering over one on GUIs will do this, but I'm looking for something I can incorporate into a script.

I'm referring to the Telnet ports to get on the CLI.

Regards

Simon