Руководство По Установке для Cisco Headend System Release 2.7
Chapter 8 Identify and Correct Database Problems with the checkDB Script
108
4020695 Rev C
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.
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:
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
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
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.
/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:
using either the -f or the -F option:
DHCT serial numbers with missing parent
(extra rows in pdsernummap table)
(extra rows in pdsernummap table)
Records in hct_profile table with no corresponding record in the pdkeycertificate
table
table
Records in secure-micro table (with MAC address or serial number) with no
corresponding record in the hct_profile table
corresponding record in the hct_profile table
Records in sm_pkg_auth table with no corresponding record in sm_auth_profile
table
table
Records in emm table with no corresponding record in hct_profile table
Orphaned authorization packages
In addition, the -F option can also be used to remove records in the sm_auth_profile
table when there is no corresponding record in secure_micro table.
table when there is no corresponding record in secure_micro table.