[Pacemaker] Listing resources running on node

Andrew Beekhof andrew at beekhof.net
Sun Jun 22 19:14:35 EDT 2014


On 23 Jun 2014, at 8:35 am, Dennis Jacobfeuerborn <dennisml at conversis.de> wrote:

> Hi,
> what is the best way to list the resources running on the local node?
> I'm trying to create a simple monitoring script and basically want to be
> able to simply list all the resources started on the local node.
> 
> crm_resource has -l which lists all resources but not where they are
> running and --locate can give me the location but only for a single
> resource so the best I can come up with is listing all resources,
> finding the location for each and then filtering using the local
> hostname. This sounds rather inefficient and roundabout so I wonder if
> there is a way to either list only the locally running resources or at
> least list the resources with the unames they are running on?

crm_mon (with or wtihout the --as-xml) might provide a starting point

> 
> Regards,
>  Dennis
> 
> _______________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140623/25de351e/attachment-0003.sig>


More information about the Pacemaker mailing list