Cisco Headend System Release 2.7 User Guide

Page of 282
 
 
 
Run the checkDB Script 
 
4031374 Rev B 
51 
 
 
 
Running the checkDB Script in "Fix" Mode 
Use options -f or -F to run the checkDB script in "fix" mode. When run in "fix" mode, 
the script removes certain orphaned records from the database and generates a 
report that lists potential error conditions.  
Follow these instructions to run the checkDB script in "fix" mode. 
1  If necessary, open an xterm window on the DNCS. 
2  Choose one of the following options: 
 
To run the checkDB script with the -f option, type 
checkDB.sh  -f  >  /dvs/dncs/tmp/checkDB.[today's date] and then press 
Enter
Example:  checkDB.sh -f   >  /dvs/dncs/tmp/checkDB.081601 
 
To run the checkDB script with the -F option, type 
checkDB.sh  -F  >  /dvs/dncs/tmp/checkDB.[today's date] and then press 
Enter
Example:  checkDB.sh -F   >  /dvs/dncs/tmp/checkDB.081601 
Notes:   
 
 
Substitute today's date for [today's date]. 
 
These commands directs the output from the checkDB script to a file in the 
/dvs/dncs/tmp directory on the DNCS. Our engineers recommend 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. 
 
Summary of Conditions Addressed by "Fix" Mode 
The following conditions are addressed by running the checkDB script in "fix" mode, 
using either the -f or the -F option: 
 
DHCT serial numbers with missing parent 
(extra rows in pdsernummap table) 
 
Records in hct_profile table with no corresponding record in the pdkeycertificate 
table 
 
Records in secure-micro table (with MAC address or serial number) with no 
corresponding record in the hct_profile table 
 
Records in sm_pkg_auth table with no corresponding record in sm_auth_profile 
table 
 
Records in emm table with no corresponding record in hct_profile table