ClusterLabs/pacemaker — pull request #419 by gao-yan (2014-01-23 14:09:03+00:00)
Title: Feature: crm_mon: Display brief output if "-b/--brief" is supplied or 'b' is toggled

It's very helpful if there are many same types of resources.

If -b/--brief is supplied, the output is like:

6 (ocf::pacemaker:Dummy): Active node1

If -r/--inactive is also supplied:

6/10 (ocf::pacemaker:Dummy): Active node1
0/5 (ocf::heartbeat:Dummy): Active

Output for a group is like:
Resource Group: group1
18/20 (ocf::pacemaker:Dummy): Active node1
12/15 (ocf::heartbeat:Dummy): Active node1

If -n/--group-by-node is also supplied, the output of the node is like:

Node node1: online
24 (ocf::pacemaker:Dummy): Active
12 (ocf::heartbeat:Dummy): Active