Usage: The filename and file:filename URLs are equivalent. You can use either URL to refer to

a file in a switch’s nonvolatile memory. The tftp://ip-addr/filenameURL refers to a file on a TFTP server. If DNS is configured on the switch, you can specify a TFTP server’s hostname as an alternative to specifying the IP address.

The tmp:filename URL specifies a file in temporary storage. You can copy a file out of temporary storage but you cannot copy a file into temporary storage. Temporary storage is reserved for use by MSS.

If you are copying a system image file into nonvolatile storage, the filename must be preceded by the boot partition name, which can be boot0 or boot1. Enter the filename as boot0:/filename or boot1:/filename. You must specify the boot partition that was not used to load the currently running image.

The maximum supported file size for TFTP is 32MB.

Examples: The following command copies a file called floormx from nonvolatile storage to a TFTP server:

DWS-1008# copy floormx tftp://10.1.1.1/floormx success: sent 365 bytes in 0.401 seconds [ 910 bytes/sec]

The following command copies a file called closetmx from a TFTP server to nonvolatile storage:

DWS-1008#copy tftp://10.1.1.1/closetmx closetmx

success: received 637 bytes in 0.253 seconds [ 2517 bytes/sec]

The following command copies system image MX020101.020 from a TFTP server to boot partition

1 in nonvolatile storage:

DWS-1008#copy tftp://10.1.1.107/MX020101.020 boot1:MX020101.020

............................................................................................................success: received

9163214 bytes in 105.939 seconds [ 86495 bytes/sec]

The following commands rename test-configto new-configby copying it from one name to the other in the same location, then deleting test-config:

DWS-1008# copy test-confignew-configDWS-1008# delete test-configsuccess: file deleted.

The following command copies file corpa-login.htmlfrom a TFTP server into subdirectory corpa in a switch’s nonvolatile storage:

DWS-1008# copy tftp://10.1.1.1/corpa-login.htmlcorpa/corpa-login.htmlsuccess: received 637 bytes in 0.253 seconds [ 2517 bytes/sec]

See Also:

delete

dir

D-Link DWS-1008 CLI Manual

290

Page 293
Image 293
D-Link dws-1008 manual DWS-1008#copy tftp//10.1.1.1/closetmx closetmx, Delete Dir Link DWS-1008 CLI Manual 290