© Copyright IBM Corp. 2011 Chapter 4. Securing Administration 57
To Copy the Switch Configuration File to the SCP Host
Syntax
:
Example:
To Load a Switch Configuration File from the SCP Host
Syntax:
Example:
To Apply and Save the Configuration
When loading a configuration file to the switch, the
apply
and
save
commands are
still required for the configuration commands to take effect. The
apply
and
save
commands may be entered manually on the switch, or by using SCP commands.
Syntax:
Example:
•
The CLI
diff
command is automatically executed at the end of
putcfg
to notify
the remote client of the difference between the new and the current
configurations.
•
putcfg_apply
runs the
apply
command after the
putcfg
is done.
•
putcfg_apply_save
saves the new configuration to the flash after
putcfg_apply
is done.
•
The
putcfg_apply
and
putcfg_apply_save
commands are provided
because extra
apply
and
save
commands are usually required after a
putcfg
;
however, an SCP session is not in an interactive mode.
>> scp [-4|-6] <username>@<switch IP address>:getcfg <local filename>
>> scp scpadmin@205.178.15.157:getcfg ad4.cfg
>> scp [-4|-6] <local filename> <username>@<switch IP address>:putcfg
>> scp ad4.cfg scpadmin@205.178.15.157:putcfg
>> scp [-4|-6] <local filename> <username>@<switch IP address>:putcfg_apply
>> scp [-4|-6] <local filename> <username>@<switch IP address>:putcfg_apply_save
>> scp ad4.cfg scpadmin@205.178.15.157:putcfg_apply
>> scp ad4.cfg scpadmin@205.178.15.157:putcfg_apply_save