How to run a VCS trigger from command line?
book
Article ID: 100021938
calendar_today
Updated On:
Resolution
Issue:
How to run the postonline or postoffline triggers outside of VCS?
Solution:
Use this syntax to run the trigger;
/opt/VRTSvcs/bin/perl5 -I /opt/VRTSvcs/lib -S /opt/VRTSvcs/bin/triggers/postoffline
Example:
#/opt/VRTSvcs/bin/perl5 -I /opt/VRTSvcs/lib -S/opt/VRTSvcs/bin/triggers/postoffline system1 sgroup1
Text similar to below can be added to the trigger to verify its working.
# put yourcode here...
$OUTFILE ="/tmp/outfile";
system("echoRan postoffline on system $ARGV[0] at `/usr/bin/date` >>$OUTFILE");
Please note that attempting to run postoffline trigger will attempt to offline the service group in the named system.
Issue/Introduction
How to run a VCS trigger from command line?
Was this article helpful?
thumb_up
Yes
thumb_down
No