Documentation Version: er2.0.28-docs-1.1

Solaris Agent

Install THE NODE agent

  1. On your Web Console, go to DOWNLOADS > NODE AGENT DOWNLOADS.
  2. On the Node Agent Downloads page, click on the Filename for your Platform.

In the terminal:

  1. If there is a previous version of the Node Agent installed, remove it first: # Checks if Node Agent is currently installed pkginfo | grep er2 # Removes the installed agent, <pkgid> pkgrm er2
  2. Install the Node Agent:
  3. # Where './er2-2.0.25-solaris10-sparc.pkg' is the full path of the installation package
    # Syntax: pkgadd -d <path_to_package.pkg> <pkgid>
    pkgadd -d ./er2-2.0.xx-solaris10-sparc.pkg er2
From ER2 2.0.21, you can install the Node Agent RPM package in a custom location. See Install RPM in Custom Location below.

Configure the Node Agent

After you have installed the Node Agent, configure the Node Agent to:

  1. Point to the Master Server.
  2. (Optional) Use the Master Public Key (see Server Information) when connecting to the Master Server.
  3. (Optional) Specify Target initial group.
  4. Test the connection settings.

To configure the Node Agent, choose either mode:

For the changes to take effect, you must restart the Node Agent.


Running this command helps you to quickly configure the Node Agent:

er2-config -interactive

The interactive mode asks you for the following information to help you configure the Node Agent.

Pressing ENTER while configuring the Node Agent with the interactive mode configures the Node Agent to use the last saved value for that parameter. If there is no last saved value, an empty or default value is used. This may cause the Node Agent to fail to locate the Master Server.
Interactive Mode Command Prompts Description

Master server host name or IP Address []

Specify a Master Server's host name or IP address.

(Optional) Master server public key

Enter the Master Public Key. See Install Node Agents.

(Optional) Target initial group

Specify Target initial group.

Test connection settings (Y/n)

Test the Node Agent's connection settings to the Master Server, enter Y.

For the changes to take effect, you must restart the Node Agent.


To configure the Node Agent without interactive mode, run:

## Required for connecting to the Master Server
# -i <hostname|ip_address>: Master Server IP address or host name.
## Optional parameters
# -t: Tests if the Node Agent can connect to the given host name or IP address.
# -k <master_public_key>: Sets the Master Public Key.
# -g <target_group>: Sets the default Target Group for scan locations added for this Agent.

er2-config -i <hostname|ip_address> [-t] [-k <master_public_key>] [-g <target_group>]

For the changes to take effect, you must restart the Node Agent.

Upgrade Node Agents

See Agent Upgrade for more information.

Install PACKAGE in Custom Location

To install the Node Agent package in a custom location:

  1. Download the Node Agent from the Master Server. The Master Server must be version 2.0.21 and above.
  2. Install the package in a custom location:
    ## Install the NODE AGENT package into the `/opt/er2` directory.
    # Install the package with the following command:

    pkgadd -a none -d ./er2-2.0.21-solaris10-sparc.pkg er2

    # Specify the installation directory when prompted.
  3. Configure the package:
    ## Configure the NODE AGENT package.
    # Run 'er2-config' binary from the custom install location, i.e. '<custom_location>/usr/sbin/er2-config'
    # Specify the location of the configuration file. The location of the configuration file is '<custom_location>/var/lib/er2/agent.cfg'

    /opt/er2/usr/sbin/er2-config -c /opt/er2/var/lib/er2/agent.cfg -interactive
  4. Restart the Node Agent.

Restart the Node Agent

For your configuration settings to take effect, you must restart the Node Agent:

# Option 1
/etc/init.d/er2-agent restart

# Option 2
er2-agent -stop # stops the Agent
er2-agent -start # starts the Agent