Forum Discussion

Velmathan's avatar
Velmathan
Level 4
11 years ago
Solved

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

     

  • 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

     

  • Hi Mike,

    Thanks, I have mistakently un commented the line in postonline script.. Now I can able to execute it...

     

    Vel