Cisco Headend Digital Broadband Delivery System Guida Utente

Pagina di 152
 
Chapter 14    Preserve Log Files with the preserveLog Utility 
 
 
 
124 
4020694 Rev B 
Tips for Maneuvering Through the File 
Use the following tips to maneuver through the file piped to the less utility: 
 
To move a whole page (screen) forward, press either the Spacebar or the key. 
 
To move a whole page (screen) backward, press the b key. 
 
To move a single line forward, press the key. 
 
To move a single line backward, press the k key. 
 
To exit from the file, press q
 
Examining the Log Files on a Solaris 8 System 
Use the gzip command to examine the compressed log files on a system on which 
the Solaris 8 operating system runs on the DNCS. The following instructions guide 
you through the necessary steps. 
1  If necessary, open an xterm window on the DNCS. 
2  Type cd  /export/home/dncs/scripts/saInternalTools/preserveLog/ and then 
press Enter.  
3  Type ls -la and then press Enter. The system displays all of the date directories 
that have been created by the preserveLog utility. 
4  Type cd < date > and then press Enter
Note:  Substitute <date> with the actual date associated with the log files you 
want to view. 
5  Type ls -la and then press Enter. The system displays all of the log directories 
that have been created by the preserveLog utility. 
6  Type cd < directory > and then press Enter. The selected log file directory 
becomes the working directory. 
7  Type ls -la and then press Enter. The system displays a list of the compressed 
files in the working directory. 
8  To view the contents of a specific log file, type gzip  -d < filename > and then 
press Enter. The selected file is uncompressed. 
Example:  gzip  -d  dsm.005.gz 
9  Type more < filename > and then press Enter. The selected file opens for 
viewing with the UNIX more utility. 
Example:  more dsm.005 
10  After examining the contents of the file, type gzip < filename > and then press 
Enter to re-compress the file. The file re-obtains the .gz extension. 
Example:  gzip  dsm.005