Downloading a file from a network

  1. Make sure that the Python script file is uploaded to an accessible network location.
  2. In privileged EXEC mode, enter the copy command to copy the Python file from the network location to the device flash memory.
    device# copy ftp://MyUserID:MyPassword@10.10.10.10//pythscript1.py flash://pythscript1.py
    For other file-transfer options, refer to the Extreme SLX-OS Command Reference copy topic.
  3. 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)
    
  4. To display the contents of a Python file copied into the device flash memory, enter the show file command.
    device# show file pythscript1.py