Copying Files Using The Cli - Cisco 9134 - MDS Multilayer Fabric Switch Troubleshooting Manual

Mds 9000 family
Hide thumbs Also See for 9134 - MDS Multilayer Fabric Switch:
Table of Contents

Advertisement

Steps to Perform Before Calling TAC
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

Copying Files Using the CLI

The CLI offers a broad range of protocols to use for copying to or from the switch. Note that the switch
always acts as a client, such that an ftp/scp/tftp session will always originate from the switch and either
push files to an external system or pull files from an external system.
The copy CLI command supports four transfer protocols and 12 different sources for files.
ca-9506# copy ?
Use the following syntax to use secure copy (scp) as the transfer mechanism:
To copy
hosts.txt
To back up the startup-configuration to a sftp server, use the following command:
Backing up the startup-configuration to a server should be done on a daily basis and prior to any
Tip
changes. A short script could be written to be run on the MDS to perform a save and then backup of
the configuration. The script only needs to contain two commands: copy running-configuration
startup-configuration and then copy startup-configuration tftp://server/name. To execute the
script use: run-script filename.
Cisco MDS 9000 Family Troubleshooting Guide, Release 3.x
A-4
File Server: 172.22.36.10
File to be copied to the switch: /etc/hosts
bootflash: Select source filesystem
core: Select source filesystem
debug: Select source filesystem
ftp: Select source filesystem
licenses Backup license files
log: Select source filesystem
modflash: Select source filesystem
nvram: Select source filesystem
running-config Copy running configuration to destination
scp: Select source filesystem
sftp: Select source filesystem
slot0: Select source filesystem
startup-config Copy startup configuration to destination
system: Select source filesystem
tftp: Select source filesystem
volatile: Select source filesystem
"scp:[//[username@]server][/path]"
from 172.22.36.10 using the user
/etc/hosts
, use the following command:
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
switch# copy startup-config sftp://user1@172.22.36.10/MDS/startup-configuration.bak1
Connecting to 172.22.36.10...
User1@172.22.36.10's password:
switch#
Appendix A
Before Contacting Technical Support
, where the destination would be
user1
OL-9285-05

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents