The SXOLISTEN command is used to monitor or listen to the heartheat
counter on the cluster volume set. The command will pause until
such time as the heartbeat stops. When it defects that a heartbeat
has not happened within the tineframe passed in as a parameter,
the command will fall through and continue processing the job script.
The Listen job script should be designed to alert the system
administrator and to not assume that because the heartbeat stopped
that the system is down. Other tests should be part of the decision
process before having a job script make the final decision of taking
over a cluster volume set.
Examples
of Beat and Listen Job Scripts |
 |
!Job beat,manager.sys !SXOutil Verify off Sxobeat RES_DBSET 50 2 Exit!comment If beat terminates Emergency close volumes !comment because the other machine accidentally took over. !VSCLOSE RES_DBSET;now !TELLOP Help me mister wizard. !TELLOP Log onto secondary system and verify data base integrity !Eoj |
|
!Job listen,manager. !Comment This job will check every 2 seconds for a heartbeat. !Comment If after 2 minutes no heartbeat detected, takeover. !SXOutil Verify off SXOListen RES_DBSET 50 2 120 Exit !comment Heartbeat stopped !comment Take over volume set !SXOutil verify off SXOsetlabel RES_DBSET 50 Exit !VSOPEN RES_DBSET !Stream IPMigrat.Job.Sys !Stream Launch.App.Sys !TELLOP Ready to go !stream Jbeat.job.sys !Eoj |
|