<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-08-12 15:45 GMT+02:00 Karl Rößmann <span dir="ltr"><<a href="mailto:K.Roessmann@fkf.mpg.de" target="_blank">K.Roessmann@fkf.mpg.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
is there an easy way to determine in a script (bash or python) whether<br>
a CRM Resource (Xen Domain) is running or not ?<br></blockquote><div><br></div><div>We query the location of a resource in bash with this:</div><div><br></div><div>if [ ! "$(/usr/sbin/crm_resource -Q -r resourcename -W)" = "$(hostname)" ]; then</div><div><br></div><div>just have a look at "man crm_resource" i'm pretty sure you'll find something suitable.</div></div></div></div>