cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4999
Views
0
Helpful
3
Replies

Running a batch file for multiple commands (lose connection)

davidwatson1
Level 1
Level 1

Hi

 

I need to make a change, where when i enter the first command, i lose remote connectivity where i need to enter a few more commands. Is there a way i can script this? Im trying to make the changes to some ports on a 3850.

Im doing some python scripting studies but not there yet :)

 

thanks


David

3 Replies 3

Without learning a scripting language or progamming (which python is the way it seems to be going), you could use Putty Commander (http://www.unixmantra.com/2013/04/putty-connection-manager-tabbed-putty.html) to run multiple commands.

Regards,

Kevin

Hi Kevin

thanks for the response, ive had a look at this software and it looks pretty good. Im actually using super putty at the moment thats similar. The multi command runs the same command on different instances, where im looking to run 2 commands, the first one drops the connection and therefore i can not run the second command

Ta

David

davidwatson1
Level 1
Level 1

Actually, i found an article with Macros that seems to do the trick

config t
macro name Change-vlan
interface Vlan1
   no ip address
   shutdown
interface vlan100
   ip address 172.29.159.6 255.255.255.252
   no shutdown @

 

To run the macro:

 

macro global apply Change-vlan

https://supportforums.cisco.com/document/29676/create-macros-cisco-switches

Review Cisco Networking for a $25 gift card