Home > Veritas Cluster Server Manual Pages

HACLI (1M)

Maintenance Commands

Table of contents


NAME

hacli - invokes any command on any system in a VCS cluster

SYNOPSIS

hacli -cmd command [-sys | -server system(s)]

hacli -help


AVAILABILITY

VRTSvcs

DESCRIPTION

The hacli command can be used to issue commands from one system in the cluster to another system. VCS must be running on the systems. The use of the hacli command requires setting HacliUserLevel to at least COMMANDROOT, which allows only root users to use hacli. By default, the HacliUserLevel setting is NONE. If the users do not want the root user on system A to enjoy root privileges on another system B, HacliUserLevel should remain set to NONE (the default) on system B. If HacliUserLevel is set to CLUSTERADMIN, hacli can be used by users with Cluster Administration privileges. The cluster attribute HacliUserLevel attribute has three, case-sensitive values:
NONE - hacli is disabled for all users regardless of category (default). COMMANDROOT - hacli is enabled for root only. CLUSTERADMIN - hacli is enabled for Cluster Administrator and root.
The command, haclus - modify HacliUserLevel, can be executed by root only. Refer to the VCS user documentation for additional information about using the HacliUserLevel attribute. Use the hacli command judiciously. Do not use hacli to invoke a command on a remote system that requires a user response or input; the process can hang and consume resources.

OPTIONS

-cmd command [-sys | -server system(s)]
Issues a command to be executed on the specified system(s). Multiple systems separated by a single space may be specified as arguments to the option -sys. If no system is specified, command runs on all systems in cluster with VCS in a RUNNING state. The command argument must be entered within double quotes if command includes any delimiters or options. See EXAMPLES.
-help
Displays the hacli usage list.

EXAMPLES

hacli -cmd finger -sys jupiter
Displays the output of the finger command on the system jupiter. For example:
mars# hacli -cmd "/usr/bin/finger" -sys jupiter jupiter: Command is finger 2\>&1 jupiter: No one logged on
hacli -cmd finger
Displays the output of the finger command on all systems in cluster. For example:
mars# hacli -cmd finger jupiter: Command is finger 2\>&1 jupiter: No one logged on mars: Command is finger 2\>&1 Login Name TTY Idle When Where kroot Super-User pts/1 22: Tue 14:57 fubar.xyz.com kroot Super-User pts/2 22: Wed 11:58
hacli -cmd "ls /etc/VRTSvcs"
Displays the output of the ls command on all systems in cluster. For example:
mars# hacli -cmd "ls /etc/VRTSvcs" Command is finger 2\>&1 jupiter: Command is finger 2\>&1 jupiter: Templates conf snmp mars: Command is finger 2\>&1 Templates conf snmp

Last updated: April 2006
Copyright ©2009 Symantec Corporation
All rights reserved.