Top
PRIMECLUSTER  Reliant Monitor Services (RMS) with Wizard Tools Configuration and Administration Guide 4.6
FUJITSU Software

1.6.4 RMS CLI

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.

    Table 1.1 Available CLI commands

    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.

    The base monitor is the decision-making module of RMS. It controls the configuration and access to all RMS resources. If a resource fails, the base monitor analyzes the failure and initiates the appropriate action according to the specifications for the resource in the configuration file.

    hvconfig

    Either displays the current RMS configuration or sends the current configuration to an output file.

    The output of the hvconfig command is equivalent to the running RMS configuration file, but does not include any comments that are in the original file. Also, the order in which the resources are listed in the output might vary from the actual configuration 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:

    • HV_RCSTART controls the automatic startup of RMS.

    • HV_AUTOSTARTUP controls the automatic startup of all applications.

    Changes made by this command apply only to the command execution node.
    For more information about these environment variables, see "Appendix E Environment variables".

    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:

    • Dynamically setting logging levels

    • Sending the userApplication Offline

    • Sending the gResource Offline

    • Clearing faulted resources

    • Stopping cluster nodes in the Wait state

    • Setting detector time periods

    • Setting Maintenance Mode, and so forth

  • 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.