
IMPORTANT
It is recommended that you
never
save a configuration in startup-
config or a user-specific configuration with the
cli config defaults
command because the additional list of default commands con-
sumes significant portions of the
config:
memory.
Configuration File Handling Task List
71
CopperLink CL2300 User Manual
9
• Configuration File Handling
Note
Application files can be very long when displayed (by using the
show
com-
mand). To make them easier to read, many default commands are not dis-
played when executing the
show running-config
command. However, the
administrator may want to see the entire configuration, including these nor-
mally “hidden” default commands. To see all commands, execute the
cli
config defaults
command. By issuing a
show running-config
command
afterwards, you will see all the commands, a list which is significantly longer.
To hide these hidden commands again, issue the
no cli config
defaults
command.
Modifying the Running Configuration at the CLI
Trinity accepts interactive modifications on the currently running configuration via the CLI. Interactive con-
figuring needs access to the CLI. Use the
enable
command to enter administrator execution mode, and then
switch to the configuration mode by typing the command
configure
. Once in configuration mode, you can
enter the configuration commands that are necessary to your Patton device’s operation. When you configure
Trinity by using the CLI, the shell executes the commands as you enter them.
When you log in using the CLI, all commands you enter directly modify the running configuration located in
the volatile memory region
system:
(or RAM) of your device. Because it is located in volatile memory, to be
made permanent, your modifications must be copied to the persistent (non-volatile) memory. In most cases
you will store it as the upcoming startup configuration in the persistent memory region
config:
under the name
startup-config
. On the next start-up the system will initialize itself using the modified configuration. After the
startup configuration has been saved to persistent memory, you have to restart the device by using the
reload
command to cause the system to initialize with the new configuration.
The execution command
reload
accepts with the following option:
•
forced—reloads the system without prompting for confirmation or for saving the running-configuration (no
need to type
yes
or
no
). The question whether to save the running-configuration is automatically answered with
no
, the question whether to reload or not with
yes
.
Mode:
Administrator execution
Step
Command
Purpose
1
device
#configure
Enters administrator configuration mode
2
Enter all necessary configuration commands.
3
device
(cfg)#copy running-config startup-config
Saves the running configuration file as the
upcoming startup configuration
4
device
(cfg)#reload
Restarts the system
Example
: Modifying the running configuration at the CLI
The following example shows how to modify the currently running configuration via the CLI and save it as the
startup configuration.