Cisco Headend System Release 2.7 Installation Guide

Page of 260
 
 
Run the checkDB Script 
740020 Rev H 
107 
 
 
 
Running the checkDB Script with No Options 
Running the checkDB script with no options generates a detailed report that lists 
possible error conditions in the database. Follow these instructions to run the 
checkDB script with no options, and then to examine the logfile. 
1  If necessary, open an xterm window on the DNCS. 
2  Type checkDB.sh  >  /dvs/dncs/tmp/checkDB.[today's date] and then press 
Enter
Notes:   
 
 
Substitute today's date for [today's date]. 
Example:  checkDB.sh  >  /dvs/dncs/tmp/checkDB.081601 
 
This command directs the output from the checkDB script to a file in the 
/dvs/dncs/tmp directory on the DNCS. Cisco recommends that you direct 
the output to a file for you to examine later because the output would 
otherwise scroll too quickly off the screen for you to examine. 
3  After the script has finished running, type cd  /dvs/dncs/tmp and then press 
Enter. The /dvs/dncs/tmp directory becomes your working directory. 
4  Type more  [name of logfile] and then press Enter. The logfile opens using the 
UNIX more utility. 
Note:  Substitute the name of the logfile you created in step 2 for [name of 
logfile]. 
Example:  more  checkDB.081601 
5  Refer to Sample Logfile and Analysis (on page 107) as you examine the logfile 
created by the checkDB script.  
Notes:   
 
 
Press the Spacebar to page through the output file. 
 
Press the Ctrl and keys simultaneously to close the output file when you 
are finished. 
 
Sample Logfile and Analysis 
Use the following example when you examine the logfile you opened in step 4.  
Note:  The following example of the logfile contains line numbers. Line numbers do 
not actually appear in the logfile, but are included here to facilitate an explanation of 
some of the items contained in the logfile. 
Sample Logfile 
============================================================== 
1  
# Tue Dec 2 15:25:43 EST 2003 
2  # The total number of rows in hct_profile = 156278. 
3  # The total number of rows in secure_micro = 40378.