[Pacemaker] Listing resources by attributes
Andrew Beekhof
andrew at beekhof.net
Wed Dec 12 23:47:56 UTC 2012
On Thu, Dec 13, 2012 at 1:09 AM, pavan tc <pavan.tc at gmail.com> wrote:
> 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.
Not really. They're not designed to work with --list or --locate
> 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?
Not really.
>
> Thanks,
> Pavan
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
More information about the Pacemaker
mailing list