You are on page 1of 3

VERITAS Cluster Server Command Line Reference

VERITAS Cluster Server for Windows NT

VERITAS Cluster Server Command Line Reference


Start VCS > hastart (-force) (-stale) >hasys -force [system_name]

(in Unix Only ) ( in Windows NT)

-force will force VCS to use the local configuration.

Stop VCS > hastop -local [-force | -evacuate] > hastop -sys system_name [-force | -evacuate] > hastop -all -force Change VCS Configuration Online > haconf makerw > haconf dump makero Get Current Cluster Status > hastatus -summary or -sum Add and Delete Users > hauser -add [user_name] > hauser -add [VCSGuest] > hauser -update [user_name] > hauser -delete [user_name] > hauser -display [user_name] System Operations > hasys -list > hasys -display [system_name] > hasys -add [system_name] > hasys -delete [system_name] Resource Types > hatype -list > hatype -display [type_name] > hatype -resources [type_name] > hatype -add [resource_type] > hatype -modify [resource_type] > hatype -delete [resource_type] Resource Operations > hares -list > hares -dep [resource_name] > hares -display [resource_name] > hares -add [resource_name] [resource_type] [service_group] > hares -modify [resource_name] [attribute_name] [value] > hares -delete [resource_name] > hares -online [resource_name] -sys [system_name] > hares -offline [resource_name] -sys [system_name]

-local stops HAD on the system where you type the command. -sys stops HAD on the system you specify. -all stops HAD on all systems in the cluster.

Makes VCS configuration Read/Write. Dumps VCS configuration to Main.cf and makes Read-Only.

Summarizes the status of the cluster.

Adds a user with read/write access. Adds a user with read-only access. Modifies a users password. Deletes a user. Displays all users if username is not specified.

List systems in the cluster. Get detailed information about each system. Add a system. Not recommended - Use the installer. Delete a system. Note recommended - Use Add/Remove programs.

List resource types. Get detailed information about a resource type. List all resources of a particular type. Add a resource type. Set the value of static attributes. Delete a resource type.

List all resources List a resources dependencies. Get detailed information about a resource. Add a resource. Modify the attributes of the new resource. Delete a resource. Online a resource. Offline a resource.

VERITAS Cluster Server Command Line Reference


> hares -probe [resource_name] -sys [system_name] > hares -clear [resource_name] -sys [system_name] > hares local [resource_name] [attribute_name] [value] > hares global [resource_name] [attribute_name] [value] > hares -link [parent_res] [child_res] > hares -unlink [parent_res] [child_res] Service Group Operations > hagrp -list > hagrp -resources [service_group] > hargrp -dep [service_group] > hagrp -display [service_group] > hagrp -online [service_group] sys [system_name] > hagrp -offline [service_group] -sys [system_name] > hagrp switch [service_group] -to [to_system] > hagrp -freeze [service_group] -persistent > hagrp -unfreeze [service_group] -persistent > hagrp -enable [service_group] -sys [system_name] > hagrp -disable [service_group] -sys [system_name] > hagrp -enableresources [service_group] > hagrp -disableresources [service_group] > hagrp -link [parent_group] [child_group] [relationship] > hagrp -unlink [parent_group] [child_group] TroubleShooting > lltstat -n > lltstat -v > gabconfig -a Cluster Operations > haclus -display > haclus -enable LinkMonitoring > haclus -disable LinkMonitoring Cause a resources agent to immediately monitor the resource on a particular system. Clear a faulted resource. Make a resources attribute value local. Make a resources attribute value global. Specify a dependency between two resources. Remove the dependency relationship between two resources.

List all service groups. List a service groups resources. List a service groups dependencies. Get detailed information about a service group. Start a service group and bring its resources online. Stop a service group and take its resources offline. Switch a service group from one system to another. (failover groups only) Freeze a service group (disable on lining and off lining). Unfreeze a service group (re-enable on lining and off lining). Enable a service group. Disable a service group. Enable all resources in a service group. Disable all resources in a service group. Specify the dependency relationship between two service groups. Remove the dependency between two service groups.

List nodes and LLT heartbeat link information. List nodes and detailed LLT heartbeat information. List GAB heartbeat information within the cluster.

Displays cluster information and status. Enables heartbeat link monitoring in the GUI. Disables heartbeat link monitoring in the GUI.

You might also like