Let me preface this by saying, whilst running these commands, I recommend having at least two terminal windows open, one for the actual operations/commands and the other to tail the logs. I.E., /var/VRTSvcs/log/engine_A.log. In actuality, I usually have four to five windows open whilst I am administering a VCS cluster.
CLUSTER OPERATIONS
Start VCS
hastart [-force]
hasys -force system
Stop VCS
hastop -local [-force|-evacuate]
hastop sys system [-force|-evacuate]
hastop all [-force]
Open/Save/Save and Close Configuration
haconf makerw |-dump |-dump -makero
Add User
hauser add user
==== BASIC CONFIGURATION ====
Action
Command Line
Configure Service Groups
hagrp -add |-delete group
hagrp -modify group attribute value
hagrp -link parent_group child_group dependency firm | soft
Configure Resources
hares add resource type group
hares delete resource
hares -modify resource attribute value
hares -link parent_resource child_resource
Configure Agents/Types
hatype -modify type attribute value
==== BASIC OPERATIONS ====
Action
Command Line
Online/Offline/Switch/Flush Service Group
hagrp -online group -sys system; hagrp -online group -any
hagrp -offline group -sys system; hagrp -offline group -any
hagrp -switch group -to system; hagrp -switch group -any
hagrp -flush group -sys system
Online/Offline Resource
hares online [-ignoreparent] resource -sys system
hares offline [-ignoreparent] resource -sys system
Clear Faults
hares clear resource [-sys system]
hares probe resource -sys system
hagrp -clear group [-sys system]
hagrp clearadminwait -fault group -sys system
==== STATUS AND VERIFICATION ====
Action
Command Line
VCS Status (system/group/resource/agent)
hastatus -summary
LLT Status/Verification
lltconfig; lltconfig list; lltstat; lltstat nvv
GAB Status/Verification
gabconfig -a
==== COMMUNICATION ====
Action
Command Line
Starting and Stopping LLT
lltconfig -c; lltconfig -U
Starting and Stopping GAB
gabconfig -c -n seed_number; gabconfig -U
==== ADMINISTRATION ====
Action
Command Line
Freezing/Unfreezing Groups
hagrp -freeze group [-persistent]; hagrp -unfreeze group [-persistent]
Freezing/Unfreezing Systems
hasys -freeze system [-persistent][-evacuate]
hasys -unfreeze system [-persistent]