3 delete, Delete – PLANET XGS3-24042 User Manual

Page 106

Advertising
background image

XGS3 Command Guide

2-106

“ftp://username:pass@server-ip/file-name”

“tftp://server-ip/file-name”

2. The prefix of the destination file URL should be in one of the following forms:

starting with “flash:/”

“ftp://username:pass@server-ip/file-name”

“tftp://server-ip/file-name”

Command Mode:

Admin Mode.

Usage Guide:

1. In this command, when the prefix of the source file URL is ftp:// or tftp://, that of the destination file URL should not

be either of them.

2. To use this command, the designated source file should exist, and the destination file should not be named the

same as any existing directory or file, otherwise, there might be a prompt warning about a failed copy operation or an

attempt to overwrite an existing file.

3. If the source and destination files are in different directories, with this command implemented, users can copy files

from other directories into the current one.

URL Example: The URL of files in root directory of Flash devices on it should be flash:/nos.img

Example:

Copy the file “flash:/nos.img” and store it as “flash/ 6.1.11.0.img”.

Switch#copy flash:/nos.img flash:/nos-6.1.11.0.img

Copy flash:/nos.img to flash:/nos-6.1.11.0.img? [Y:N] y

Copyed file flash:/nos.img to flash:/nos-6.1.11.0.img.

2.3 delete

Command:

delete <file-url>

Function:

Delete the designate file on the storage device.

Parameters:

<file-url> is the full path of the file to be deleted.

Command Mode:

Admin Mode.

Usage Guide:

The designated file will be deleted after implementing this command.

Example:

Delete file flash:/nos.img.

Advertising