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

Prime Infrastructure: CLI Template Query

isoffice1
Level 1
Level 1

Hi all,

 

We have a Cisco Prime Infrastructure Appliance running version 2.1.

I'm attempting to create a CLI Template which will allow me to TFTP the running configuration from our network switches to a centralised location.

I appreciate that Prime itself has an archive of startup and running configs to draw from, but I'm taking a 'belt and braces' approach here and would like a secondary backup of switch configs.

I'm nearly there, but I cannot find how I can get a carriage return into the CLI command set.

So far, I have:

 

#MODE_ENABLE
write memory
#INTERACTIVE
copy running-config tftp<IQ><R>ip_address_of_tftp_server<IQ><R>?????
#ENDS_INTERACTIVE
#MODE_END_ENABLE

 

I'm wondering if someone could let me know what the required response to the second IQ would be.

Many thanks,

 

John P

1 Reply 1

renjithg
Cisco Employee
Cisco Employee

#MODE_ENABLE

#INTERACTIVE
write memory<IQ>Building configuration<R>yes

#ENDS_INTERACTIVE
#MODE_END_ENABLE
#INTERACTIVE
copy running-config  tftp://ip_address/<IQ>Destination filename<R><destination_filename>
#ENDS_INTERACTIVE
#MODE_END_ENABLE

 

Basically, command "copy running-config  tftp://ip_address/" returns what response and question need to capture and update as above. You can test in a switch/Router and do the same.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: