Using silent mode to install the Network Shell (Linux and UNIX)
You can perform an unattended (silent) installation or upgrade of the Network Shell on a Linux or UNIX computer.
- To use the BLCLI or the
blcredutility, you must install the BMC Server Automation Console. For information, see Using silent mode to install the BMC Server Automation Console (Linux and UNIX).
- If you want to run Network Shell so that it communicates with a Network Shell Proxy Server and uses BMC Server Automation's single sign-on capabilities, then you need to install the Application Server along with Network Shell. See Using silent mode to install BMC Server Automation components (Linux or UNIX).
Before you begin
- Linux platforms on which you plan to install the Network Shell must have the libtermcap.so.2 shared library installed. Install the shared library before installing the Network Shell. For more information, see Requirement for installing the Application Server, BMC Server Automation Console, or Network Shell on Linux.
- To use silent mode for an installation, you create a file of installation defaults (variables that control how a silent installation on Linux or UNIX behaves). Then you run the NSH installation program. You can use the same file of installation defaults to upgrade the Network Shell.
To install the Network Shell in silent mode
- Using any server, create a text file named nsh-install-defaults in the /tmp directory. The file must belong to root.
In the file, create an entry for each variable you want to set. Then for each variable you enter in the file, create another entry to export the variable. For example:
Ensure that the file is in UNIX format (a format in which a line feed, not a carriage return, specifies the end of a line). Otherwise, installation fails.
The following table describes how to set each possible variable:
Specifies an installation directory other than the default installation directory of /opt/bmc/bladelogic.
By default, running a silent installation installs all possible components in the installation. To override the default, set the
COMPONENT_CHECKEDvariable. The values have the following meanings:
1— RSCD agent
3— Network Shell. For example, to install both the RSCD agent and the Network Shell, specify:
Set this variable to
1to enable secure agent logging. When secure agent logging is enabled for an agent, agent logs are periodically rolled and digitally signed as they are rolled.
Set this variable to
1to enable keystroke (nexec) logging on an agent. When keystroke logging is enabled on an agent, remote commands run against the agent using nexec are captured and logged in an encrypted manner in keystroke logs. These logs are periodically rolled and digitally signed as they are rolled.
Set this variable to
1to install the BladeLogic Pseudo Random Number Generator Daemon (PRNGD). BMC Server Automation uses random data to encrypt communication securely. Most systems already have a random number generator device; you might not need this setting. However, if a server on which you are performing a silent installation does not include a hardware device for generating random numbers, the installation program installs the PRNGD.
Set this value to identify a client on which users are granted root privileges for this server. This option sets the
root=flag in the exports configuration file. By default no clients are specified.
Set these values to configure a default user mapping in the users.local file. By default no users are mapped. The values set with this variable create an entry in the users.local file that says:
NSH_USER_FROM rw,map=NSH_USER_TO.For example, by defining values for these variables, you could create an entry in users.local similar to the following example:
betty rw,map=root. For information about the users.local file, see Configuring the users or users.local files.
By default a silent installation does not include the .nsh/etc/skel files. Set this variable to
1to install those files.
(For use with installation of the RSCD agent component.) Specifies a location where the installer should uncompress the sysinfo installation file before the file copy.
- Save /tmp/nsh-install-defaults.
- To run the installer, enter the following command:
sh <NSHversion-platform> -silent
sh NSH86-SOL10-SPARC.sh -silent