xpad - A Triple-X (X.3/X.28/X.29) PAD for UNIX
xpad [-h] [hostname] [-d Address] [-N nui] [-u cud] [-t rpoa] [-C cug] [-DFRvsrpa] [-b parity] [-f fep] [-l link] [-n netid] [-B key] [-P size]
xpad is a TSG utility which provides the user with a means of placing an X.25 SVC call over a network. If the destination accepts the call, xpad assembles characters you enter on your terminal into X.25 packets under the control of the current settings of the X.3 parameters. Similarly, xpad displays the contents of all data packets received from the X.25 circuit. xpad is a UNIX program which is a functional PAD (Packet Assembler/Disassembler). It implements all of the 1984 CCITT-defined Recommendations X.3, X.28, and X.29. Together, these Recommendations are known as "Triple-X".
These command line options are recognized:
| Option | Description |
| hostname | specifies the X.25 host to call. Host names and their associated xpad command line options are defined in /etc/x25hosts. xpad will use parameters based on the values read from host default, followed by values from host hostname, followed by the command line options. Options may be overridden. |
| -d |
specifies the X.25 Data Network Address to call. Up to 15 digits may be specified. |
| -N |
Network User Identifier (NUI) to place in outgoing call. Up to 14
binary characters may be specified. Characters other than
alphanumerics must be given in the octal format \ooo. Even the null
character (\000) may be specified. Note: Backslashes in most shells must be entered as \\ ** |
|
-u |
Call User Data (CUD) follows. xpad automatically fills in the first
four bytes of CUD with binary 1 0 0 0, the CUD prefix for Triple-X
calls. The argument of -u may have up to 12 bytes of binary
data, unless Fast Select is also specified, in which case up to 124
bytes may be specified. Characters other than alphanumerics must be
given in the octal format \ooo. Even the null character (\000) may be specified. Note: Backslashes in most shells must be entered as \\ ** |
| -t | RPOA to place in this call. Up to three 4-digit RPOAs may be specified in the standard configuration for 1984 X.25 networks that support them. Normally, one 4-digit RPOA is specified. |
| -C | Closed User Group (two digits only) selection for this call |
| -D | set the Delivery Confirmation bit on all outgoing data packets |
| -F | specify Fast Select on this call |
| -R | specify Fast Select with Restricted Response on this call |
| -v | Verbose mode; use for debugging only |
| -s | strips the parity bit (high order bit) on each character received from the X.25 virtual circuit before it is sent to the user's terminal. Parity bit stripping is only necessary when a host sets the parity bit. PC consoles interpret characters with parity bits as special characters. If you get garbage on your screen after call establishment, try clearing the call, and invoking xpad with -s. See also the -a option. |
| -r | Reverse charging on this call |
|
-p |
Priority call (Datapac only) |
|
-P |
specifies the packet size to use on outgoing calls |
| -B | specifies break key to use |
| -a |
specifies raw input mode. xpad normally strips all keyboard
input to 7 bits and space parity, after checking the input as per the
current settings of -b and X.3 parameter 21. -a
causes xpad to carry the parity bit through to the destination. Warning: Specifying -a may prevent xpad from recognizing CR, LF, or other characters that you need it to. |
-b | specifies the type of parity bit: none, even, odd, mark or space. The default is space. |
| -f | specifies the FEP (Front End Processor) number to make the call on. This option is defaulted to zero. Do not use in conjunction with -n, described below. |
| -l | specifies the link number on the FEP for the call to go out on. This option is also defaulted to zero. Do not use in conjunction with -n, described below. |
| -n | specifies the network ID number or network name (from /etc/packetnets) for the call to go out on. This option is defaulted to zero. Do not use in conjunction with -f and -l. |
| -h |
prints out usage information |
These environment variables are recognized:
| Variable | Description |
| XPROFINIT | filename of PAD profile to be used when xpad is invoked, defaults to /etc/xprofile/90 |
| XPROFPATH | list of directories to be searched by the PAD profile command to locate the specified profile. Directories must be separated by a colon and are searched from left to right. |
/etc/xprofile is the default directory that is searched by the PAD profile command.
/etc/x25hosts: contains the definitions of host names
/etc/xprofile/90: the standard CCITT pad profile number 90
/etc/xprofile/91: the transparent CCITT pad profile number 91
/etc/xprofile/noaccent: removes all accents from accented characters
xpad tsgfred
with /etc/x25hosts entry: tsgfred -d99999999 places an X.25 call to address 99999999 using link 0 of FEP 0.
Any time after call establishment, you can use PAD command mode. This is done by entering <ctrl>-p (or the current command mode entry character established by X.3 parameter 1), then one of the commands below, and then <return>. Alternative command spelling is shown inside brackets. A complete description of these commands can be retrieved by using the PAD HELP command. These command are recognized:
| Command | Description |
| break | perform break action specified by X.3 parameter 7 |
| clr (clear) | send a clear request |
| help | display help text |
| iclr (iclear) | send invitation to clear |
| int (interrupt) |
send an interrupt packet |
|
lang (language) |
set extended mode language (English, French or Spanish) |
| par? (par, parameter, read) | display parameter values |
| prof (profile) | read in parameter data file |
| reset | send reset request packet |
| rpar? (rread) | read remote PAD parameters |
| rset? (rsetread) | set and read remote PAD parameters |
| set | set parameter values |
| set? (setread) | set and display parameter values |
| stat (status) | display status of connection |
| lcd | change local directory (use !pwd to print current working directory) |
| ! | execute local UNIX command |
To exit xpad, either initiate a clear by the remote by logging out of the system you call, or use the "clr" PAD command to clear the virtual circuit. The UNIX `kill' character will not kill xpad since xpad turns off the interception of that character by UNIX via an `stty -icanon', so it may be passed transparently to the remote host.
xpad currently supports English, French and Spanish in the PAD command mode and for PAD service signals. To select a language, use the PAD LANGUAGE command at run-time, or change the default language specified in the XPROFINIT file.
French and Spanish require the use of accented characters. The definition of accents found in the standard CCITT pad profile number 90 will output the special codes for accented characters on IBM PC consoles. If your terminal does not support accents, use the definitions found in the noaccent profile; this displays the characters unaccented using standard ASCII codes.
Note: The PAD HELP command currently displays English text only. We would be pleased to incorporate translations.
xpad fully supports all X.3 parameters:
| Parameter | Description | ||||||||||||||||||
| 1 |
PAD recall using a character
|
||||||||||||||||||
| 2 |
Echo
|
||||||||||||||||||
| 3 |
Selection of data forwarding characters
|
||||||||||||||||||
| 4 |
Selection of idle timer delay
|
||||||||||||||||||
| 5 |
Ancillary device control
|
||||||||||||||||||
| 6 |
Control of PAD service signals
|
||||||||||||||||||
| 7 |
Operation on receipt of Interrupt Character
|
||||||||||||||||||
| 8 |
Discard output
|
||||||||||||||||||
| 9 |
Padding after carriage return
|
||||||||||||||||||
| 10 |
Line folding
|
||||||||||||||||||
| 11 | Binary speed of terminal (Read only Parameter) | ||||||||||||||||||
|
12 |
Flow control of the PAD
|
||||||||||||||||||
| 13 |
Linefeed insertion after carriage return
|
||||||||||||||||||
| 14 |
Padding after linefeed
|
||||||||||||||||||
|
15 |
Editing
|
||||||||||||||||||
| 16 |
Character delete
|
||||||||||||||||||
| 17 |
Line delete
|
||||||||||||||||||
| 18 |
Line display
|
||||||||||||||||||
| 19 |
Editing PAD service signals
|
||||||||||||||||||
| 20 |
Echo mask
|
||||||||||||||||||
| 21 |
Parity treatment. 'Parity' here is implemented as specified by the -b option.
|
||||||||||||||||||
| 22 |
Page wait
|
A complete description of X.3 Parameters can be obtained using the PAD HELP command.
On startup, xpad initializes its parameters to the values defined in the file XPROFINIT.
The following X.29 Qualified data packets are supported:
Error PAD message.
The only unsupported Qualified data packets are the PAD Reselection with/without TOA/NPI from the 1988 X.29 Recommendations.
In addition, xpad supports two special TSG Qualified data packets. These commands are used by the utility xfft.
| Q GO | Begin file reception. The data in the Q GO command is taken as a file name. xpad will open the file if possible and record all data received from this point on in the file. Incoming data is not echoed to the screen, and it is recorded exactly as received to the given file. During receiving, a message is displayed advising the user that keyboard input will be ignored. |
| Q STOP | End file reception. When xpad receives this command it exits from file reception mode and closes the disk file received. xpad then returns to its ordinary mode of operation. |
To use the file transfer capability, you must call a host that is running xfft based on some Call Id. Usually this is a string in the Call User Data which you may specify when you invoke xpad with the -u option. You must also ensure your current directory is the one you wish to place the file in, as xpad receives files into its current working directory.
Copyright © 1997-2003 The Software Group
Limited. All Rights Reserved.
® Netcom is a registered trademark of The Software
Group Limited.