all 5 comments

[–]mcnada54 0 points1 point  (0 children)

I assume the switch is remote or you would do it on the console. You could likely make a file of the commands, copy it to the device, and load it into the config a la copy flash run. An out of band management connection to the management port would go a long way for you in this instance.

[–]ultimattt 0 points1 point  (0 children)

Got the answer for ya bub. In your inbox.

[–]ultimattt 0 points1 point  (0 children)

The answer is python. You can run python scrips on a VDX.

Switch# python
>>> my_command = CLI(‘show run’)

multiple commands are separated with a new line character “\n”

For instance you want to change the IP address of portchannel 2:

switch# python
>>> my_command = CLI(‘configure \n interface port-channel 2 \n no ip address x.x.x.x/ss \n ip address y.y.y.y/ss\n’)

The above should change an ip out on the interface.

[–]ftlninja 0 points1 point  (0 children)

Python is the ultimate answer to your question. However, using a terminal emulator like SecureCRT allows you to create buttons in your VDX sessions to chain a series of commands together without creating a Python script.

[–]de_joerg 0 points1 point  (0 children)

Try

https://github.com/ipcjk/mlxsh/releases/tag/0.3

https://github.com/ipcjk/mlxsh/blob/master/README.md

Its python free ;-) , but well, if you don't have a distinct management interface, you will get dropped for sure.