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

Using the -wait Option in Scripts

The -wait option is for use in scripts using VCS commands to change attribute values. The option blocks the VCS command until the value of the specified attribute is changed or until the timeout, if specified, expires. Specify the timeout in seconds.

The option can be used only with changes to scalar attributes.

The -wait option is supported with the following commands:

  • haclus

  • haclus -wait attribute value [-clus cluster] [-time timeout]
    Use the -clus option in a global cluster environment.
  • hagrp

  • hagrp -wait group attribute value [-clus cluster] [-sys system] [-time timeout]
    Use the -sys option when the scope of the attribute is local.
    Use the -clus option in a global cluster environment.
  • hares

  • hares -wait resource attribute value [-clus cluster] [-sys system] [-time timeout]
    Use the -sys option when the scope of the attribute is local.

    Use the -clus option in a global cluster environment.
  • hasys

  • hasys -wait system attribute value [-clus cluster] [-time timeout]
    Use the -clus option in a global cluster environment.

See the man pages associated with these commands for more information.

 ^ Return to Top Previous  |  Next  >  
Product: Cluster Server Guides  
Manual: Cluster Server 4.1 User's Guide  
VERITAS Software Corporation
www.veritas.com