Hi,
I also tried with 'crm_resource'.
I'm not a python export, but I inserted this line:
if os.system("crm_resource -r " + myVM + " -W | grep 'is running'") == 0:
which works !
thanks to the list.
Quoting Michael Böhm :
2015-08-12 15:45 GMT+02:00 Karl Rößmann :
Hi,
is there an easy way
On 12.08.2015 17:18, Michael Böhm wrote:
2015-08-12 15:45 GMT+02:00 Karl Rößmann :
Hi,
is there an easy way to determine in a script (bash or python) whether
a CRM Resource (Xen Domain) is running or not ?
We query the location of a resource in bash with this:
if [ ! "$(/usr/sbin/crm_re
2015-08-12 15:45 GMT+02:00 Karl Rößmann :
>
> Hi,
>
> is there an easy way to determine in a script (bash or python) whether
> a CRM Resource (Xen Domain) is running or not ?
>
We query the location of a resource in bash with this:
if [ ! "$(/usr/sbin/crm_resource -Q -r resourcename -W)" = "$(ho