cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] add format and filtering options to cman_tool
@ 2007-09-17 16:25 Ryan O'Hara
  2007-09-17 16:37 ` James Parsons
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan O'Hara @ 2007-09-17 16:25 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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 <nodename> option. Multiple 
nodes can be specified per usual.

Formatting can be done via the -F <opt1,opt2,...> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cman_tool.diff
Type: text/x-patch
Size: 6555 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070917/f3b6c650/attachment.bin>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Cluster-devel] [PATCH] add format and filtering options to cman_tool
  2007-09-17 16:25 [Cluster-devel] [PATCH] add format and filtering options to cman_tool Ryan O'Hara
@ 2007-09-17 16:37 ` James Parsons
  0 siblings, 0 replies; 2+ messages in thread
From: James Parsons @ 2007-09-17 16:37 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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 <nodename> option. Multiple 
> nodes can be specified per usual.
>
> Formatting can be done via the -F <opt1,opt2,...> 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-17 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-17 16:25 [Cluster-devel] [PATCH] add format and filtering options to cman_tool Ryan O'Hara
2007-09-17 16:37 ` James Parsons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).