hacli - invokes any command on any system in a VCS cluster
hacli -cmd command [-sys system(s) | -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. The cluster attribute HacliUserLevel has the following case-sensitive values:
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.
NONE - hacli is disabled for all users regardless of category (default). COMMANDROOT - hacli is enabled for root only.
-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 or the option -server. 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 single or double quotes if command includes any embedded whitespace, or shell metacharacters, or options. See EXAMPLES. -help 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
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: No one logged on mars:
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"
jupiter: Templates conf snmp mars:
Templates conf snmp
Copyright (c) 2016 Veritas.
All rights reserved.