copy system file (interactive)
Use this command to copy a system file to an FTP server, an SCP server, an SFTP server, or a TFTP server.
Note: The names of the options for the source in the first parameter refer to symbolic locations. The specific locations for Linux are noted below. The locations on a specific device can vary depending on the platform.
Command Syntax
copy (core|debug|log|techsupport|filepath) FILE (tftp TFTP-URL|ftp FTP-URL|scp SCP-URL|sftp SFTP-URL)(vrf (NAME|management)|)
Parameters
core
Core file storage; on Linux this refers to /var/log/crash/cores/
debug
Debug file storage; on Linux this refers to /log/
log
Log file storage; on Linux this refers to /var/log/
techsupport
Copy techsupport log files to remote machine
filepath
Copy device file to remote machine
FILE
Source file name
TFTP-URL
Destination: tftp:[//server[:port]][/path]
FTP-URL
Destination: ftp:[//server][/path]
SCP-URL
Destination: scp:[//server][/path]
SFTP-URL
Destination: sftp:[//server][/path]
ftp
Destination: FTP server
tftp
Destination: TFTP server
scp
Destination: SCP server
sftp
Destination: SFTP server
NAME
Virtual Routing and Forwarding name
management
Management Virtual Routing and Forwarding
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#copy log myFile sftp sftp://sftp.mysite.com/dst_filename vrf management
Last modified date: 10/19/2023