Format
drive:/[path/]file-name
Managing files
CAUTION:
To avoid file system corruption, do not perform the following tasks during file operations:
Installing or removing storage media.
•
•
Performing an active/standby switchover in standalone mode.
Performing a switchover between the global active MPU and a global standby MPU in IRF mode.
•
The device provides the following file management functions:
Display directory and file information.
•
Display file contents.
•
•
Rename, copy, move, remove, restore, delete, compress, decompress, archive, or extract files.
Calculate the digests of files for file integrity verification.
•
Create a file by copying, downloading, or using the save command.
•
For more information about downloading a file, see "Configuring FTP" and "Configuring TFTP." For more
information about the save command, see Fundamentals Command Reference.
Make sure a USB disk is not write protected before you rename, compress, decompress, delete, restore,
or move a file on the disk, or copy a file to the disk.
Displaying file information
Perform this task in user view.
Task
Display folder or file information.
Description
Specifies a file on a storage medium on
the device.
The drive argument represents the
storage medium name. It is in the
format chassism#slotn#flash or
chassism#slotn#usba0. The m
represents the member ID of the
member device. The n represents the
slot number of the MPU or PEX. For a
storage medium on the global active
MPU, chassism#slotn is optional.
To view member devices' member IDs,
use the display irf command.
92
Example
•
Both flash:/test/a.cfg and
chassis1#slot0#flash:/test/a.cfg
indicate a file named a.cfg in the
test folder of the root directory on the
global active MPU's flash memory.
•
chassis2#slot5#flash:/a.cfg
indicates a file named a.cfg in the
root directory of the flash memory on
the MPU that resides in slot 5 on
member device 2.
Command
dir [ /all ] [ file-url | /all-filesystems ]