Important

   

Starting version 8.9.03, BMC Server Automation is renamed to TrueSight Server Automation. This space contains information about BMC Server Automation 8.9.02 and previous versions. For TrueSight Server Automation 8.9.03 and later releases, see TrueSight Server Automation 8.9.

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.

Note

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

  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:
    COMPONENT_CHECKED=3
    export COMPONENT_CHECKED
    NSH_INSTALL_SKEL=1
    export NSH_INSTALL_SKEL

    Note

    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:

    Variable

    Explanation

    INSTALL_DIR

    Specifies an installation directory other than the default installation directory of /opt/bmc/bladelogic.

    COMPONENT_CHECKED

    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

    IS_SECURE_AGENT_LOGS

    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.

    IS_KEYSTROKE_LOGS

    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.

    INSTALL_BLPRNG

    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.

    NSH_ROOT_HOST

    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.

    NSH_USER_FROM NSH_USER_TO

    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.

    NSH_INSTALL_SKEL

    By default a silent installation does not include the .nsh/etc/skel files. Set this variable to 1 to install those files.

    TMP_DIR

    (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 NSH86-SOL10-SPARC.sh -silent

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

Comments