Copying Files To Or From Cisco Nx-Os - Cisco Nexus 9000 Series Troubleshooting Manual

Nx-os release 7.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Before Contacting Technical Support

Copying Files to or from Cisco NX-OS

You might need to move files to or from the device. These files may include the log, configuration, or firmware
files.
Cisco NX-OS offers protocols to use for copying to or from the device. The device always acts as a client, so
that an FTP, SCP, or TFTP session always originates from Cisco NX-OS and either pushes files to an external
system or pulls files from an external system.
File Server: 172.22.36.10
File to be copied to the switch: /etc/hosts
The copy command supports the FTP, SCP, SFTP, and TFTP transfer protocols and many different sources
for copying files.
switch# copy ?
bootflash:
core:
debug:
ftp:
http:
https:
licenses
log:
logflash:
nvram:
running-config
scp:
sftp:
startup-config
system:
tftp:
usb1:
usb2:
volatile:
You can use secure copy (SCP) as the transfer mechanism, as follows:
scp:[//[username@]server][/path]
This example copies /etc/hosts from 172.22.36.10 to hosts.txt, for user user1:
switch# copy scp://user1@172.22.36.10/etc/hosts bootflash:hosts.txt
user1@172.22.36.10's password:
hosts 100% |*****************************| 2035 00:00
This example backs up the startup configuration to an SFTP server:
switch# copy startup-config sftp://user1@172.22.36.10/test/startup configuration.bak1
Connecting to 172.22.36.10...
User1@172.22.36.10's password:
switch#
You should back up the startup configuration to a server on a daily basis and prior to any changes. You
Note
could write a short script to run on Cisco NX-OS to perform a save and then a backup of the configuration.
The script needs to contain two commands: copy running-configuration startup-configuration and
copy startup-configuration tftp://server/name. To execute the script, use the run-script filename
command.
Select source filesystem
Select source filesystem
Select source filesystem
Select source filesystem
Select source filesystem
Select source filesystem
Backup license files
Select source filesystem
Select source filesystem
Select source filesystem
Copy running configuration to destination
Select source filesystem
Select source filesystem
Copy startup configuration to destination
Select source filesystem
Select source filesystem
Select source filesystem
Select source filesystem
Select source filesystem
Cisco Nexus 9000 Series NX-OS Troubleshooting Guide, Release 7.x
Copying Files to or from Cisco NX-OS
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents