Foundry Networks Switch and Router Installation And Configuration Manual page 150

Switch and router
Table of Contents

Advertisement

Foundry Switch and Router Installation and Configuration Guide
To change all files on a flash card to read-only, enter a command such as the following:
BigIron# attrib ro *.*
This command changes the read-write attribute for all files on the flash card that currently has the management
focus to read-only.
Deleting a File from a Flash Card
To delete a file from a flash card, use the following method.
CAUTION:
By default, the delete option deletes all files on the flash card. Make sure you specify the files you
want to delete.
CAUTION:
The software does not have an undelete option. Make sure you really want to delete the file.
USING THE CLI
To delete a file on the flash card that has the management focus, enter a command such as the following:
BigIron# delete cfg.cfg
If the command is successful, the CLI displays a new command prompt.
Syntax: delete [slot1 | slot2] [<file-name>]
The command in this example deletes the specified file. To delete all files that contain a specific string of
characters, enter a command such as the following:
BigIron# delete test*.*
This command deletes all files whose names start with "test". To delete all the files on a flash card, enter a
command such as the following:
BigIron# delete slot2
The command in this example deletes all files on the flash card in slot 2. In this example, slot 1 has the
management focus, but the files to be deleted are on the flash card in slot 2.
Recovering ("Undeleting") a File
You can undelete a command you have deleted from a flash card. To do so, enter a command such as the
following:
BigIron# undelete
Undelete file "?LD.CFG" ? (enter 'y' or 'n'): y
Input one character: O
File recovered successfully and named to OLD.CFG
The command in this example starts the undelete process for the flash card and subdirectory that currently have
the management focus. For each file that can be undeleted, the CLI displays the remaining name entry in the file
directory and prompts you for the first character of the file name. You can enter any valid file name character.
You do not need to enter the character that was used before in the deleted file name.
Once you enter a character and the CLI undeletes the file, the CLI continues with the next file that can be
undeleted. For each file, specify "y" or "n", and specify a first character for the files that you select to undelete.
To end the undelete process, enter the CTRL + C key combination.
Syntax: undelete [slot1 | slot2] [\<to-dir-path>]
NOTE: When you delete a file from a flash card, the CLI leaves the file intact but removes the first letter in the file
name from the file directory. However, if you save file changes or new files that use part of the space occupied by
the deleted file, you cannot undelete the file. The undelete command lists only the files that can be undeleted.
5 - 26
December 2000

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents