Setting up to run BLCLI commands in an NSH shell
For quick reference, this topic provides an authentication and connection sequence that you can use at the start of an NSH shell session. Substitute appropriate values for your environment (service profile name, user name, password, and so forth.)
- Open a command prompt and start NSH by typing nsh.
C:\some_directory>nsh
The prompt changes to your NSH prompt.
MY_NSH_PROMPT% Assuming that you have set up authentication, (see Authentication), use the blcli_setoption command to specify the service profile and role you want to use.
MY_NSH_PROMPT% blcli_setoption serviceProfileName myServiceProfile
MY_NSH_PROMPT% blcli_setoption roleName BLAdminsPopulate the credentials cache.
MY_NSH_PROMPT% blcred cred -acquire -profile myServiceProfile -username testUser
-password testPassword
Authentication succeeded: acquired session credential- Connect to the Application Server.
MY_NSH_PROMPT% blcli_connect
Now you can run any BLCLI commands that you want to run.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*