Chapter 4
| System Management Commands
File Management
– 102 –
This example shows how to copy a file to an FTP server.
Console#copy ftp file
FTP server IP address: 169.254.1.11
User[anonymous]: admin
Password[]: *****
Choose file type:
1. config: 2. opcode: 2
Source file name: BLANC.BIX
Destination file name: BLANC.BIX
Console#
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
[
dsa
|
rsa
]}
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 225.
)
username
– Name of an SSH user. (Range: 1-8 characters)
dsa
– DSA public key type.
rsa
– RSA public key type.