hsm time get

Display the current HSM time, the current host time, and the difference between the two, in a block called System Times.

Once hsm time sync has been executed, the System Times information also appears in the command output for:

>lunash:> hsm show

>lunacm:> partition showinfo

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). The hsm time commands are available for HSMs with Luna Appliance Software 7.8.0 or newer and Luna HSM Firmware 7.8.0 or newer.

This command returns an error (LUNA_RET_TIME_NOT_INITIALIZED) until lunash:> hsm time sync has been executed for the first time.

The HSM SO is not required to be logged in, to run this command.

Syntax

hsm time get

Example

lunacm:>hsm time get

System Times:
HSM  :   Mon May 16 15:26:12 UTC 2022
Host :   Mon May 16 15:22:53 UTC 2022
Difference:  199 sec

Command Result : 0 (Success)