Managing configuration files using copy and paste
5.2.4
This page will explain how HyperTerminal can be used to copy a configuration. The file is then edited and pasted back into the router.Another way to create a backup copy of the configuration is to capture the output of the show running-config command. To do this from the terminal session, copy the output, paste it into a text file, and then save the text file. This file will need to be edited before it can be used to restore the router configuration.
Perform the following steps to capture the configuration from a HyperTerminal screen:
- Select Transfer.
- Select Capture Text.
- Specify a name for the text file to capture the configuration.
- Select Start to start capturing text.
- Use the show running-config command to display the configuration on the screen.
- Press the Spacebar when each "-More -" prompt appears.
- Select Transfer.
- Select Capture Text.
- Select Stop.
The configuration file can be edited from a text editor such as Notepad. To edit the file from Notepad click on File > Open. Find the captured file and select it. Click Open.
The lines that need to be deleted contain the following information:
- show running-config
- Building configuration...
- Current configuration:
- - More -
- Any lines that appear after the word "End"
The backup configuration can be restored from a HyperTerminal session. Before the configuration is restored any remaining configuration should be removed from the router. To do this, enter the erase startup-config command at the privileged EXEC prompt and then enter the reload command to restart the router.
HyperTerminal can be used to restore a configuration. Use the following steps to copy a clean backup of the configuration into a router:
- Enter router global configuration mode.
- Click on Transfer > Send Text File in HyperTerminal.
- Select the name of the file for the saved backup configuration.
- Watch as the lines of the file are entered into the router.
- Observe any errors.
- Press Ctrl-Z to exit global configuration mode after the configuration is entered.
- Restore the startup configuration with the copy running-config startup-config command.
No comments:
Post a Comment