Amar Tumballi
2012-Aug-28 11:06 UTC
[Gluster-users] FeedBack Requested : Changes to CLI output of 'peer status'
Hi, Wanted to check if any one is using gluster CLI output of 'peer status' in their scripts/programs? If yes, let me know. If not, we are trying to make it more script friendly. For example the current output would look something like: ----- Hostname: 10.70.36.7 Uuid: c7283ee7-0e8d-4cb8-8552-a63ab05deaa7 State: Peer in Cluster (Connected) Hostname: 10.70.36.6 Uuid: 5a2fdeb3-e63e-4e56-aebe-8b68a5abfcef State: Peer in Cluster (Connected) ----- New changes would make it look like : ------- UUID Hostname Status c7283ee7-0e8d-4cb8-8552-a63ab05deaa7 10.70.36.7 Connected 5a2fdeb3-e63e-4e56-aebe-8b68a5abfcef 10.70.36.6 Connected ------- 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. Regards, Amar
Washer, Bryan
2012-Aug-28 12:10 UTC
[Gluster-users] FeedBack Requested : Changes to CLI output of 'peer status'
<html><body>I would love this....and would be more than happy to change my current parsing...this would make it A LOT easier to parse....as well as easier to see all information on a disconnected peer as the information will be in a single line. Bryan Washer -----Original Message----- From: gluster-users-bounces at gluster.org [mailto:gluster-users-bounces at gluster.org] On Behalf Of Amar Tumballi Sent: Tuesday, August 28, 2012 6:06 AM To: Gluster Devel; gluster-users Subject: [Gluster-users] FeedBack Requested : Changes to CLI output of 'peer status' Hi, Wanted to check if any one is using gluster CLI output of 'peer status' in their scripts/programs? If yes, let me know. If not, we are trying to make it more script friendly. For example the current output would look something like: ----- Hostname: 10.70.36.7 Uuid: c7283ee7-0e8d-4cb8-8552-a63ab05deaa7 State: Peer in Cluster (Connected) Hostname: 10.70.36.6 Uuid: 5a2fdeb3-e63e-4e56-aebe-8b68a5abfcef State: Peer in Cluster (Connected) ----- New changes would make it look like : ------- UUID Hostname Status c7283ee7-0e8d-4cb8-8552-a63ab05deaa7 10.70.36.7 Connected 5a2fdeb3-e63e-4e56-aebe-8b68a5abfcef 10.70.36.6 Connected ------- 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. Regards, Amar _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://gluster.org/cgi-bin/mailman/listinfo/gluster-users NOTICE: This email and any attachments may contain confidential and proprietary information of NetSuite Inc. and is for the sole use of the intended recipient for the stated purpose. Any improper use or distribution is prohibited. If you are not the intended recipient, please notify the sender; do not review, copy or distribute; and promptly delete or destroy all transmitted information. Please note that all communications and information transmitted through this email system may be monitored by NetSuite or its agents and that all incoming email is automatically scanned by a third party spam and filtering service </body></html> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20120828/bdb84627/attachment.html>
Pranith Kumar Karampuri
2012-Aug-28 12:46 UTC
[Gluster-users] FeedBack Requested : Changes to CLI output of 'peer status'
hi Amar, This is the format we considered initially but we did not go with this because it may exceed 80 chars and wrap over for small terminals if we want to add more fields in future. Pranith. ----- Original Message ----- From: "Amar Tumballi" <amarts at redhat.com> To: "Gluster Devel" <gluster-devel at nongnu.org>, "gluster-users" <gluster-users at gluster.org> Sent: Tuesday, August 28, 2012 4:36:07 PM Subject: [Gluster-users] FeedBack Requested : Changes to CLI output of 'peer status' Hi, Wanted to check if any one is using gluster CLI output of 'peer status' in their scripts/programs? If yes, let me know. If not, we are trying to make it more script friendly. For example the current output would look something like: ----- Hostname: 10.70.36.7 Uuid: c7283ee7-0e8d-4cb8-8552-a63ab05deaa7 State: Peer in Cluster (Connected) Hostname: 10.70.36.6 Uuid: 5a2fdeb3-e63e-4e56-aebe-8b68a5abfcef State: Peer in Cluster (Connected) ----- New changes would make it look like : ------- UUID Hostname Status c7283ee7-0e8d-4cb8-8552-a63ab05deaa7 10.70.36.7 Connected 5a2fdeb3-e63e-4e56-aebe-8b68a5abfcef 10.70.36.6 Connected ------- 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. Regards, Amar _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
Anand Avati
2012-Aug-29 05:35 UTC
[Gluster-users] FeedBack Requested : Changes to CLI output of 'peer status'
On Tue, Aug 28, 2012 at 4:06 AM, Amar Tumballi <amarts at redhat.com> wrote:> Hi, > > Wanted to check if any one is using gluster CLI output of 'peer status' in > their scripts/programs? If yes, let me know. If not, we are trying to make > it more script friendly. > > For example the current output would look something like: > > ----- > Hostname: 10.70.36.7 > Uuid: c7283ee7-0e8d-4cb8-8552-**a63ab05deaa7 > State: Peer in Cluster (Connected) > > Hostname: 10.70.36.6 > Uuid: 5a2fdeb3-e63e-4e56-aebe-**8b68a5abfcef > State: Peer in Cluster (Connected) > > ----- > > New changes would make it look like : > > ------- > UUID Hostname Status > c7283ee7-0e8d-4cb8-8552-**a63ab05deaa7 10.70.36.7 Connected > 5a2fdeb3-e63e-4e56-aebe-**8b68a5abfcef 10.70.36.6 Connected > > ------- > > 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. > >I suggest we retain the current output of 'gluster peer status' as-is and implement the above proposed format in the output of 'gluster --mode=script peer status' (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. If there are suggestions to the desired output format of 'gluster --mode=script peer status' from the users, it would be good to bring it up now. Avati -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20120828/d9a495a8/attachment.html>