I have a large install of routers in our wide area. These routers do not have a Device Type Template available in NCM. I would like to automate getting a backup of the routers configuration. Since there is no template available I thought I would try using a command script to automate this process.
I am editing an existing script just for this purpose and I am having trouble with a variable.. The process to log into the deive and backup the config is shown below....
1. Telnet to device
2. Enter user login
3. Enter password
4. at the > prompt enter the following command to download a backup copy of the config
file upload flash_file @TargetAddress system.cfg {Destination File Name}
The 'Destination File Name} needs to be a variable. This command script will be run on approx 300 routers and each destination file name needs to be unique.. Any suggestions on how to use a variable in a command script?