From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Parsons Date: Mon, 17 Sep 2007 12:37:29 -0400 Subject: [Cluster-devel] [PATCH] add format and filtering options to cman_tool In-Reply-To: <46EEAA79.6030309@redhat.com> References: <46EEAA79.6030309@redhat.com> Message-ID: <46EEAD49.6080201@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Ryan O'Hara wrote: > Below is a patch that will add the ability to filter the output of > 'cman_tool nodes' by nodename, as well as specify the format of the > output. > > Filtering by nodename is done via the -n option. Multiple > nodes can be specified per usual. > > Formatting can be done via the -F option, where opt1, > opt2, etc. can be one of four things: id, name, type, and addr. These > will output the node id, node name, type, and address(es) for the > node(s) respectively. Note that this is not a complete set of options > as they correspond to information available from cman_tool, but it > does achieve the goal. > > This is intended to give users a way to extract specific information > about a node (or node), which might be useful for scripts, etc. > > Comments welcome. > > -Ryan This is a lovely thing, Ryan. Thank you. -j