cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1494
Views
0
Helpful
1
Replies

Copy running config to tftp without confirmation.

John Slegers
Level 1
Level 1

Hello,

 

We are testing two Cisco 9300-48U units with version 16.9.4 for migrating from H3C switches to Cisco.

We wander if it is possible to copy the config without confirmation.

We use the command copy running-config tftp://10.1.2.210/Cisco.cfg

 

We have to confirm the IP address and the filename. Is it possible to do this without confirmation?

 

John

 

1 Reply 1

Hello,

 

you could run the below EEM script. If you configure a command alias to run the applet, all you would have to do is type "crt" at the exec prompt to run the operation. You could even schedule the script to run at certain intervals.

 

event manager applet COPY_RUN_TFTP
event none
action 1.0 cli command "enable"
action 2.0 cli command "copy running-config tftp://10.1.2.210/Cisco.cfg" pattern "confirm"
action 3.0 cli command "y"
action 4.0 cli command "end"

 

alias exec crt event manager run COPY_RUN_TFTP

Review Cisco Networking for a $25 gift card