Руководство Администратора для Cisco Cisco Packet Data Gateway (PDG)

Скачать
Страница из 342
Software Management Operations   
▀  Maintaining the Local File System 
 
 
▄  Cisco ASR 5500 System Administration Guide 
106 
   
Deleting Files 
The delete command removes a designated file from its specified location on the local file system. 
Important:
  This command does not support 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 | /usb1 | /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. 
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 
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. 
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 MIO/UMIO for regular use, you should format the device via the system prior to use. This ensures that the proper 
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 | /usb1 | /hd-raid }