Accessing the switch 27
Using SSH and SCP client commands
The following shows the format for using some client commands. The examples below use 205.178.15.157 as the IP
address of a sample switch.
Logging in to the switch
Enter the following command to log in to the switch:
ssh <user>@<switch IP address>
For example:
>> # ssh admin@205.178.15.157
Downloading configuration from the switch using SCP
Enter the following command to download the switch configuration using SCP. You will be prompted for a password:
scp <user>@<switch IP address>:getcfg <local filename>
For example:
>> # scp scpadmin@205.178.15.157:getcfg ad4.cfg
The switch prompts you for the scpadmin password.
Uploading configuration to the switch using SCP
Enter the following command to upload configuration to the switch. You will be prompted for a password.
scp <local filename> <user>@<switch IP address>:putcfg
For example:
>> # scp ad4.cfg admin@205.178.15.157:putcfg
Applying and saving configuration
Enter the apply and save commands after the command above (scp ad4.cfg 205.178.15.157:putcfg), or use the
following commands. You will be prompted for a password.
>> # scp <local_filename> <user>@<switch IP addr>:putcfg_apply
>> # scp <local_filename> <user>@<switch IP addr>:putcfg_apply_save
For example:
>> # scp ad4.cfg admin@205.178.15.157:putcfg_apply
>> # scp ad4.cfg admin@205.178.15.157:putcfg_apply_save
Note the following:
• The 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.