Copying a file from a USB device

Use this topic to copy a file from a USB stick to an Extreme device.

Before you begin

Important

Important

The only supported USB device for this task is the Extreme USB stick shipped with the device.

Procedure

  1. Copy the Python script file to the USB stick.
  2. Insert the USB stick into the device USB port and enter the usb on command.
  3. In privileged EXEC mode, enter the copy command to copy the Python file from the USB stick to the device flash memory.
    device# copy usb://pythscript1.py flash://pythscript1.py
  4. To display a list of files in the device flash memory, enter the dir command.
    device# dir
    total 32
    drwxr-xr-x 2  251 1011  4096  Aug 26 08:44 .
    drwxr-xr-x 3  251 1011  4096  Jul 20 07:50 ..
    -rw-r--r-- 1 root root  1051  Mar 24 16:09 create_po.py
    -rw-r--r-- 1 root sys    695  Aug 23 21:18 defaultconfig.cluster
    -rw-r--r-- 1 root root   410  Aug 26 04:06 defaultconfig.standalone
    -rw-r--r-- 1 root root 10042  Aug  4 00:01 ospfnsr1.cfg
    -rw-r--r-- 1 root root   410  Aug 26 01:28 startup-config
    
    16908197888 bytes total (10226114560  bytes free)
    
  5. To display the contents of a Python file copied into the device flash memory, enter the show file command.
    device# show file pythscript1.py