This topic explains the use of Error2String for interpreting hexadecimal error codes in HSM.
Feature description
Error2String interprets hexadecimal error codes that result from command execution, aiding in the diagnosis of command and script faults.
Ensure you have initiated the key_mgmt_tool and logged on to HSM with CU identity before executing this command.
Syntax
Enter parameters as per the following syntax. For details on parameters, refer to parameters.
Error2String -r <response-code>
Parameters must be entered in the sequence outlined in the syntax.
Example
The example below demonstrates how to interpret the error code 0xdb, which indicates a login failure due to an invalid user type.
Command: Error2String -r 0xdb
Error Code db maps to HSM Error: Invalid User Type.
Parameters
Parameter name | Description | Required | Valid values |
-r | Specifies the hexadecimal error code, 0x hexadecimal identifier. | Yes | No Special Requirements |