2.4. FTP server Commands

2.4.1. ftp server enable

Command Purpose

To enable FTP server on switch.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ftp server ( mgmt-if | ) enable

no ftp server enable

Parameter

Parameter Description

Parameter Value

mgmt-if

Management port

-

Command Mode

Global Config

Default

None

Usage

None

Examples

2.4.2. ftp server port

Command Purpose

To config FTP server listen port. To restore the default value, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ftp server port PORTNUM

no ftp server port

Parameter

Parameter Description

Parameter Value

port num

(1025-65535)

Command Mode

Global Config

Default

Default value is 21

Usage

None

Examples

The following example set FTP server port is 10000:

Switch# configure terminal
Switch# ftp server port 10000

Related Commands

None

2.4.3. ftp server time-out

Command Purpose

To config FTP server idle-time. To restore the default value, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ftp server time-out MINUTES

no ftp server time-out

Parameter

Parameter Description

Parameter Value

minutes

(1-1000)mins

Command Mode

Global Config

Default

Default idle-time is 15mins

Usage

None

Examples

The following example set FTP server idle-time is 5mins:

Switch# configure terminal
Switch# ftp server time-out 5

Related Commands

ftp passive

2.4.4. ftp server source address

Command Purpose

To configure the source address of FTP server on your switch, use the FTP server source address command in Global Config. To restore the default value, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ftp server source address ( vrf NAME | ) IP_ADDR

no ftp server source address

Parameter

Parameter Description

Parameter Value

vrf NAME

Specify a vrf to provide FTP server

A string with 1-15 characters

IP_ADDR

Configure IP address for ftp server working inband

IPv4 Address

Command Mode

Global Config

Default

None

Usage

You can use this command to modify the address which FTP server works on, and specify a vrf to provide FTP server. The source address can only be 0.0.0.0 or loopback interface’s address, 0.0.0.0 indicates that the SSH server address is not specified.

Examples

The following example shows how to specify FTP server source address:

Switch# configure terminal
Switch(config)# ftp server source address vrf vpn1 10.10.10.1

Related Commands

None

2.4.5. show ftp server

Command Purpose

To display the ftp server configurations, use show ftp server command in Privileged EXEC mode.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show ftp server

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

The following example displays the ftp server configurations:

Switch# show ftp server

FTP server configuration:
============================================================
 FTP Server                              : Disabled
 FTP Server Timeout                      : 15
 FTP Server Port                         : 21
 FTP Server Source Address               : 0.0.0.0

Related Commands

None