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.


Before you begin

  • Linux platforms on which you plan to install the Network Shell must have the 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

  1. Using any server, create a text file named nsh-install-defaults in the /tmp directory. The file must belong to root.
  2. 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_CHECKED variable. 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: COMPONENT_CHECKED=13


    Set this variable to 1 to 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 1 to 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 1 to 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 1 to 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.

  3. Save /tmp/nsh-install-defaults.
  4. To run the installer, enter the following command:
    sh <NSHversion-platform> -silent
    For example:
    sh -silent

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