The primary interface for configuring RMS is the RMS Wizard Tools, and the primary interface for administering RMS is the Cluster Admin GUI. Both the RMS Wizard Tools and Cluster Admin call the RMS CLI. For example, use the following CLI command to manually switch the userApplication object to another node (SysNode) in the cluster.
# hvswitch userApplication SysNode
The following table lists the RMS CLI commands available to administrators. For a complete description of any command's usage, see its online man page. For a list of all commands related to RMS, see "Appendix B Manual Pages" in "PRIMECLUSTER Installation and Administration Guide."
Note
With few exceptions, RMS CLI commands require root privilege. The exceptions are noted in the following table.
Command | Function |
---|---|
hvassert | Tests an RMS resource for a specified resource state. It can be used in scripts when a resource must achieve a specified state before the script can issue the next command. Does not require root privilege. |
hvcm | Starts the base monitor and the detectors for all monitored resources. In most cases, it is not necessary to specify options to the hvcm command. |
hvconfig | Either displays the current RMS configuration or sends the current configuration to an output file. |
hvdisp | Displays information about the current configuration for RMS resources. Does not require root privilege. |
hvdispall | Displays the resource information of all the nodes in RMS. |
hvdump | Gets debugging information about RMS on the local node. |
hvlogclean | Either saves old log files into a subdirectory whose name is the time RMS was last started, or, if invoked with the -d option, deletes old log files. In either case, hvlogclean creates a clean set of log files even while RMS is running. |
hvsetenv | Provides an interface for changing the following RMS environment variables on the local node:
Changes made by this command apply only to the command execution node. |
hvshut | Shuts down RMS on one node or all the nodes in the configuration. The base monitor on the local node sends a message to other online nodes indicating which node or nodes will be shut down. |
hvswitch | Manually switches control of a userApplication or a gResource between SysNodes in the RMS configuration. |
hvutil | Provides general administration interface to RMS. This command performs the following management operations:
|
Excluding some commands (such as hvshut), hv_* commands of RMS only send requests to the base monitor then return immediately. They do not wait for the requests to be processed. The status code 0 (success) at the end of command execution means that the requests have been successfully sent to the base monitor. However, this does not secure that the requests have been processed successfully.