Cisco Support Community
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://". 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?

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.

CreatePlease to create content