HTY_STAT(1) — USER COMMANDS
NAME
hty_stat − display MVME338 channel information
SYNOPSIS
hty_stat [-tcpfioexsa ] [ -d device ] chan_num
DESCRIPTION
Hty_stat uses the MVME338 raw driver to retrieve channel parameters for an open channel (specified as a decimal value in chan_num ) from an MVME338 board. Hty_stat retrieves this information by issuing a number of internal commands to the Terminal Control Software and interpreting the resulting data. The parameters are written to standard output.
Note that the channel number is relative to the board. Each board’s channel numbers start at 0. This does not necessarily correspond to UNIX minor device numbers.
The information displayed is analogous to the information in the "stty" command, but the MVME338 data is displayed relative to the definition of the board parameters rather than to the UNIX tty parameters. This information is useful primarily for driver porting and validation, not for the casual user.
OPTIONS
One or more of the following options must be selected:
−tDisplay translation table. This option may only be used in conjunction with either the −i or −o command. It will display the 256 byte translate table if input or output translation is enabled.
−cDisplay system configuration. Displays the current system configuration, which applies to the entire MVME338 board, not to a specific channel.
−pDisplay asynch protocol. Displays the current baud rate, number of bits, parity, and stop bits configuration.
−fDisplay flow control. Displays the current flow control modes enabled and the parameters and characters associated with them.
−iDisplay input parameters. Displays the input modes enabled and the parameters associated with them.
−oDisplay output parameters. Displays the output modes enabled and the parameters associated with them.
−eDisplay echo parameters. Displays the echo modes enabled and the character strings set up with them.
−xDisplay extra parameters. Currently not implemented.
−sDisplay channel status. This displays the current modem control signals and the number of characters queued up on the board for both input and output.
−dSet device file name. This option overrides the default device name.
−aOutput with all the above options set.
EXAMPLES
To write a formatted display of the flow control parameters for channel 0 to standard output:
hty_stat -f 0
To write a formatted display of all of the channel parameters for channel 56 to standard output:
hty_stat -tpfioes 56
To write a formatted display of the input parameters for channel 1 on the second host adapter in the system:
hty_stat -id /dev/xedt/mvme338_c1 1
SEE ALSO
DIAGNOSTICS
If an error occurs in any of the Terminal Control Software commands, hty_stat displays the error message associated with the error.
WARNINGS
The program will exit if the specified tty line is not open.