VCS for Windows "cheat sheet": a quick reference for numerous Veritas Cluster Server (VCS) commands

book

Article ID: 100015601

calendar_today

Updated On:

Description

This article contains a "cheat sheet," intended to be a quick reference for users of Veritas Cluster Server for Windows.

Resolution

Table 1 - Commands for controlling, and checking the status of, a SFW-HA cluster

Command Description
hastatus -sum provides state of HAD system status, service groups, resources
hasys -state provides state of HAD system status
hasys -force Servername Force server to use another configuration ( HOST NAME IS CASE SENSITIVE ALL CAPS)
hasys -verify PATH\. verify the syntex of main.cf
Hastop -all -force Stop the cluster on all nodes in the cluster, leaving the service groups online
Hastop -local -force Stop the cluster leave the service groups online (Node where the command is run)
GABCONFIG -a Determine the Gab Memberships of the Cluster
GABCONFIG -C -X Start Without everyone in membership
vcsencrypt  -agent Encrypts passwords for use by vcs resources
vcsencrypt  -vcs Encrypts VCS user passwords
haagent -display -sys HOSTNAME Displays the status of the VCS agents
haagent -display AgentType Displays the status of a specific VCS agents
hastatus -sum summary of agents and tells you what faulted
lltstat -nvv [configured, active] Provides status of all heartbeat links
haconf -makerw Make cluster configuration read\writeable
haconf -dump Save cluster configuration
haconf -dump -makero Save and close cluster configuration
hauser -add admin -priv Administrator Add an administrative user to the main.cf
getdrive.exe Gets basic disk/partition details for VCS for Windows
vmgetdrive.exe Gets dynamic diskgroup/volume details for SFW-HA
hahb used to create/delete/modify/display global heartbeat
getmac.exe get mac addresses on the node
netsh trace show interface Use to get NIC GUID to replace MAC entries in llttab configuration - 6.x Win2008/Win2012 teamed NICs



Table 2 - ​Starting the Cluster Manually​

Net Start LLT
Net Start GAB
Net Start vcscomm
hastart



Table 3 - ​VCS Debug Logging

To start debugging
C:\>haconf -makerw
C:\>hatype -modify CompositeFileShare LogDbg DBG_1 DBG_2 DBG_20 DBG_21 
C:\>haconf -dump -makero 
To stop debugging
C:\>haconf -makerw
C:\> hatype -modify CompositeFileShare LogDbg -delete -keys 
C:\>haconf -dump -makero

 

Issue/Introduction

VCS for Windows "cheat sheet": a quick reference for numerous Veritas Cluster Server (VCS) commands