Upgrading NSH and the RSCD agent using the Solaris SVR4 package installer


You can upgrade the Network Shell (NSH) and the RSCD agent using the Oracle Solaris SVR4 package installer. It can also be used to upgrade existing shell-based installations of the Network Shell (NSH) and the RSCD agent.

An upgrade of NSH upgrades both the RSCD agent and the Network Shell. An upgrade of the RSCD agent upgrades only the agent. To upgrade, use the same Solaris SVR4 package installer type (NSH or RSCD agent) that you used for installation.

By default, TrueSight Server Automation installation provides supported package installers in these directories:

  • Network Shell installers: /opt/bmc/bladelogic/NSH
  • RSCD agent installers: /opt/bmc/bladelogic/RSCD

You can upgrade using the Solaris SVR4 package installer interactively or by performing an unattended (silent) upgrade.

To get a list of packages to use for the upgrade

From the command line, enter either of the following commands:

pkginfo | grep BLOG

pkginfo | grep BladeLogic

To perform an upgrade interactively

Run the following command with root privileges:
pkgadd -d <packageInstallerName>

Example

NSH upgrade:
pkgadd -d NSH821-SOL8-SPARC-LOCAL

RSCD agent upgrade:
pkgadd -d RSCD821-SOL8-SPARC-LOCAL

Note

When the upgrade finishes, a background script runs to clean up the previous installation. The console displays information messages. These are part of normal operation.

To perform a silent upgrade:

  1. Copy the installation program file to the server on which you plan to upgrade NSH or the RSCD agent. Put the file in the /tmp directory.
  2. Using a text editor, create a file to use for the silent (unattended) upgrade, for example: SVR4silent.txt. In the file, enter the following values:

    mail=
    instance=overwrite
    partial=nocheck
    runlevel=nocheck
    idepend=nocheck
    rdepend=nocheck
    space=nocheck
    setuid=nocheck
    conflict=nocheck
    action=nocheck
    basedir=default

    Note

    If the RSCD agent or NSH was originally installed in a non-default location, to preserve that location set basedir to the non-default location. For example, if the agent was installed in /apps/bmc/BladeLogic, change basedir=default in the admin file to the following:

    basedir=/apps/bmc/BladeLogic
  3. Save the file to a directory of your choice. For example: /tmp
  4. To upgrade NSH or the RSCD agent, run the following command:
    echo y | pkgadd -a <pathToSilentFile> -d /tmp/<packageInstallerName> <packageName>
    where:
    • <pathToSilentFile> is the path to the admin file that you created.
    • <packageInstallerName> is the location of the SVR4 installer
    • <packageName> is the name of the package from the results of the pkginfo | grep BLOG or the pkginfo | grep BladeLogic command.
Example

NSH upgrade:
echo y | pkgadd -a /tmp/SVR4silent.txt -d /tmp/NSH821-SOL10-SPARC-LOCAL BLOGnsh

RSCD agent upgrade
echo y | pkgadd -a /tmp/SVR4silent.txt -d /tmp/RSCD821-SOL10-SPARC-LOCAL BLOGrscd

Note

When the upgrade finishes, a background script runs to clean up the previous installation. The console displays information messages. These are part of normal operation.

 

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