Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Replaceable Parameters

In the past I have found a couple of useful replaceable parameters. For example, I can use the archive subcommand "path tftp://10.1.1.1/&h-&t.cfg". This will facilitate saving the configuration to a TFTP and will use the switch or router Hostname-Date:Time.cfg-x as the file name. My question is, where can I find a list of all of the existing replaceable parameters similar to $h and $t?

3 REPLIES
Cisco Employee

Re: Replaceable Parameters

The only two special character sequences used in config archive are $h (or $H) and $t (or $T). Any occurrence of ' ' or '*' is replaced by '-'.

Community Member

Re: Replaceable Parameters

Thanks for the speedy response. I have also seen some usage of the $ in other places - such as $(hostname) in the "banner motd" command. Is there any documentation of other variables of this type in general and not just with respect to the archive and banner commands?

Cisco Employee

Re: Replaceable Parameters

I haven't found any general documentation for all available replaceable variables. Such a thing would be useful, though.

166
Views
0
Helpful
3
Replies
CreatePlease to create content