Multi-user access to NSH


Starting with version 4.3.01.04, BMC VaraLogix Q Deployment Automation supports multiple BMC Server Automation (BSA) users and roles at a time during deployments and instance creations. Now each Network Shell (NSH) is launched in their own memory. For multiple users to be able to use one NSH at a time, first reinstall the dispatcher on the dispatcher host, and then update the dispatcher scripts from the NSH pack.
Now you can also cache Bladelogic Credential Cache Files. To activate the ability to cache the Bladelogic Credential Cache Files, enter the additional variable (BL_CRED_CACHE_FOLDER) pointing to the location where you want to store such cache files. The dispacther process must have read/write access to that folder.

Note

If the dispatcher is installed on Windows machine with its standalone installer, please make sure that you have Microsoft Visual C++ Redistributable Package installed on that target machine. These libraries can be downloaded and installed from the Microsoft Official Download Site: vcredist_x64 and vcredist_x86.

To enable multi-user access to NSH

For multiple users to be able to use one NSH at a time, first reinstall the dispatcher on the dispatcher host, and then update the dispatcher scripts from the NSH pack.

To reinstall the dispatcher

(Windows)

  1. Navigate to the <RLM_HOME>\lib\dispatch\ directory.
  2. Uninstall the dispatcher, by running the dispatch_uninstall.exe file.
  3. After the uninstall process, go to the <RLM_HOME>\releases\4.3.01.04\Q\install\dispatch directory.
  4. Install the new dispatcher, by running the dispatch_setup.exe file.

(Unix)

  1. Stop the dispatcher service via the command line, by going to <RLM_4.3.01_install_directory>/bin and running the ./stopQDispatcher.sh command.
  2. Delete the following files:
    • From the <RLM_4.3.01_install_directory>/bin directory:
      • stopQDispatcher.sh
      • startQDispatcher.sh
    • From the /etc/init.d directory:
      • bmcrlmqdispatch-4.3.01
  3. Go to <RLM_HOME>\releases\4.3.01.04\Q\install\dispatch directory and run the following commands:

    • tar -zxvf dispatcher_linux.tar.gz
    • ./install-dispatcher.sh

    The new dispatcher is installed into the /usr/local/bmc/RLM directory.

Note

Now to stop and start the dispatcher services, run the following commands:

  • /etc/init.d/vldispatcher stop
  • /etc/init.d/vldispatcher start

To update the dispatcher scripts

By default, the dispatcher scripts from the NSH pack are not updated, therefore to enable multi-user NSH follow the steps below:

  1. Open BMC VaraLogix Q Deployment Automation.
  2. Under the Define tab, open Actions item in menu.
  3. Find Dispatch Fileput, Dispatch Prun, Dispatch Srun, and Dispatch Fileget scripts from the NSH pack.
  4. Edit each of these scripts by updating the first line of the script from #![.nsh]nsh to #![.nsh]nshrunner.

    Note

    If you want to use the Multi-user access to NSH during integration with the BMC Middleware Automation, update the first line of the script from #![.nsh]nsh to #![.nsh]nshrunner in the Dispatch Srun script from the BMA pack.

  5. Remove section that responds for authorization as nshrunner script will automatically take care of it
if [ -n "$BLCRED_PROFILE" ]; then
       echo y | blcred cred -acquire -profile "$BLCRED_PROFILE" -username "$BLUSER" -password "$BLPASSWORD"
       if [ -n "$BL_RBAC_ROLE" ]; then       
              chrole "$BL_RBAC_ROLE" 2>&1
       if
if

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*