Network OS Administration Guide

Supporting Network OS 6.0.1a

Part Number: 53-1003768-04

Downloading a file from a network to a switch

Use this procedure to dowload a file from a network location to a switch.

  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 switch flash memory.
    device# copy ftp://MyUserID:MyPassword@10.10.10.10//pythscript1.py flash://pythscript1.py
    For other file-transfer options, refer to the Network OS Command Reference copy topic.
  3. To display a list of files in the switch flash memory, enter the dir command.
    device# dir
    total 24
    drwxr-xr-x   2 root     sys          4096 Mar 26 15:22 .
    drwxr-xr-x   3 root     root         4096 Jan  1  1970 ..
    -rw-r--r--   1 root     root         1051 Mar 24 16:09 create_po.py
    -rw-r--r--   1 root     root          207 Mar 24 16:09 create_vlans.py
    -rw-r--r--   1 root     sys           557 Mar 26 10:37 defaultconfig.novcs
    -rw-r--r--   1 root     sys           778 Mar 26 10:37 defaultconfig.vcs
    
    1922789376 bytes total (828317696  bytes free)
  4. To display the contents of a Python file copied into the switch flash memory, enter the show file command.
    device# show file pythscript1.py