Velmathan
11 years agoLevel 4
Want to run one command after service group came online.
I have copied postonline script from /opt/VRTSvcs/bin/trigger/ directory and added the commands in the section (put your code). hatrigger is initaited by vcs but it is failed to execute the script.
hatrigger:Failed to execute /opt/VRTSvcs/bin/triggers/postonline w1es6008 mdmsg
Please guid me.
Run postonline from the command line to see if you get an error message - you need to pass arguments as specified in trigger script which are system and service group which I guess is "w1es6008 mdmsg" in your case so just run "/opt/VRTSvcs/bin/triggers/postonline w1es6008 mdmsg"
If you don't get any errors, then add lines of code at intervals to print out a messgae to the screen so you can work out where your code is going wrong.
Mike