Running StartProgram and StopProgram manually
I am writing a script that will allow members of an application development team to restart/stop/start their applications which run under VCS without triggering a failover or fault within the cluster. I'm doing this by simply freezing the service group and then calling StartProgram and StopProgram as necessary. I'm parsing hares -display $MYRESOURCE -attribute StartProgram or StopProgram to get this information.
# hares -display myresource -attribute StartProgram
#Resource Attribute System Value
myresource StartProgram global /apps/software/javaservlet/myresource/bin/servlet.sh start
The issue I'm facing is that parsing this output for the Value information isn't always resulting in a clean command to be run. So I'm wondering if there is an hares command I can use to call the Start or Stop programs directly, even while the service group is frozen? I looked at hares -action but I'm not sure if that's what I want. Any help or suggestions are appreciated.