By default, base monitor logging is not running when RMS starts up. You can set the initial log level by specifying hvcm with the -l option:
hvcm -l <level> -c <configuration_file> ...
Is RMS is already running, you can use the following commands to manage the base monitor log level:
hvutil -l display
hvutil -l off
hvutil -l <level>
The first hvutil command displays the current base monitor log level setting, and the second hvutil command turns off base monitor logging.
Specifying '-l <level>' with hvcm or hvutil activates base monitor logging, where <level> is one or more numbers in one of the following formats:
A single number.
A comma-delimited or space-delimited list. If the list is space-delimited, enclose the list in quotes.
Examples: 2,4,5,7 "2 4 5 7"
A single hyphen-separated range in the form n1-n2. This includes all log levels from n1 up to and including n2. Specifying -n2 is the same as 1-n2, and specifying n1- includes all log levels above n1. The n1 value must be greater than or equal to 1.
Examples: 2-7 -7 2-
Note
Specifying a log level of 0 (zero) activates all log levels. You must specify the special level off to deactivate logging.
If RMS is being operated continuously for one day or more days when the base monitor logging is activated, to avoid the RMS logs taking up the disk space, configure the cron job setting to execute the hvlogclean command once a day. According to the setting, the log files are saved for each day. The older log files beyond the days specified by RELIANT_LOG_LIFE are deleted automatically. For details on the hvlogclean command, see the section "F.8.1 hvlogclean".
The current log level remains in effect until another 'hvutil -l <level>' is issued, a 'hvutil -l off' is issued, or until RMS is shut down.
Table 11 lists the valid base monitor log levels.
Log Level | Meaning |
---|---|
0 | Turn on all log levels |
1 | Unused |
2 | Turn on detector tracing |
3 | hvdisp level |
4 | Turn on mskx tracing (stack tracing of the base monitor) |
5 | Error or warning message |
6 | Heartbeats and communication |
7 | Base monitor level |
8 | Generic controller message |
9 | Administrative command message |
10 | Basic-type level |
11 | Dynamic reconfiguration contracting level |
12 | Shutdown debug level |
13 | Token level |
14 | Detector message |
15 | Local queue level |
16 | Local queue level |
17 | Script level |
18 | userApplication contract level |
19 | Temporary debug traces |
20 | SysNode traces |
21 | Message level |
22 | bm tracelog |
23 | Unused |