Migrating X.25 over ACC to X.25 over PSI
17
• X.25/ACC needs a script running on each system in the Service guard cluster which
controls the cluster configuration and helps in the Remote HA feature. In case of X.25/PSI,
x25ifstate command is used to monitor the X.25 link and serves as a monitor script for the
ServiceGuard package to achieve Remote HA feature.
Serviceguard Package Migration
In addition to the modification in the hardware setup as explained above, following modification
needs to be done in the control script (/etc/cmcluster/pkg*/control.sh) of X.25 ServiceGuard
package while migrating from X.25/ACC failover setup to X.25/PSI failover setup: -
• Provide the “x25ifstate” command as the monitor command, instead of the “acc_monitor”
script.
• Provide the “x25init” command in the function “customer_defined_run_cmds”, instead of
“/opt/acc/cfg/setRS232.zterm” and “x25util 0 start” scripts.
• Provide the “x25stop” command in the function “customer_defined_halt_cmds”, instead of
“/opt/acc/cfg/setLBACK.zterm” and “x25util 0 stop” scripts
Where, the “acc_monitor” is the user defined monitor script which can be customized to provide
different error conditions. The “/opt/acc/cfg/setRS232.zterm” and
“/opt/acc/cfg/setLBACK.zterm” are the user defined scripts to change the port modes to RS232
and LBACK respectively. The zterm or n2z_pcfg utilities are used to change the port modes.
The x25util is also a user defined script to initialize and stop the X.25 links.
To illustrate the above modification required in the control script (/etc./cmcluster/pkg*/control.sh)
of X.25 ServiceGuard package during the failover migration, consider the following sample X.25
SG package control script before and after migration (only showing the fields that needs to be
modified):-
Sample control script of X.25 SG package before migration (i.e., in
case of X.25/ACC)
…...
…...
SERVICE NAMES AND COMMANDS:
SERVICE_NAME[0]=X25_SERVICE
SERVICE_CMD[0] ="/usr/local/bin/acc_monitor"
SERVICE_RESTART[0]=""
……
……
# you should define all actions you want to happen here, before the #service is started.
function customer_defined_run_cmds
{