Cisco Headend System Release 2.5 Guida Utente
Chapter 5 Delete Unused SAM URLs with the chkSamUrl Utility
56
4031374 Rev B
Running the chkSamUrl Utility
Complete these instructions to run the chkSamUrl utility in order to delete unused
SAM URLs from the system.
1 From an xterm window on the DNCS, type cd /dvs/dncs/Utilities and then
SAM URLs from the system.
1 From an xterm window on the DNCS, type cd /dvs/dncs/Utilities and then
press Enter. The /dvs/dncs/Utilities directory becomes the working directory.
2 Type chkSamUrl -r and then press Enter.
Results:
The chkSamUrl script runs and the current database statistics appear.
A confirmation message appears and asks you to confirm the removal of
unused SAM URLs.
unused SAM URLs.
/export/home/dncs> chkSamUrl -r
---------------------------------------------------------------------------------------------------
Removing unused SAM URLs from the database
---------------------------------------------------------------------------------------------------
- List current database stats:
SAM URL bulk table:
---------------------------------------------------------------------------------------------------
Removing unused SAM URLs from the database
---------------------------------------------------------------------------------------------------
- List current database stats:
SAM URL bulk table:
/dvs/dvsFiles/SAM/bulk.tbl
Last Updated:
Jan 20 23:37
Size:
51694
Used URL Entries:
57
Unused URL Entries:
261
Warning: size of bulk.tbl above threshold
Do you wish to continue with removal of unused SAM URLs? [y/n]: y
Do you wish to continue with removal of unused SAM URLs? [y/n]: y
3 Type y. The chkSamUrl script runs to completion.
Note: If unused URLs were removed from the DNCS, the bulk.tbl file size will
not change at this point in the procedure.
Example: Refer to the following example for sample output from the chkSamUrl
script:
First, backup affected database tables:
DATABASE Table
not change at this point in the procedure.
Example: Refer to the following example for sample output from the chkSamUrl
script:
First, backup affected database tables:
DATABASE Table
DATABASE Backup file location
--------------------
-----------------------------------
applicationurl
--> /tmp/applicationurl.unl
samservices
--> /tmp/samservices.unl
displaychannels.unl
--> /tmp/displaychannels.unl
Backups created:
-rw-r--r-- 1 dncs dncs 30839 Jan 25 15:41 /tmp/applicationurl.unl
-rw-r--r-- 1 dncs dncs 3442 Jan 25 15:41 /tmp/displaychannels.unl
-rw-r--r-- 1 dncs dncs 30839 Jan 25 15:41 /tmp/applicationurl.unl
-rw-r--r-- 1 dncs dncs 3442 Jan 25 15:41 /tmp/displaychannels.unl