On 23 Jun 2014, at 8:35 am, Dennis Jacobfeuerborn <denni...@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@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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to