Read .cfg from CLI


How can i read different .cfg file from cli?
can i save file as .xsf format?

3 replies

Userlevel 5
Ravi, it is an option on the CLI to use the command 'save configuration as-script '. This will output the configuration to a file which can either be exported via TFTP or edited using the VI editor. Once the changes have been made you can load the script using the 'load script command.
hmm...can i edit config on the fly using cli...(reason behind that it, i dont want to unconfig anything)?and reload to use latest changes?
Userlevel 5
Ravi0087 wrote:

hmm...can i edit config on the fly using cli...(reason behind that it, i dont want to unconfig anything)?and reload to use latest changes?

The 'load script' command can help with reverting back changes. You can also review the current commands that have been set using the command 'show configuration ' and then either unconfiguring or disabling the command in question. Also, the commands 'enable cli-config-logging' and 'history' can help keep record of the commands been issued previously.

Reply