Thursday, June 7, 2018

New to switching, help with a script im trying to make

Hi all,

If you could help me, i would be most grateful. I am trying to script the below list of commands for HP switches, but I'm struggling to get past one thing. The script needs to run on various switches with different amounts of ports.

i need to somehow insert the highest port number (where I've put PortNumber), but the highest port number changes for each switch i run this on.

sh int br conf t lldp admin 1-PortNumber tx_rx cdp enable 1-PortNumber end wr mem sh lldp inf rem sh cdp nei exit exit y



No comments:

Post a Comment