ECS4100 Series CLI Reference Guide-R07

Table Of Contents
Chapter 4
| System Management Commands
File Management
– 136 –
This example shows how to copy a file from an SFTP server. Note that the public key
offered by the server is not found on the local system, but is saved locally after the
user selects to continue the copy operation.
Console#copy sftp file
SFTP server IP address: 192.168.0.110
Choose file type:
1. config: 2. opcode: 1
Source file name: startup2.cfg
Destination file name: startup2.cfg
Login User Name: admin
Login User Password:
Press 'y' to allow connect to new sftp server,
and 'N' to deny connect to new sftp server: y
Success.
Console#
delete This command deletes a file or image.
Syntax
delete {file name filename | https-certificate | public-key username}
file - Keyword that allows you to delete a file.
name - Keyword indicating a file.
filename - Name of configuration file or code image.
https-certificate - Keyword that allows you to delete the HTTPS secure site
certificate. You must reboot the switch to load the default certificate.
public-key - Keyword that allows you to delete a SSH key on the switch.
(See “Secure Shell” on page 263.)
username Name of an SSH user. (Range: 1-8 characters)
Default Setting
None
Command Mode
Privileged Exec
Command Usage
If the file type is used for system startup, then this file cannot be deleted.
“Factory_Default_Config.cfg” cannot be deleted.