[ClusterLabs] show all node attribures

Andrew Beekhof andrew at beekhof.net
Mon Aug 3 21:13:14 EDT 2015


> On 17 Jul 2015, at 6:07 am, Jorge Lopes <jmclopes at gmail.com> wrote:
> 
> Hi all,
> 
> When I run crm_mon -A I get get a list of all nodes attributes. I couldn't find a way to show the attributes of only one node, either with crm_mon or other command. Any ideas?

No but it sounds useful and we take patches :-)

> 
> I the (simplified) example bellow, I would like to a command that would give me the node cluster-node4 attributes.
> 
> me at node1:~# crm_mon -A1
> Last updated: Thu Jul 16 19:54:46 2015
> Last change: Thu Jul 16 19:26:49 2015 via crmd on cluster
> Stack: corosync
> Current DC: cluster-node4 (1084803300) - partition with quorum
> Version: 1.1.12-561c4cf
> 5 Nodes configured
> 15 Resources configured
> 
> 
> Online: [ cluster-node4 cluster-node3 cluster-node2 cluster-node1 cluster-node5 ]
> 
>  sysinfo_ds    (ocf::pacemaker:SysInfo2):    Started cluster-node2
>  sysinfo_db    (ocf::pacemaker:SysInfo2):    Started cluster-node4
> 
> 
> Node Attributes:
> * Node cluster-node4:
>     + arch                                : x86_64   
>     + cpu_cores                           : 4        
>     + cpu_info                            : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
>     + cpu_load                            : 0.08,    
>     + cpu_speed                           : 4200.00  
>     + free_swap                           : 950      
>     + os                                  : Linux-3.13.0-44-generic
>     + cluster_free                        : 68333    
>     + ram_free                            : 1550     
>     + ram_total                           : 3950     
>     + root_free                           : 3575     
> * Node cluster-node3:
> * Node cluster-node2:
>     + arch                                : x86_64   
>     + cpu_cores                           : 4        
>     + cpu_info                            : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
>     + cpu_load                            : 0.58,    
>     + cpu_speed                           : 4200.00  
>     + free_swap                           : 0        
>     + os                                  : Linux-3.13.0-44-generic
>     + cluster_free                        : 58592    
>     + ram_free                            : 2050     
>     + ram_total                           : 3950     
>     + root_free                           : 4563      
> 
> 
> 
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> 
> 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 Users mailing list