Previous  |  Next  >  
Product: Cluster Server Guides   
Manual: Cluster Server 4.1 User's Guide   

Global Querying

VCS enables you to query global cluster objects, including service groups, resources, systems, resource types, agents, and clusters. You may enter query commands from any system in the cluster. Commands to display information on the global cluster configuration or system states can be executed by all users; you do not need root privileges.


Note   Note    Only global service groups may be queried.

Querying Global Cluster Service Groups

  To display service group attribute values across clusters


hagrp -value service_group attribute [system] [-clus cluster |  
   -localclus]
The option -clus displays the attribute value on the cluster designated by the variable cluster; the option -localclus specifies the local cluster.
If the attribute has local scope, you must specify the system name, except when querying the attribute on the system from which you run the command.

  To display the state of a service group across clusters


hagrp -state [service_groups -sys systems] [-clus cluster 
   -localclus]
The option -clus displays the state of all service groups on a cluster designated by the variable cluster; the option -localclus specifies the local cluster.

  To display service group information across clusters


# hagrp -display [service_groups] [-attribute attributes]
     [-sys
systems] [-clus cluster | -localclus]
The option -clus applies to global groups only. If the group is local, the cluster name must be the local cluster name, otherwise no information is displayed.

  To display service groups in a cluster


hagrp -list [conditionals] [-clus cluster | -localclus]
The option -clus lists all service groups on the cluster designated by the variable cluster; the option -localclus specifies the local cluster.

  To display usage for the service group command


hagrp [-help [-modify|-link|-list]]
 ^ Return to Top Previous  |  Next  >  
Product: Cluster Server Guides  
Manual: Cluster Server 4.1 User's Guide  
VERITAS Software Corporation
www.veritas.com