06-12-2008 07:24 AM
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?
06-12-2008 10:22 AM
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 '-'.
06-12-2008 10:57 AM
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?
06-12-2008 11:00 AM
I haven't found any general documentation for all available replaceable variables. Such a thing would be useful, though.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide