Cisco Headend Digital Broadband Delivery System Guia Do Utilizador
Chapter 16 Synchronize Channel Map, Service Group, and VOD Data with the ncdsGen Utility
222
4031374 Rev B
Example of ncdsPush in a crontab File
The following instructions show how to use ncdsPush in the crontab file of the
DNCS. In this example, ncdsPush is configured to run every weekday at 1:00 am.
1 As dncs user in an xterm window on the DNCS, type crontab -e and then press
DNCS. In this example, ncdsPush is configured to run every weekday at 1:00 am.
1 As dncs user in an xterm window on the DNCS, type crontab -e and then press
Enter. The crontab file opens for editing.
2 Add an entry (on one line), similar to the following, to the crontab file:
0 1 * * 1,2,3,4,5 [ -f /dvs/dncs/bin/dncsSetup ] && (.
/dvs/dncs/bin/dncsSetup ;
/dvs/dncs/Utilities/ncdsGen/ncdsPush -v "[URL]" ) >
/dev/null
/dvs/dncs/bin/dncsSetup ;
/dvs/dncs/Utilities/ncdsGen/ncdsPush -v "[URL]" ) >
/dev/null
Example:
0 1 * * 1,2,3,4,5 [ -f /dvs/dncs/bin/dncsSetup ] && (.
/dvs/dncs/bin/dncsSetup ;
/dvs/dncs/Utilities/ncdsGen/ncdsPush -v
"http://10.252.194.37:7091" ) > /dev/null
/dvs/dncs/bin/dncsSetup ;
/dvs/dncs/Utilities/ncdsGen/ncdsPush -v
"http://10.252.194.37:7091" ) > /dev/null
3 Save and close the crontab file.
Supported Option for the ncdsGen Utility
The ncdsGen and ncdsPush utilities supports the -i option. This option allows the
user to specify an optional controller ID to be embedded in the ControllerID
attribute of the InputManifest.xml file. The controller ID represents the ID of the
controller that synchronizes data between the NCDS and the DNCS, and is linked to
all of the configuration information gathered from the input manifest file.
user to specify an optional controller ID to be embedded in the ControllerID
attribute of the InputManifest.xml file. The controller ID represents the ID of the
controller that synchronizes data between the NCDS and the DNCS, and is linked to
all of the configuration information gathered from the input manifest file.
Example: The following example illustrates the use of the -i option with the
ncdsGen utility.
ncdsGen utility.
ncdsPush -i 112 -v http://< ipaddress:port >
Note: Use the IP address and port of the NCDS server.