Cisco Headend System Release 2.7 Installation Guide

Page of 102
 
Appendix A 
The siteCmd Program 
72 
78-4021167-01 Rev D 
Options Available With the siteCmd Program 
To help you use the siteCmd program, read through the following descriptions of 
some of the options available for you to use with the program. The following 
discussion includes those relatively simple options that you are most likely to use 
with the siteCmd program. 
Important: For more complex operations involving the Secure Shell and the siteCmd 
program, the user should be familiar with the use of quotation marks and other 
syntax rules. 
Include / Exclude Remote Sites 
The –a–i, and the –x options allow you to specify to the siteCmd program the RNCS 
sites to which the commands you execute should apply.  
 
–a (all) option: Your command applies to all RNCS sites. To include only one 
specific site, simply name the site.  
 
–i (include) option: Include two or more specific sites. 
 
–x (exclude) option: Exclude specific sites. 
Examples: The following examples are constructed using the ps  -ef command. The 
ps  -ef command lists what processes are running at the site-specific RNCS(s): 
 
To execute the ps  -ef command on all RNCS sites, type siteCmd  -a  ps  -ef and 
press Enter
 
To apply the ps  -ef command to only one specific RNCS site (called site1), type 
siteCmd  site1  ps  -ef and press Enter
 
To apply the ps  -ef command to two specific sites (called site1 and site2), type 
siteCmd  -i  site1:site2  ps  -ef and press Enter
 
To exclude one specific RNCS site from the ps  -ef command, add the –x option, 
followed by the host name of the site you want to exclude.  
Type siteCmd  -a  -x site1  ps  -ef and press Enter
 
To exclude two specific RNCS sites from the ps  -ef command, add the –x option, 
followed by the host names of the sites you want to exclude.  
Type siteCmd  -a  -x site1:site2  ps  -ef and press Enter
Note: The –x (exclude) option is always used in conjunction with the –a (all) 
option.