14.11.2014 Views

Download complete user manual (PDF). - Brocade

Download complete user manual (PDF). - Brocade

Download complete user manual (PDF). - Brocade

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3<br />

Verifying available flash space on the management module before an image is copied<br />

<strong>Brocade</strong># chdir /slot2/TEST<br />

Current directory of slot2 is: /TEST<br />

For information about changing the directory using the cd and chdir commands, refer to “Switching<br />

the management focus”.<br />

Removing a subdirectory<br />

You can remove a subdirectory from the flash card file system using the rd and rmdir commands,<br />

which have the same syntax and function exactly the same.<br />

NOTE<br />

You cannot remove subdirectories from the flash memory file system. Therefore, the rd and rmdir<br />

commands do not apply to the flash memory file system.<br />

NOTE<br />

You can remove a subdirectory only if the subdirectory does not contain files or other subdirectories.<br />

The software will remove a subdirectory from the file system that has the current management<br />

focus (flash memory by default). However, you do not need to change the focus to remove a<br />

subdirectory from a file system that does not currently have management focus. In this case, you<br />

can specify the slot1 or slot2 keyword with the rd or rmdir command to remove the subdirectory<br />

from the desired file system.<br />

For example, to remove a subdirectory from the flash card inserted in slot 2, if the flash memory<br />

has current management focus, enter a command such as the following.<br />

<strong>Brocade</strong># rmdir slot2 TEST<br />

Syntax: [no] rd | rmdir [slot1 | slot2] dir-name<br />

You can enter either rd or rmdir for the command name.<br />

Specify the slot1 or slot2 keyword to remove a subdirectory on the flash card in slot 1 or slot 2,<br />

respectively. If you do not specify one of these parameters, the command applies to the file system<br />

that currently has the management focus.<br />

The dir-name parameter specifies the subdirectory you want to delete. You can enter a path name if<br />

the subdirectory is not in the current directory.<br />

If you receive a message such as the following, enter the pwd command to verify that the<br />

management focus is at the appropriate level of the directory tree.<br />

<strong>Brocade</strong># rmdir TEST<br />

rmdir /slot1/test/dir1/temp failed - File not found<br />

For information about using the pwd command, refer to “Determining the current management<br />

focus”.<br />

Renaming a file<br />

You can rename a file in the flash memory on the management module or on a flash card inserted<br />

in management module slot 1 or slot 2 using the rename or mv command.<br />

70 Multi-Service IronWare Switching Configuration Guide<br />

53-1002820-02

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!