This space contains documentation for TrueSight Server Automation 8.9.03 and the later service packs for 8.9. For earlier releases, see BMC Server Automation 8.9.

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.)

Related topics

For the alternative option of running BLCLI commands through the Jython Line Interface (JLI), see the following topics:

Jython and the JLI
Instantiating and executing the JLI

  1. Open a command prompt and start NSH by typing nsh.

    The prompt changes to your NSH prompt.
  2. Assuming that you have set up authentication, (see Setting up 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 BLAdmins
  3. Populate the credentials cache.

    MY_NSH_PROMPT% blcred cred -acquire -profile myServiceProfile -username testUser
    -password testPassword
    Authentication succeeded: acquired session credential
  4. Connect to the Application Server.
    MY_NSH_PROMPT% blcli_connect

Now you can run any BLCLI commands that you want to run.

Was this page helpful? Yes No Submitting... Thank you