Manuals

Manuals
Flash/File Commands: Dell PowerConnect Switch User's Guide

Back to Contents Page

Flash/File Commands:
Dell PowerConnect Switch User's Guide

copy 

delete

dir

whichboot

boot system 

These commands are used to manage the system code or configuration files.


copy

Use this command to move (upload/download) a code image or configuration file between the switch's Flash memory and a TFTP server. When you save the system code or configuration settings to a file on a TFTP server, that file can later be downloaded to the switch to restore system operation. The success of the file transfer depends on the accessibility of the TFTP server and the quality of the network connection.

Syntax

copy file {file | running-config | startup-config | tftp}
copy running-config {file | startup-config | tftp}
copy startup-config {file | running-config | tftp}
copy tftp {file | running-config | startup-config | https-certificate}

  • file - Keyword that allows you to copy to/from a file.
  • running-config - Keyword that allows you to copy to/from the current running configuration.
  • startup-config - The configuration used for system initialization.
  • tftp - Keyword that allows you to copy to/from a TFTP server.
  • https-certificate - Copies an HTTPS certificate from an TFTP server to the switch.

Default Setting

None

Command Mode

Privileged Exec

Command Usage

  • The system prompts for data required to complete the copy command.
  • The destination configuration file name should not contain slashes (\ or /), the leading letter of the file name should not be a period (.), and the length of file name should be 1 to 31. (Valid characters: A-Z, a-z, 0-9, ".", "-", "_")
  • You can load up to two code image files in the switch.The number of user-defined configuration files is limited only by available Flash memory space.
  • You can use "Factory_Default_Config.cfg" as the source to copy from the factory default configuration file, but you cannot use "Factory_Default_Config.cfg" as the destination.
  • To replace the startup configuration, you must use startup-config as the destination.
  • The Boot ROM (i.e., diagnostic) image cannot be uploaded or downloaded from the TFTP server. You can only download this file via the console interface during system bootup. (Reset power to the switch, press Ctrl-F during bootup, and select the appropriate menu items to download the Boot ROM image.)

Example

The following example shows how to upload the configuration settings to a file on the TFTP server:

Console#copy file tftp
Choose file type:
1. config: 2. opcode: <1-2>: 1
Source file name: startup
TFTP server ip address: 10.1.0.99
Destination file name: startup.01
/
Console#

The following example shows how to copy the running configuration to a startup file.

Console#copy running-config file
destination file name : startup
/
Console#

The following example shows how to download a configuration file:

Console#copy tftp startup-config
TFTP server ip address: 10.1.0.99
Source configuration file name: startup.01
Startup configuration file name [startup]:
/
Console#



delete

Use this command to delete a file or image.

Syntax

delete filename

filename - Name of the configuration file or image name.

Default Setting

None

Command Mode

Privileged Exec

Command Usage

  • If the file type is boot-ROM or is used for system startup, then this file cannot be deleted.
  • "Factory_Default_Config.cfg" cannot be deleted.

Example

This example shows how to delete the test2.cfg configuration file from Flash memory.

Console#delete test2.cfg
Console#

Related Commands

dir


dir

Use this command to display a list of files in Flash memory.

Syntax

dir [boot-rom | config | opcode [:filename]]

The type of file or image to display includes:

  • boot-rom - Boot ROM
  • config - Configuration file
  • opcode - Name of the file or image. If this file exists but contains errors, information on this file cannot be shown.

Default Setting

None

Command Mode

Privileged Exec

Command Usage

  • If you enter the command dir without any parameters, the system displays all files.
  • File information is shown below:

    Table 1. File Information

Column Heading Description
file name The name of the file.
file type File types: Boot-Rom, Operation Code, and Config file.
startup Shows if this file is used when the system is started.
file size

The length of the file in bytes.

Example

The following example shows how to display all file information:

Console#dir
                       file name      file type startup size (byte)
-------------------------------- -------------- ------- -----------
                       diag_0060 Boot-Rom image       Y      111360
                       run_01642 Operation Code       N     1074304
                        run_0200 Operation Code       Y     1083008
      Factory_Default_Config.cfg    Config File       N        2574
                         startup    Config File       Y        2710
-------------------------------------------------------------------
                                        Total free space:         0
Console#

whichboot

Use this command to display which files booted.

Default Setting

None

Command Mode

Privileged Exec

Example

This example shows the information displayed by the whichboot command. See Table 1 for a description of the file information displayed by this command.

Console#whichboot
        file name      file type startup size (byte)
----------------- -------------- ------- -----------
        diag_0060 Boot-Rom image       Y      111360
         run_0200 Operation Code       Y     1083008
          startup    Config File       Y        2710
Console
#


boot system

Use this command to specify the file or image used to start up the system.

Syntax

boot system {boot-rom| config | opcode}: filename

The type of file or image to set as a default includes:

  • boot-rom - Boot ROM
  • config - Configuration file
  • opcode - Run-time operation code

The colon (:) is required.

filename - Name of the configuration file or image name.

Default Setting

None

Command Mode

Global Configuration

Command Usage

  • A colon (:) is required after the specified file.
  • If the file contains an error, it cannot be set as the default file.

Example

Console(config)#boot system config: startup
Console(config)#

Related Commands

dir
whichboot


Please read all restrictions and disclaimers.


 Back to Contents Page

Laptops | Desktops | Business Laptops | Business Desktops | Workstations | Servers | Storage | Monitors | Printers | LCD TVs | Electronics
© 2009 Dell | About Dell | Terms of Sale | Unresolved Issues | Privacy | About Our Ads | Dell Recycling | Contact | Site Map | Feedback
AT | AU | BE | BR | CA | CH | CL | CN | CO | DE | DK | ES | FR | HK | IE | IN | IT | JP | KR | ME | MX | MY | NL | NO | PA | PR | RU | SE | SG | UK | VE | ALL

snEB13