Using the -wait option in scripts

The -wait option is for use in the scripts that use VCS commands to wait till an attribute value changes to the specified value. The option blocks the VCS command until the value of the specified attribute is changed or until the specified timeout 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.