Cisco Cisco Packet Data Interworking Function (PDIF) Guía De Administador
Software Management Operations
▀ Maintaining the Local File System
▄ Cisco ASR 5000 System Administration Guide
120
Deleting Files
The delete command removes a designated file from its specified location on the local file system. This command can
only be issued to a local device on the SMC. Note that this command does not allow for wildcard entries; each filename
must be specified in its entirety.
only be issued to a local device on the SMC. Note that this command does not allow for wildcard entries; each filename
must be specified in its entirety.
Caution:
Do not delete the boot.sys file. If deleted, the system will not reboot on command and will be
rendered inoperable.
delete { /flash | /pcmcia1 | /hd-raid } /filename [-noconfirm]
The following command deletes a file named test.cfg from the /flash directory.
delete /flash/test.cfg
Removing Directories
The rmdir command deletes a current directory on the specific local device. This directory can then be incorporated as
part of the path name for any file located in the local file system.
part of the path name for any file located in the local file system.
Important:
The directory you want to remove (delete) must be empty before executing the rmdir command. If
the directory is not empty, the CLI displays a “Directory not empty” message and will not execute.
rmdir url /dir_name
url specifies the location of the CLI configuration file to be removed. It may refer to a local or a remote file.
The following command deletes an empty directory named configs in the /flash directory.
rmdir /flash/configs
Formatting Local Devices
The format command performs a low-level format of a local device. This operation formats the device to use the
FAT16 formatting method, which is required for proper read/write functionality with the operating system.
FAT16 formatting method, which is required for proper read/write functionality with the operating system.
Important:
Local devices that have been formatted using other methods such as NTFS or FAT32 may be used to
store various operating system, CLI configuration, and crash log files. However, when placing a new local device into
the SMC for regular use, you should format the device via the system prior to use. This ensures that the FAT16 file
allocation table format is used, preventing any possible discrepancies between other formats used with other operating
systems.
the SMC for regular use, you should format the device via the system prior to use. This ensures that the FAT16 file
allocation table format is used, preventing any possible discrepancies between other formats used with other operating
systems.
Caution:
The format command removes all files and information stored on the device.
To format a local device for use by the local file system, enter the following command:
format { /flash | /pcmcia1 | /hd-raid }