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:

>lunacm:> hsm showinfo

>lunacm:> partition showinfo

NOTE   The hsm commands appear only when LunaCM's active slot is set to the administrative partition. The hsm time commands are available for HSMs with Luna HSM Firmware 7.8.0 or newer and Luna HSM Client 10.3.0 or newer.

This command returns an error (LUNA_RET_TIME_NOT_INITIALIZED) until lunacm:> 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)