hsm monitor

Query the HSM for performance monitoring statistics, such as HSM up time, command counts, and utilization. You can display the information or save it to a file.

NOTE   The hsm commands appear only when LunaCM's active slot is set to the administrative partition on a Luna PCIe HSM 7 or Luna USB HSM 7 or Luna Backup HSM. To access the HSM-level commands on Luna Network HSM 7, use LunaSH (see hsm).

Syntax

hsm monitor [-slot <slot number>] [-interval <seconds>] [-rounds <number>] [-noheader] [-file <filename>]

Argument(s) Shortcut Description
-file<filename> -f Save the output to the specified file. The output is also displayed to the terminal window.
-interval <seconds> -i

Specifies the polling interval, in seconds.

Default: 5
Range: 5 to 999

-noheader -n Omit the header and footer from the output. This option is typically used in conjunction with the -file parameter.
-rounds <number> -r

Specifies the number of samples to collect during the HSM polling. The default is a single round, which includes a first sample at the time the command is launched, followed by the interval (either the default 5 seconds, or the interval that you specified), followed by a second sample which is compared with the first, to complete the round.

The command exits after the specified number of rounds are displayed.

Default: 1
Range: 1 to 65535

-slot -s The target slot.

Example

Without arguments

lunacm:>hsm monitor

-------------------|---------------------------------|---------------------------------
                   |       HSM Command Counts        |        HSM Utilization (%)
 HSM Uptime (Secs) |-----------------|---------------|-----------------|---------------
                   | Since HSM Reset | Last   5 Secs | Since HSM Reset | Last   5 Secs
-------------------|-----------------|---------------|-----------------|---------------
            97,856 |       1,543,834 |             1 |            1.36 |          0.01
-------------------|-----------------|---------------|-----------------|---------------

    Average HSM Utilization In This Period  :  0.21%

    HSM Last Reset       :  Tue Feb 21 10:53:44 2017
    HSM Has Been Up For  :  1 day(s), 03:10:56


Command Result : 0 (Success)

With arguments

lunacm:>hsm monitor -interval 6 -rounds 6

-------------------|---------------------------------|---------------------------------
                   |       HSM Command Counts        |        HSM Utilization (%)
 HSM Uptime (Secs) |-----------------|---------------|-----------------|---------------
                   | Since HSM Reset | Last   6 Secs | Since HSM Reset | Last   6 Secs
-------------------|-----------------|---------------|-----------------|---------------
            98,048 |       1,546,866 |             1 |            1.36 |          0.07
            98,054 |       1,547,119 |           253 |            1.36 |          3.58
            98,060 |       1,547,120 |             1 |            1.36 |          0.01
            98,066 |       1,547,121 |             1 |            1.36 |          0.00
            98,072 |       1,547,374 |           253 |            1.36 |          3.58
            98,078 |       1,547,375 |             1 |            1.36 |          0.00
-------------------|-----------------|---------------|-----------------|---------------

    Average HSM Utilization In This Period  :  1.21%

    HSM Last Reset       :  Tue Feb 21 10:53:44 2017
    HSM Has Been Up For  :  1 day(s), 03:14:38

Command Result : No Error