Read .cfg from CLI

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
How can i read different .cfg file from cli?
can i save file as .xsf format?
Photo of Ravi0087

Ravi0087

  • 304 Points 250 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Taykin Izzet

Taykin Izzet , Employee

  • 2,994 Points 2k badge 2x thumb
Ravi, it is an option on the CLI to use the command 'save configuration as-script <filename>'. 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 <filename> command.
Photo of Ravi0087

Ravi0087

  • 304 Points 250 badge 2x thumb
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?
Photo of Taykin Izzet

Taykin Izzet , Employee

  • 2,944 Points 2k badge 2x thumb
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 <module-name>' 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.