Hi Team,
This below task is failing…
parameter “FixDir”="{pathname of parent folder of client folder of current site & “/__CustomData”}"
wait rm -rf "{parameter “FixDir” of action}"
wait mkdir -p “{parameter “FixDir” of action}”
createfile until __EOF
clrg status > /var/opt/BESClient/__BESData/__CustomData/ClusterStatus.txt
__EOF
wait mv __createfile "{parameter “FixDir” of action}/ClusterStatus.sh"
wait chmod +x {parameter “FixDir” of action & “/ClusterStatus.sh”}
wait sh “{parameter “FixDir” of action}/ClusterStatus.sh”
ClusterStatus.txt is not getting generate, while ClusterStatus.sh is executing successfully manually.
If you run this action on a client does the ClusterStatus.sh get created in the __CustomData folder on the endpoint?
you might also want to check if your clrg
binary is in the agent’s path
Have a look at this tip
1 Like
Then its generating the output file with data.
We have cluster production, I have run the command manually. We are getting output.
The issue has been resolved…Thanks for your comments.
1 Like
Can you expand on what the issue was for future reference?
I just used the fullpath of command.
parameter “FixDir”="{pathname of parent folder of client folder of current site & “/__CustomData”}"
wait rm -rf "{parameter “FixDir” of action}"
wait mkdir -p “{parameter “FixDir” of action}”
createfile until __EOF
/usr/cluster/bin/clrg status > /var/opt/BESClient/__BESData/__CustomData/ClusterStatus.txt
__EOF
wait mv __createfile "{parameter “FixDir” of action}/ClusterStatus.sh"
wait chmod +x {parameter “FixDir” of action & “/ClusterStatus.sh”}
wait sh “{parameter “FixDir” of action}/ClusterStatus.sh”
2 Likes