© Copyright Lenovo 2017 Chapter 4: Securing Administration 91
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
Whenloadingaconfigurationfiletotheswitch,theapplyandsavecommands
arestillrequired,inorderfortheconfigurationcommandstotakeeffect.The
applyandsavecommandsmaybeenteredmanuallyontheswitch,orbyusing
SCPcommands.
Syntax:
Example:
TheCLIdiffcommandisautomaticallyexecutedattheendofputcfgto
notifytheremoteclientofthedifferencebetweenthenewandthecurrent
configurations.
putcfg_applyrunstheapplycommandaftertheputcfgisdone.
putcfg_apply_savesavesthenewconfigurationtotheflashafter
putcfg_applyisdone.
Theputcfg_applyandputcfg_apply_savecommandsareprovided
becauseextraapplyandsavecommandsareusuallyrequiredafteraputcfg;
however,anSCPsessionisnotinaninteractivemode.
>> scp [-4|-6] <username>@<switchIPaddress>:getcfg <localfilename>
>> scp scpadmin@205.178.15.157:getcfg ad4.cfg
>> scp [-4|-6] <localfilename> <username>@<switchIPaddress>:putcfg
>> scp ad4.cfg scpadmin@205.178.15.157:putcfg
>> scp [-4|-6] <localfilename> <username>@<switchIPaddress>:putcfg_apply
>> scp [-4|-6] <localfilename> <username>@<switchIPaddress>:putcfg_apply_save
>> scp ad4.cfg scpadmin@205.178.15.157:putcfg_apply
>> scp ad4.cfg scpadmin@205.178.15.157:putcfg_apply_save