Running cpcon

Use cpcon under Natural Access to manage communication with the TX board. This utility is an operator console run from the command line. cpcon supports Hot Swap.

To bypass the Natural Access environment, use cpcon_ to manage communication with the TX board.

cpcon command sets enables you to monitor and control different aspects of a TX board. Refer to Command set overview for more information.

Using cpcon

Complete the following steps to run cpcon:

Step

Action

1

Start cpcon by entering the following command at the prompt:

cpcon -b boardnum -c channelnum

where:

Argument

Description

-b boardnum

TX board number. Valid values are 1 through 16. The default is 1.

-c channelnum

DPR channel number. The default is 144.


2

Specify a command set by entering the command set name enclosed in square brackets. Use the [?] command to view all command sets. Refer to Command set overview for more information.

The cpcon prompt returns the TX board number (or communications processor number) and the currently selected command set. For example:

(1) [hbus] >

3

Use the ? command to view all commands in the current command set.

4

To change to a different board number, exit the program and run cpcon again with a different board number.


Using cpcon_

Complete the following steps to run cpcon_:

Step

Action

1

Start cpcon_ by entering the following command at the prompt:

cpcon_ -b boardnum -c channelnum -p portnum -i inscript -I inscript -o outfile -O outfile -v

where:

Argument

Description

-b boardnum

TX board number. Valid values are 1 through 16. The default is 1.

-c channelnum

DPR channel number. The default is 144.

-p portnum

Sets the board port number to pass requests to. The default is 6.

-i inscript

Processes input script and then exit cpcon_.

-I inscript

Processes input script and then remain in cpcon_.

-o outfile

Forks all output to file name provided.

-O outfile

Redirects output to file name (none to screen).

-v

Activates verbose tracing during board initialization.


2

Specify a command set by entering the command set name enclosed in square brackets. Use the [?] command to view all command sets. Refer to Command set overview for more information.

The cpcon_ prompt returns the TX board number (or communications processor number) and the currently selected command set. For example:

(1) [hbus] >

3

Use the ? command to view all commands in the current command set.

4

To change to a different board number, use the command cp boardnum, where boardnum is a valid TX board number. Use the cp ? command to determine the board number currently in use.

5

To cause cpcon_ to process an input script from the cpcon_ prompt, use the < command:

(1) [con] > < myscript

This causes cpcon_ to read the file that is named myscript in the current working directory (where cpcon_ was executed from) and to perform each line-read from the script as if those commands were typed in manually.

Other input script control commands are:

< ? = Displays name of the current input script.

< ! = Cancels the current input script.

pause = Temporarily pauses input script processing.

resume = Ready for input script processing to continue.

6

To cause cpcon_ to begin forking output to an output file on the local system, use the > command:

(1) [con] > > myoutfile  

Other commands are:

> ! = Stops outputting to a file.

> ? = Determines whether currently outputting to a file.