Retrieves the attributes of a key from the Hardware Security Module (HSM), including its type, class, tag, ID, and permitted operations such as encryption, decryption, wrapping, signing, and authentication.
Important
Before running this command, start hsm_mgmt_tool, log on to the HSM, and verify that your user type has permission to run the command.
User types
The following user types can run this command. For more information, see HSM user permission table.
Administrator (CO)
Syntax
getAttribute <key handle> <attribute id> [<output file>]Important
Enter parameters in the order shown in the syntax.
Parameters
| Parameter | Description | Required |
|---|---|---|
<key handle> | The key handle. | Yes |
<attribute id> | The constant of the key attribute. For a list of attribute constants, run the listAttributes command. For descriptions of attribute constants, see Key attribute constants. | Yes |
[<output file>] | The file name to save the output. | No |
Example
The following example retrieves the OBJ_ATTR_EXTRACTABLE attribute (whether the key is exportable) for the key with handle 6.
cloudmgmt>getAttribute 6 354
Attribute Value on server 0(172.16.0.2):
OBJ_ATTR_EXTRACTABLE
0x00000001