для Cisco Cisco Packet Data Gateway (PDG)

Скачать
Страница из 453
  Software Management Operations 
Maintaining the Local File System  ▀   
 
ASR 5000 System Administration Guide, StarOS Release 18  ▄  
 
   
135 
A CLI configuration file, or script containing CLI commands, can be applied to a running system by entering the 
following command at the Exec mode prompt. 
[local]host_nameconfigure url [ verbose ] 
url specifies the location of the CLI configuration file to be applied. It may refer to a local or a remote file. 
The following command applies a pre-existing CLI configuration file named clearcmds.cfg in the /flash directory. 
[local]host_nameconfigure /flash/clearcmds.cfg 
Viewing Files on the Local File System 
This section describes how to view a variety of files. 
Viewing the Contents of a Local Device 
The contents, usage information, and file system directory structure of any local device can be viewed by entering the 
following command at the Exec mode prompt: 
[local]host_namedirectory { /flash | /pcmcia1 | /hd-raid } 
Viewing CLI Configuration and boot.sys Files 
The contents of CLI configuration and boot.sys files, contained on the local file system, can be viewed off-line (without 
loading them into the OS) by entering the following command at the Exec mode prompt: 
[local]host_nameshow file url { /flash | /pcmcia1 | /hd-raid } /filename 
Where: url is the path name for the location of the file and filename is the name of the file, including any extension. 
Important:
  Operator and inspector-level users can execute the show file command but cannot execute the 
directory command. 
Validating an Operating System File 
The operating system software image file, identified by its .bin extension, is a non-readable, non-editable file that 
executes on the system, creating its runtime operating system (OS). 
It is important to verify a new operating system image file before attempting to load it. To accomplish this, a proprietary 
checksum algorithm is used to create checksum values for each portion of the application stored within the .bin file 
during program compilation. 
This information can be used to validate the actual file against the checksum values stored within the file during its 
compilation. If any portion of the image file has become corrupted (for example, the file was truncated or was 
transferred using ASCII mode instead of binary mode), then this information is reported and the file is deemed 
unusable. 
To validate an operating system software image file, enter the following command at the Exec mode prompt: 
[local]host_nameshow version { /flash | /pcmcia1 | /hd-raid } 
/
[directory]/filename [ all ]