[Pacemaker] Listing resources by attributes

pavan tc pavan.tc at gmail.com
Wed Dec 12 09:09:59 EST 2012


Hi,

Is there a way in which resources can be listed based on some attributes?
For example, listing resource running on a certain node, or listing ms
resources.

The crm_resource manpage talks about the -N and -t options that seem to
address the requirements above.
But they do not provide the expected result.
crm_resource --list or crm_resource --list-raw give the same output
immaterial of whether it was provided with -N or -t.

I had to do the following to pull out 'ms' resources, for example:
crm configure show | grep -w ^ms | awk '{print $2}'

Is there a cleaner way to list resources?

Thanks,
Pavan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20121212/c3e42fc5/attachment-0002.html>


More information about the Pacemaker mailing list