Administrator Guide

Location
source-file-url
Syntax
destination-file-url
Syntax
For a remote file location:
SCP server
copy scp://{hostip | hostname}/
filepath/ filename
scp://{hostip | hostname}/
filepath/filename
Important Points to Remember
You may not copy a file from one remote system to another.
You may not copy a file from one location to the same location.
When copying to a server, you can only use a hostname if a domain name server (DNS) server is configured.
Example of Copying a File to an FTP Server
DellEMC#copy flash://Dell-EF-8.2.1.0.bin ftp://myusername:mypassword@10.10.10.10/
/Dell/Dell-EF-8.2.1.0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27952672 bytes successfully copied
Example of Importing a File to the Local System
core1#$//copy ftp://myusername:mypassword@10.10.10.10//Dell/
Dell-EF-8.2.1.0.bin flash://
Destination file name [Dell-EF-8.2.1.0.bin.bin]:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26292881 bytes successfully copied
Mounting an NFS File System
This feature enables you to quickly access data on an NFS mounted file system. You can perform file operations on an NFS mounted file
system using supported file commands.
This feature allows an NFS mounted device to be recognized as a file system. This file system is visible on the device and you can execute
all file commands that are available on conventional file systems such as a Flash file system.
Before executing any CLI command to perform file operations, you must first mount the NFS file system to a mount-point on the device.
Since multiple mount-points exist on a device, it is mandatory to specify the mount-point to which you want to load the system.
The /f10/mnt/nfs directory is the root of all mount-points.
To mount an NFS file system, perform the following steps:
Table 4. Mounting an NFS File System
File Operation Syntax
To mount an NFS file system:
mount nfs rhost:path mount-
point username password
The foreign file system remains mounted as long as the device is up and does not reboot. You can run the file system commands without
having to mount or un-mount the file system each time you run a command. When you save the configuration using the write command,
the mount command is saved to the startup configuration. As a result, each time the device re-boots, the NFS file system is mounted
during start up.
Table 5. Forming a
copy Command
Location
source-file-url
Syntax
destination-file-url
Syntax
For a remote file location:
NFS File System
copy nfsmount://{<mount-
point>}/filepath/filename}
username:password
tftp://{hostip | hostname}/
filepath/filename
Important Points to Remember
You cannot copy a file from one remote system to another.
You cannot copy a file from one location to the same location.
When copying to a server, you can only use a hostname if a domain name server (DNS) server is configured.
Getting Started
45