User Guide
DDOC0108-000-A2
CNS4 CSfC
11 - 8
Command Line Interface
Revision 0.0
11.2.6
cm_login
Syntax
cm_login [ -h | --help ] | [ -v | --version ]
cm_login [ -u <str> ] [ -p <str> ]
cm_login [ -m <hex> | --hmac <hex> ]
cm_login [ -o ]
Description
The cm_login command provides the user the ability to login to a user desired account. The login
process is a two-step process where you must first provide a username and password to login.
The second step would be to decrypt the user token and use that decrypted user token along with
the provided nonce to generate an HMAC-SHA256 to complete the challenge.
Options
-h, --help.............................. Help
-v, --version ......................... Show version information
-u <string>........................... Specify username
-p <string>........................... Specify password
-m, --hmac........................... MAC (message authentication code) 32 byte value represented by 64
hex characters
-o......................................... Log out current user
Example 1.
Login with username user, password Password1
Example 2.
Complete the login process by submitting the HMAC-SHA256
Example 3. Logout current user
cns>
cm_login -u user -p Password1
[cm_login]
challenge_nonce=0xf9ccab6b0838c5ab2c1d51085df7cb3a2b9d11b7f7264b39b20116085f6282
55d5c72906af864026f18a7e39e7da5afe2666b839f258a37eb90386a6493726b2
status=OK
[!cm_login]
cns>
cm_login --hmac
30fc2e0ced04edb0942b8cae01dc0692e61bfedf172404da45edbaab72fb0791
[cm_login]
challenge_hmac=0x30fc2e0ced04edb0942b8cae01dc0692e61bfedf172404da45edbaab72fb079
1
status=OK
[!cm_login]
cns>
cm_login -o
[cm_login]
status=OK
[!cm_login]