Encrypting values
You can use the BMC Server Automation blenc encryption utility to encrypt values you set by using the CLI. The syntax is:
blenc <value>
where <value> is the value you want to encrypt.
Sample usage:
KEY=`blcli Server getServerDBKeyByName server1`
VAL=`blenc "property_value" | grep ^BLencrypt: | cut -f2 -d: | tr-d '[:cntrl:]' `
blcli Server setPropertyValue $KEY TEST_ENC_PROP $VAL
The blenc utility returns descriptive output (Encoded value: and BLencrypt:) along with the encoded value:
myNSHPrompt% blenc hello
Encoded value:
BLencrypt:NAZKKTOVBMTOVVQETTNVLXNPPETKAUUXALVOOONLVBLLWLALZKOKUAAZKOOBONBW
The sample usage in this topic removes the descriptive output, leaving just the encoded value.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*