2.6. scp Commands

2.6.1. copy GFILENAME GURLNAME

Command Purpose

Use this command to copy local file to scp server.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

copy GFILENAME ( mgmt-if | ) GURLNAME

Parameter

Parameter Description

Parameter Value

mgmt-if

Management port

-

GFILENAME

Copy from local file

The full path and file name, up to 255 characters

GURLNAME

Copy to local file

The full path and file name, up to 255 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This is a sample output from the command displaying how to copy local file to scp server:

Switch# copy flash:/test.c scp://1.1.1.1/running-config

2.6.2. copy GURLNAME GFILENAME

Command Purpose

Use this command to copy file from scp server to local.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

copy ( mgmt-if | ) GURLNAME GFILENAME

Parameter

Parameter Description

Parameter Value

mgmt-if

Management port

-

GURLNAME

Copy from URL

The full path and file name, up to 255 characters

GFILENAME

Copy to local file

The full path and file name, up to 255 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This is a sample output from the command displaying how to copy file from scp server to local:

Switch# copy scp://1.1.1.1/test.c flash:test1.c

get file from scp://1.1.1.1/test.c
.
Received 225 bytes in 0.3 seconds

Related Commands

None

2.6.3. copy running-config mgmt-if

Command Purpose

Use this command to copy running-config to scp server.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

copy running-config ( mgmt-if | ) GURLNAME

Parameter

Parameter Description

Parameter Value

startup-config

Copy from current system configuration

-

mgmt-if

Management port

-

GURLNAME

Copy to URL

The full path and file name, up to 255 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This is a sample output from the command displaying how to copy running-config to scp server:

Switch#copy running-config mgmt-if scp://1.1.1.1/running-config

Building configuration...
send file to scp://1.1.1.1/running-config
...
Sent 40198 bytes in 8.3 seconds

Related Commands

None

2.6.4. copy mgmt-if startup-config

Command Purpose

Use this command to copy startup-config from scp server.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

copy ( mgmt-if | ) GURLNAME startup-config

Parameter

Parameter Description

Parameter Value

mgmt-if

Management port

-

GURLNAME

Copy from URL

The full path and file name, up to 255 characters

startup-config

Copy to startup system configuration

-

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This is a sample output from the command displaying how to copy startup-config from scp server:

Switch#copy scp://1.1.1.1/startup-config startup-config

get file from scp://1.1.1.1/startup-config
..
Sent 32252 bytes in 6.4 seconds

Related Commands

None