Second-Generation Channel Interface Processor (CIP2) Installation and Configuration 43
Using Flash Memory
Additional Flash Memory Commands
Following are additional commands related to the Flash memory in the single in-line memory
module (SIMM) on the RSP1, RSP2 and RSP7000 (called bootflash) and in PCMCIA Flash memory
cards. (The following example assumes you are currently accessing the Flash memory card in
PCMCIA slot 0.) You can determine which PCMCIA slot you are accessing using the pwd
command as follows:
Router# pwd
slot0
You can move between Flash memory media using the cd [ bootflash | slot0 | slot1 ] command as
follows:
Router# cd slot0
slot0
Router# cd slot1
Router# pwd
slot1
You can list the directory of any Flash memory media using the dir [ bootflash | slot0 | slot1 ]
command as follows:
Router# dir
-#- -length- -----date/time------ name
1 4601977 May 19 1994 09:42:19 myfile1
6 679 May 19 1994 05:43:56 todays–config
7 1 May 19 1994 09:54:53 fun1
You can delete a file from any Flash memory media using the delete command as follows:
Router# delete slot0:fun1
Router# dir
-#- -length- -----date/time------ name
1 4601977 May 19 1994 09:42:19 myfile1
6 679 May 19 1994 05:43:56 todays–config
To verify that the delete command was successful, use the
dir/all/long
command.
Note
Files that are deleted are simply marked as deleted, but still occupy space in Flash memory.
To remove them, use the squeeze command.
The squeeze command permanently removes files, which are marked as deleted, and pushes all other
undeleted files together to eliminate spaces between them.
Following is the syntax of the squeeze command:
Router# squeeze slot0:
All deleted files will be removed, proceed? [confirm]
Squeeze operation may take a while, proceed? [confirm]
ebESZ
To prevent loss of data due to sudden power loss, the “squeezed” data is temporarily saved to another
location of Flash memory, which is specially used by the system.