Capture Configuration to a Text File
1. Configuration files can also be saved and archived to a text document.
2. Step 1. Open terminal emulation software, such as PuTTY or Tera Term, that is already connected to a switch.
3. Step 2. Enable logging in to the terminal software and assign a name and file location to save the log file. The figure displays that All session output will be captured to the file specified (i.e., MySwitchLogs).
4. Step 3. Execute the show running-config or show startup-config command at the privileged EXEC prompt. Text displayed in the terminal window will be placed into the chosen file.
5. Step 4. Disable logging in the terminal software. The figure shows how to disable logging by choosing the None session logging option
6. Note: The text file created can be used as a record of how the device is currently implemented. The file could require editing before being used to restore a saved configuration to a device.