Cisco Headend System Release 2.5 Installation Guide

Page of 108
 
 
Options for the siteCmd Program 
4022447 Rev B 
75 
 
Copy Files from the DNCS to the RNCS 
The /dvs/distFiles/Common directory on the DNCS is known as the common 
directory
. Files that are to be loaded onto the RNCS are usually copied into the 
common directory of the DNCS first. The following series of commands 
demonstrates how to copy a file into the common directory of the DNCS and 
distribute that file to each RNCS. 
Note:  In this example, the file someScript represents the file that needs to be 
distributed to each RNCS. 
1  To copy the file someScript into the common directory of the DNCS, type  
cp  someScript  /dvs/distFiles/Common and press Enter
2  To distribute the someScript file to each RNCS, type  
siteCmd  -asC  /dvs/distFiles/someScript and press Enter
Notes: 
 
The –a option specifies that all RNCS sites are to receive the file. 
 
The s option indicates synchronize. Synchronizing involves updating the 
RNCS with the contents of the common directory of the DNCS. 
 
The option specifies to the siteCmd program that the source directory of 
the DNCS is to be the common directory. 
 
The /dvs/distFiles/someScript portion of the command specifies the 
destination of the copy operation, as well as the name of the file that is to be 
executed once the copying has taken place. 
Install a Package on the RNCS 
This procedure provides instructions on using the siteCmd program to install a 
package on the RNCS. 
Note: This procedure assumes that a CD containing the package to be installed is 
already inserted into the CD drive of the DNCS. 
1  Follow these instructions to log onto an xterm window on the DNCS as root 
user. 
Note: You must be root user to install packages. 
a  Type su  - and press Enter. The password prompt appears. 
b  Type the root password and press Enter
2  Type cd  /cdrom/cdrom0 and press Enter. The /cdrom/cdrom0 directory of the 
DNCS becomes the working directory. 
3  Type find  .  –name  [package_name]  | cpio  -pudmv  
/dvs/distFiles/Common/packages and press Enter. The system copies the files on 
the CD into the common directory of the DNCS. 
Example:   
find .  -name  SAImqam | cpio  -pudmv  /dvs/distFiles/Common/packages