Cisco Cisco Packet Data Gateway (PDG)

Página de 453
Software Management Operations   
▀  Maintaining the Local File System 
 
 
▄  ASR 5000 System Administration Guide, StarOS Release 18 
134 
   
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. 
[local]host_namermdir 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. 
[local]host_namermdir /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 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 filesystem 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: 
[local]host_namefilesystem format { /flash | /pcmcia1 | /hd-raid } 
Applying Pre-existing CLI Configuration Files 
A pre-existing CLI configuration file is any .cfg file created to provide utility functions (such as clearing all statistics 
during testing) or created off-line using a text editor. There may be pre-existing configuration files stored on the local 
file system that can be applied to a running system at any time. 
Caution:
  If a configuration file is applied to a system currently running another CLI configuration, any like 
contexts, services, logical interfaces, physical ports, IP address pools, or other configured items will be overwritten if 
the same command exists in the configuration file being applied. Take caution to ensure that you are knowledgeable of 
the contents of the file being applied and understand what the service ramifications are if a currently running command 
is overwritten. Also note that changes will not be saved automatically.