<div dir="ltr">Hi!<div>I try crm_master, but it not works:</div><div># LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME --attr-name master-pgsqld --get-value</div><div>crm_master: invalid option -- &#39;t&#39;</div><div>crm_master: unrecognized option &#39;--node-uname&#39;</div><div>crm_master: unrecognized option &#39;--attr-name&#39;</div><div>crm_master - A convenience wrapper for crm_attribute</div><div><br></div><div>I use PAF agent oly, and want get attribute <span style="font-size:medium;line-height:25.6px">master-pgsqld</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais <span dir="ltr">&lt;<a href="mailto:jgdr@dalibo.com" target="_blank">jgdr@dalibo.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le Fri, 20 May 2016 15:31:16 +0300,<br>
Andrey Rogovsky &lt;<a href="mailto:a.rogovsky@gmail.com">a.rogovsky@gmail.com</a>&gt; a écrit :<br>
<span class=""><br>
&gt; Hi!<br>
&gt; I cant get attribute value:<br>
&gt; /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME --attr-name<br>
&gt; master-pgsqld --get-value<br>
&gt; Error performing operation: No such device or address<br>
&gt;<br>
&gt; This value is present:<br>
&gt; crm_mon -A1  | grep master-pgsqld<br>
&gt;     + master-pgsqld                    : 1001<br>
&gt;     + master-pgsqld                    : 1000<br>
&gt;     + master-pgsqld                    : 1<br>
<br>
</span>Use crm_master to get master scores easily.<br>
<span class=""><br>
&gt; I use 1.1.15-rc1<br>
&gt; dpkg -l | grep pacemaker-cli-utils<br>
&gt; ii  pacemaker-cli-utils            1.1.15-rc1                    amd64<br>
&gt;    Command line interface utilities for Pacemaker<br>
&gt;<br>
&gt; Also non-integer values work file:<br>
&gt; /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME --attr-name<br>
&gt; pgsql-data-status --get-value<br>
&gt; STREAMING|ASYNC<br>
<br>
</span>I&#39;m very confused. It sounds you are mixing two different resource agent for<br>
PostgreSQL. I can recognize scores for you master resource set bu the pgsqlms<br>
RA (PAF project) and the data-status attribute from the pgsql RA...<br>
<span class=""><br>
&gt; I thinking this patch<br>
&gt; <a href="https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269" rel="noreferrer" target="_blank">https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269</a><br>
&gt; is<br>
&gt; not apply in 1.1.15-rc1?<br>
&gt;<br>
&gt; How I can get integere value from node attribute?<br>
<br>
</span>With the correct name for the given attribute.<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Jehan-Guillaume de Rorthais<br>
Dalibo<br>
</font></span></blockquote></div><br></div>