VCS Cheat Sheet

VCS Operations

Task Command Example
Start VCS hastart
Start VCS stale hastart –stale
Force start VCS hastart –force
Start VCS on a single node hastart –onenode
Stop VCS on all nodes hastop -all
Stop VCS & leave apps running hastop –all –force
Stop local node hastop –local
Stop local node & evacuate service groups hastop –local –evacuate
Stop local node & leave apps running hastop –local –force
Stop a system hastop –sys system_name hastop –sys myserver
Stop a system & evacuate service groups hastop –sys system_name –evacuate hastop –sys myserver –evacuate
Stop a system & leave apps running hastop –sys system_name –force hastop –sys myserver –force
Show VCS status hastatus
Show a group status hastatus –group group_name hastatus –group mygroup
Show a status summary hastatus –summary
Open cluster configuration haconf –makerw
Save cluster configuration haconf –dump
Save & close cluster configuration haconf –dump –makero
Verify cluster configuration hacf –verify config_dir cd /etc/VRTSvcs/conf/config;hacf –verify .
Start VCS Java GUI hagui

Cluster Operations

Task Command Example
Display cluster information haclus -display
Display a cluster attribute haclus –value attribute haclus –value ClusterName
System Operations
Task Command Example
List cluster systems hasys -list
Display a system attribute hasys –display system_name hasys –display myserver
Add a system hasys –add system_name hasys –add mynewserver
Delete a system hasys –delete system_name hasys –delete myserver
Freeze a system hasys –freeze system_name hasys –freeze myserver
un-freeze a system hasys –unfreeze system_name hasys –unfreeze myserver
Display the state of a system hasys –state system_name hasys –state myserver
Display a system’s node id hasys –nodeid
Force a system to start hasys –force system_name hasys –force myserver

User Operations

Task Command Example
Add a user with Guest access hauser –add username hauser –add myname
Add a user with Cluster Admin access haclus –modify Administrators –add username haclus –modify Administrators –add myname
Add a user with Operator access haclus –modify Operators –add username haclus –modify Administrators –add myname
Add a user with group administrator access hagrp -modify service_group Administrators -add username hagrp -modify mygroup Administrators -add myname
Add a user with group operator access hagrp -modify service_group Operators -add username hagrp -modify mygroup Operators -add myname
Modify a user hauser –update username hauser –update myname
Delete a user hauser –delete username hauser –delete myname
Display a user hauser -display

Service Group Operations

Task Command Example
List groups hagrp -list
Display group state hagrp –state group_name [–sys system_name] hagrp –state mygroup [–sys myserver]
Clear group faults hagrp –clear group_name [-sys system_name] hagrp –clear mygroup [-sys myserver]
List group resources hagrp –resources group_name hagrp –resources mygroup
List group dependencies hagrp –dep group_name hagrp –dep mygroup
Display a group hagrp –display group_name [–sys system_name] hagrp –display mygroup –[sys myserver]
Online a group hagrp –online group_name –sys system_name hagrp –online mygroup –sys myserver
Offline a group hagrp –offline group_name –sys system_name hagrp –offline mygroup –sys myserver
Switch a group hagrp –switch group_name –to system_name hagrp –switch mygroup –to myserver
Flush a group hagrp –flush group_name –sys system_name hagrp –flush mygroup –sys myserver
Freeze a group hagrp –freeze group_name hagrp –freeze mygroup
Thaw a group hagrp –unfreeze group_name hagrp –unfreeze mygroup
Enable a group hagrp –enable group_name [–sys system_name] hagrp –enable mygroup –[sys myserver]
Disable a group hagrp –disable group_name [–sys system_name] hagrp –disable mygroup –[sys myserver]
Enable group resources hagrp –enableresources group_name hagrp –enableresources mygroup
Disable group resources hagrp –disableresources group_name hagrp –disableresources mygroup
Add a group hagrp –add group_name hagrp –add mynewgroup
Delete a group hagrp –delete group_name hagrp –delete mynewgroup
Modify a group hagrp –modify group_name attribute value hagrp –modify mygroup AutoStart 0
Remove group dep hagrp –unlink parent_group child_group hagrp –unlink mygroup mynewgroup
Create a group dependency hagrp –link parent_group child_group relationship
Relationship: online local soft
online local firm
online global soft
online global firm
online remote soft
offline remote soft
offline remote firm
offline local

Resource Operations

Task Command Example
List resources hares -list
Display resource state hares –state res_name [-sys system_name] hares –state myres [-sys myserver]
Clear resource faults hares –clear res_name [-sys system_name] hares –clear myres [-sys myserver]
Display a resource hares –display res_name
hares –display –group group_name
hares –display –sys system_name
hares –display myres
hares –display –group mygroup
hares –display –sys system_name
Display resource dependencies hares –dep res_name hares –dep myres
Online a resource hares –online res_name –sys system_name hares –online myres –sys myserver
Offline a resource hares –offline res_name –sys system_name hares –offline myres –sys myserver
Offline propagate a resource hares –offprop res_name –sys system_name hares –offprop myres –sys myserver
Probe a resource hares –probe res_name –sys system_name hares –probe myres –sys myserver
Add a resource hares –add res_name res_type group_name hares –add myres mytype mygroup
Delete a resource hares –delete res_name hares –delete myres
Modify a resource hares –modify res_name attribute value hares –modify myres device qfe3
Create a resource dependency hares –link parent_res child_res hares –link myres mynewres
Delete a resource dependency hares –unlink parent_res child_res hares –unlink myres mynewres

Resource Type Operations

Task Command Example
List resource types hatype -list
List resources of a particular type hatype –resources res_type hatype –resources mytype
Display a resource type hatype –display [res_type] hatype –display [mytype]
Add a resource type hatype –add res_type hatype –add mynewtype
Delete a resource type hatype –delete res_type hatype –delete mynewtype
Modify a resource type hatype –modify res_type attribute value hatype –modify mytype OnlineRetryLimit 2

Agent Operations

Task Command Example
List agents haagent -list
Display agents haagent –display [agent_type] haagent –display [myagent]
Start an agent haagent –start agent_type –sys system_name haagent –start myagent –sys myserver
Stop an agent haagent –stop agent_type –sys system_name haagent –stop myagent –sys myserver

LLT & GAB Operations

Task Command Example
Display llt links lltconfig –a list
Display llt stats lltstat
Display llt links lltstat -nvv
Display llt system name lltstat -H
Display gab config gabconfig –l
Display gab ports gabconfig -a