HP X.25/9000 User's Guide HP-UX 11i v3 (5900-1523, August 2011)

X.25 High availability configuration
Figure 16 X.25 High availability configuration
Example 14 One example of remote failure
The only file that contains the X.25 commands to run for High Availability is the /etc./
cmcluster/pkg*/control.sh file (one per X.25 package).
# SERVICE NAMES AND COMMANDS
SERVICE_NAME [0] =pkg1.Service_Name_01 (same SERVICE_NAME as in pkg conf)
SERVICE_CMD [0] =/usr/sbin/x25ifstate -d /dev/x25_1 -H -t 5
SERVICE_RESTART [0] =
#add below the service names which define the applications that rely on the X.25
card
# e.g.# SERVICE_NAME [1] = <other name>
# SERVICE_CMD [1] = <other monitor>
# START OF CUSTOMER DEFINED FUNCTIONS
function customer_defined_run_cmds
{
#ADD customer defined run commands
: # do nothing instruction, because a function must contain at least one command.
x25init -c /etc/x25/x25config_1 -a /etc/x25/ip_to_x121_map
sleep 5
test_return 51
}
function customer_defined_halt_cmds
{
#ADD customer defined halt commands
: # do nothing instruction, because a function must contain some command.
#stopping the specific X.25 card means the signal modem will be down
x25stop -d /dev/x25_1
test_return 52
}
Checking the configuration
Check that your configuration is correct using x25server, x25check, and ping.
x25server Run the x25server command. This starts a background process that waits for packets
from an x25check command and sends a reply.
x25check Execute the x25check command, using your X.121 address:
$ x25check 250207
60 Configuration