Serviceguard
cancel
Showing results for 
Search instead for 
Did you mean: 

cmviewcl failed to execute in perl script that is called by OA policy

blitz_cn
Occasional Contributor

cmviewcl failed to execute in perl script that is called by OA policy

agent version: 8.60

OS: suse 10
cmviewcl inside perl script can execute manually successfully.
but when the perl script is called by OA policy, cmviewcl failed to execute anytime even include its full path and export the environment variable PATH which value is got from console since manually execute perl script cmviewcl can work.
relative code: `export PATH=/opt/OV/nonOV/perl/a/bin/perl:/var/opt/OV/bin/instrumentation:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/opt/cmcluster/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/cmcluster/bin:/opt/dsau/sbin:/opt/dsau/bin:/opt/qs/bin`; $cmv_ret = system("/opt/cmcluster/bin/cmviewcl -v -p $pkg > $TMPFILE 2>&1");
the error message is :
cmviewcl: Cannot view the cluster configuration: No such file or directory. Either this node is not configured in a cluster, user doesn't have access to view the cluster configuration, or there is some obstacle to viewing the configuration. Check the syslog file for more information. For a list of possible causes, see the Serviceguard manual for cmviewcl.