<br><br><div class="gmail_quote">On Tue, Aug 28, 2012 at 4:06 AM, Amar Tumballi <span dir="ltr">&lt;<a href="mailto:amarts@redhat.com" target="_blank">amarts@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Wanted to check if any one is using gluster CLI output of &#39;peer status&#39; in their scripts/programs? If yes, let me know. If not, we are trying to make it more script friendly.<br>
<br>
For example the current output would look something like:<br>
<br>
-----<br>
Hostname: 10.70.36.7<br>
Uuid: c7283ee7-0e8d-4cb8-8552-<u></u>a63ab05deaa7<br>
State: Peer in Cluster (Connected)<br>
<br>
Hostname: 10.70.36.6<br>
Uuid: 5a2fdeb3-e63e-4e56-aebe-<u></u>8b68a5abfcef<br>
State: Peer in Cluster (Connected)<br>
<br>
-----<br>
<br>
New changes would make it look like :<br>
<br>
-------<br>
UUID                                      Hostname       Status<br>
c7283ee7-0e8d-4cb8-8552-<u></u>a63ab05deaa7      10.70.36.7     Connected<br>
5a2fdeb3-e63e-4e56-aebe-<u></u>8b68a5abfcef      10.70.36.6     Connected<br>
<br>
-------<br>
<br>
If anyone has better format, or want more information, let us know now. I would keep timeout for this mail as 3 more working days, and without any response, we will go ahead with the change.<br><br></blockquote><div><br>
</div><div>I suggest we retain the current output of &#39;gluster peer status&#39; as-is and implement the above proposed format in the output of &#39;gluster --mode=script peer status&#39; (perhaps make it even more script friendly?). Since --mode=script is already a support cli switch it would be ideal to include this change under that itself. Handling of --xml would be independent issue.</div>
<div><br></div><div>If there are suggestions to the desired output format of &#39;gluster --mode=script peer status&#39; from the users, it would be good to bring it up now.</div><div><br></div><div>Avati</div></div>