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@ flash://
    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
    -rw-r--r--   1 root     root          207 Mar 24 16:09
    -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