hacli\ - invokes any command on any system in a VCS cluster
hacli -cmd command [-sys | -server system(s)]
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.
-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.
Displays the hacli usage list.
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
Displays the output of the finger command on all systems in cluster. For example:
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
Displays the output of the ls command on all systems in cluster. For example:
mars# hacli -cmd "ls /etc/VRTSvcs"