Cisco Headend Digital Broadband Delivery System Installation Guide
Appendix A
The siteCmd Program
74
4022447 Rev B
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.
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.
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.
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.
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):
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.
press Enter.
To apply the ps -ef command to only one specific RNCS site (called site1), type
siteCmd site1 ps -ef and press Enter.
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.
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.
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.
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.