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

F.6.2 Setting the detector log level

You can set individual log levels for each resource detector from the command line and the RMS Wizard Tools.

Note

To enable detector logging, the RMS base monitor log level must include level 2 (detector tracing), regardless of the individual detector log level settings. By default, the base monitor log level is off, so detector logging is suppressed. See "F.4 Managing base monitor log output".

F.6.2.1 Setting the detector log level with hvutil -L

If RMS is already running, you can use the following commands to manage the detector log level:

hvutil -L display <resource>
hvutil -L <level> <resource>

The first hvutil command displays the current detector log level for the indicated resource, and the second form of the command sets the log level:

The current log level remains in effect until another 'hvutil -L' command changes the log level, 'hvutil -l off' is issued, or until RMS is shut down.

F.6.2.2 Setting the log level in the Wizard Tools

The valid range of log levels is 1 to 9, and the default value is 1. The log level can be modified from the hvw command as follows:

  1. Select the Configuration-Edit-Global-Settings menu.

  2. Choose the DetectorDetails sub-menu. The following screen is displayed.

    Figure F.1 Wizard Tools Detector Details menu

  3. Select MemoryLogLevel and change the value to the desired level. The log level applies to all detectors.

Changing the log level while running RMS

It is possible to turn debug reporting on or off dynamically from the RMS Wizard detectors by using the hvw command as follows:

  1. Select Configuration-Edit-Global-Settings.

  2. Choose the DetectorDetails sub-menu.

  3. Select the DynamicDetectorLogging menu item.

The default value is 0, which turns off debugging. Values in the range 1 to 9 turn on debugging, and higher numbers produce more information. The volume of generated log messages varies according to the detector, so a high value for one detector may produce fewer messages than a low value for another. Changes to this value do not take effect until the next time the configuration is activated.

Using hvw to turn on dynamic logging actually creates the file <RELIANT_PATH>/etc/wizardloglevel, which simply contains the desired debug level as a single-digit ASCII number. You can bypass the hvw command and create (or delete) the wizardloglevel file manually, as long as you observe the following rules:

Note

Turning on debugging should only be done when problems occur. Once the problems are resolved, debugging should be turned off to avoid filling the file system with extraneous information.