copy system file
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]
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 core myFile sftp sftp://sftp.mysite.com/dst_filename vrf management
#copy techsupport tech_support_23_Feb_2001_18_27_00.tar.gz scp scp://10.12.16.17/home/satya/tech_support_23_Feb_2001_18_27_00.tar.gz vrf management
Enter Username:root
Enter Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 72368 0 0 0 72368 0 147k -::- -::- -::- 147k
100 72368 0 0 0 72368 0 147k -::- -::- -::- 147k
Copy Success
Last modified date: 10/19/2023