Cisco MDS 9000 Family Command Reference, Release 1.0(2a)
D Commands

Table Of Contents

D Commands

delete

dir

discover scsi-target


D Commands


The commands in this chapter apply to the Cisco MDS 9000 Family of multilayer directors and fabric switches. All commands are shown here in alphabetical order regardless of command mode. Please see the Command Mode section to determine the appropriate mode for each command. For more information, see the Cisco MDS 9000 Family Configuration Guide.

delete

dir

discover scsi-target

delete

To delete a file on a Flash memory device, use the delete command.

delete {bootflash:filename | slot0:filename | volatile:filename}

Syntax Description

bootflash:

Flash image that resides on the supervisor module.

slot0:

Flash image that resides on another module.

volatile:

Flash image that resides on the volatile file system.

filename

The name of the file to be deleted.


Defaults

None

Command Modes

EXEC

Usage Guidelines

When you delete a file, the software marks the file as deleted, but it does not erase the file. This feature allows you to later recover a "deleted" file using the undelete command. You can delete a file up to 15 times.

If you attempt to delete the configuration file or image specified by the CONFIG_FILE or BOOTLDR environment variable, the system prompts you to confirm the deletion. Also, if you attempt to delete the last valid system image specified in the BOOT environment variable, the system prompts you to confirm the deletion.

Examples

The following example deletes the file named test from the Flash card inserted in slot 0:

switch# delete slot0:test 
Delete slot0:test? [confirm]

This example shows how to delete a file from a directory:

switch# delete dns_config.cfg
switch#

This example shows how to delete a file from an external CompactFlash (slot0):

switch# delete slot0:dns_config.cfg
switch#

Related Commands

Command
Description

cd

Changes the default directory or file system.

dir

Displays a list of files on a file system.

show boot

Displays the contents of the BOOT environment variable, the name of the configuration file pointed to by the CONFIG_FILE environment variable, the contents of the BOOTLDR environment variable, and the configuration register setting.


dir

To display the contents of the current directory or the specified directory, use the dir command.

dir [bootflash:directory or file name | slot0:directory or filename | volatile:directory or filename | directory or filename]

Syntax Description

volatile:

Flash image on the volatile file system.

bootflash:

Flash image that resides on the supervisor module.

slot0:

Flash image that resides on another module.

filename

(Optional) Name of the file(s) to display on a specified device. The files can be of any type. You can use wildcards in the filename. A wildcard character (*) matches all patterns. Strings after a wildcard are ignored.


Defaults

The default file system is specified by the cd command.

Command Modes

EXEC

Usage Guidelines

None.

Examples

This example shows how to list the files on the bootflash directory:

switch# dir bootflash: 
total 100756
drwxrwxrwx    2 admin         1024 Fri Sep 27 17:35:13 2002 .ssh
drwxrwxrwx    2 admin         1024 Fri Sep 27 17:35:13 2002 .ssh2
-rw-r--r--    1 admin           37 Thu Sep 19 12:16:36 2002 ^[[2C
-rw-r--r--    1 admin     13636096 Fri Sep 20 19:58:56 2002 kickstart-233b
-rw-rw-rw-    1 admin     13636096 Wed Sep 25 17:26:47 2002 kickstart-233d
-rw-rw-rw-    1 admin     14340096 Fri Sep 27 17:28:41 2002 kickstart-240
drwxr-xr-x    2 admin         1024 Thu Apr 18 08:27:44 2002 harshabh
-rw-r--r--    1 admin     19280051 Fri Sep 20 20:02:33 2002 san-ios-233b
-rw-rw-rw-    1 admin     19281464 Wed Sep 25 17:28:12 2002 san-ios-233d
-rw-rw-rw-    1 admin     21917189 Fri Sep 27 17:29:51 2002 san-ios-240
drwxr-xr-x    2 admin         3072 Tue Oct 01 10:54:18 2002 logs
drwxr-xr-x    2 admin        12288 Sun Mar 31 19:18:26 2002 lost+found
drwxr-xr-x    3 admin         1024 Wed Apr 10 20:17:44 2002 old-fs
drwxr-xr-x    3 admin         1024 Wed Sep 18 13:18:54 2002 old-fs-old
-rwxr-xr-x    1 admin       636579 Mon Sep 30 05:32:42 2002 rdl
drwxr-xr-x    2 admin         1024 Mon Sep 30 05:37:55 2002 src
                         124688384 bytes total used
                         311350272 bytes free
                         459779072 bytes available

The following is sample output from the dir command:

switch# dir slot0: 

Related Commands

Command
Description

cd

Changes the default directory or file system.

delete

Deletes a file on a Flash memory device.


discover scsi-target

To discover SCSI targets on local storage to the switch or remote storage across the fabric, use the discover scsi-target command.

discover scsi-target {local | remote | vsan vsan-id fcid fcid-id}

Syntax Description

local

Discovers local SCSI targets.

remote

Discovers remote SCSI targets.

vsan vsan-id fcid fcid-id

Discovers SCSI targets for the specified VSAN and FC ID.


Defaults

None.

Command Modes

Exec

Usage Guidelines

On-demand discovery only discovers Nx Ports present in the name server database which have registered a FC4 Type = SCSI_FCP.

Examples

The following example shows how to discover local targets.

switch# discover scsi-target local
discovery started
switch#

The following example shows how to discover remote targets.

switch# discover scsi-target remote
discovery started
switch#

The following example shows how to discover both local and remote targets.

switch# discover scsi-target 
discovery started
switch#

The following example shows how to disscover SCSI targets for the specified VSAN (1) and FC ID (0x9c03d6).

witch# discover scsi-target vsan 1 fcid 0x9c03d6 
discover scsi-target vsan 1 fcid 0x9c03d6
VSAN:    1 FCID: 0x9c03d6 PWWN: 00:00:00:00:00:00:00:00
  PRLI RSP: 0x01 SPARM: 0x0012
  SCSI TYPE: 0 NLUNS: 1
  Vendor: Company 4 Model: ST318203FC       Rev: 0004
  Other: 00:00:02:32:8b:00:50:0a
switch#