User's Manual

Configuration
Configuring the High Availability Feature for X.25 over LLC2
Chapter 394
# SERVICE NAMES AND COMMANDS
SERVICE_NAME [0] =pkg1.Service_Name_01 (same SERVICE_NAME as in pkg conf)
SERVICE_CMD [0] ="/usr/sbin/x25HAmonitor -c x25config_llc2 -L llc2_conf_def -m "
SERVICE_RESTART [0] = " "
# Unique MAC address in the subnet (LAN segment) which is not in use. This will
be the Active MAC address on the active node in the cluster.
Supplied_MAC = 0x0060B0A4EBE5
# START OF CUSTOMER DEFINED FUNCTIONS
function customer_defined_run_cmds
{
# START of customer defined run commands.
/usr/sbin/x25stop -d /dev/x25_1l0 # primary lan PPA is 1 and
XOL_logical_port_id is 0
sleep 2
/usr/sbin/lanadmin -A $Supplied_MAC 1
/usr/sbin/x25init -c /etc/x25/x25config_llc2_1 -L /etc/x25/llc2_conf_def
sleep 5
# Check and stop the x25HAmonitor if already running
# This is needed as Service Guard monitor starts the monitor later
PID=`/usr/bin/ls /var/x25/tmp/x25HAmonitor_1l0.* | /usr/bin/awk -F '.' '{ print
$2 }'`
PROC_NAME=`/usr/bin/ps -e | /usr/bin/grep $PID /usr/bin/awk '{ print $4 }'`
if [[ $PROC_NAME = "x25HAmonitor" ]]
then
/usr/bin/kill $PID
fi
test_return 51
# END of customer defined run commands
}