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.
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)
- Navigate to the <RLM_HOME>\lib\dispatch\ directory.
- Uninstall the dispatcher, by running the dispatch_uninstall.exe file.
- After the uninstall process, go to the <RLM_HOME>\releases\4.3.01.04\Q\install\dispatch directory.
- Install the new dispatcher, by running the dispatch_setup.exe file.
(Unix)
- Stop the dispatcher service via the command line, by going to <RLM_4.3.01_install_directory>/bin and running the ./stopQDispatcher.sh command.
- 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
- From the <RLM_4.3.01_install_directory>/bin directory:
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.
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:
- Open BMC VaraLogix Q Deployment Automation.
- Under the Define tab, open Actions item in menu.
- Find Dispatch Fileput, Dispatch Prun, Dispatch Srun, and Dispatch Fileget scripts from the NSH pack.
Edit each of these scripts by updating the first line of the script from #![.nsh]nsh to #![.nsh]nshrunner.
- Remove section that responds for authorization as nshrunner script will automatically take care of it
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