Sun Management Center 3.5 Installation and Configuration Guide

Configuring Server and Agent on Multi-IP Machines

This section describes how to configure the Sun Management Center 3.5 server and agent on multi-IP machines.

Server Configuration

When installed on a system with multiple IP interfaces, the Sun Management Center 3.5 server is configured, by default, to support all agents on all of the IP interfaces.

The esmultiip command enables you to list, remove, or add an IP interface. The syntax of the esmultiip command is as follows:

esmultiip [-lh] | [ < -a | -d > Host-IP ]

The following table describes the esmultiip command parameters.

Table 6–3 esmultiip options

Option 

Modifying Options 

Definition 

 

 

Enable the multi-IP feature on the Sun Management Center server if more than one IP interface is present. 

-h

 

List the options for esmultiip

-l

 

List all of the active IP interfaces of the Sun Management Center server 

-a

Host-IP

Add the host name corresponding to the IP address Host-IP to the list of active server IP interfaces

-d

Host_IP

Remove the host name corresponding to the IP address Host-IP from the list of active server IP interfaces


Note –

The following procedures assume that the Sun Management Center server has been installed on the multi-IP machine in the directory /opt. If you installed the agent in a different directory, replace /opt with the name of the directory that you specified Installing Sun Management Center 3.5 on the Solaris Platform, Step 8.


To Add an IP Interface to the Sun Management Center Server
  1. Log in as root on the server multi-IP machine.

  2. List the current Sun Management Center active IP interfaces.

    Type the command /opt/SUNWsymon/sbin/esmultiip -l. For example:


    # /opt/SUNWsymon/sbin/esmultiip -l
    Multi IP configured with active interfaces "10.1.2.111"
  3. List all IP interfaces on the machine.

    Type the command ifconfig -a. For example:


    # ifconfig -a
    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000 
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
            inet 10.1.2.111 netmask ffffff00 broadcast 10.1.2.255
            ether 8:0:20:a8:7a:c9 
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
            inet 129.1.2.222 netmask ffffff00 broadcast 129.199.199.255
            ether 8:0:20:a8:7a:c9 

    As shown by the above examples, only IP interface hme0 at IP address 10.1.2.111 is being used by the Sun Management Center server.

  4. Add an IP interface.

    Assume that you want to add the IP interface hme1 at IP address 129.1.2.222. You would then type the command /opt/SUNWsymon/sbin/esmultiip -a 129.1.2.222.

    The IP interface is added to the list of active Sun Management Center server interfaces.

To Remove an IP Interface From the Sun Management Center Server
  1. Log in as root on the server multi-IP machine.

  2. List the current Sun Management Center active IP interfaces.

    Type the command /opt/SUNWsymon/sbin/esmultiip -l. For example:


    # /opt/SUNWsymon/sbin/esmultiip -l
    Multi IP configured with active interfaces "10.1.2.111 129.1.2.222"
  3. Remove an IP interface.

    Assume that you want to remove the IP interface hme1 at IP address 129.1.2.222. You would then type the command /opt/SUNWsymon/sbin/esmultiip -d 129.1.2.222.

    The IP interface is removed from the list of active Sun Management Center server interfaces.

Agent Configuration

If the Sun Management Center 3.5 agent is configured to use one IP interface on a multi-IP machine, and another IP interface is configured for use by the server, then the Sun Management Center agent on the multi-IP machine cannot communicate with the Sun Management Center server.

The agent must be reconfigured to use the same IP interface as the server


Note –

The following procedure assumes that only the Sun Management Center agent has been installed on the multi-IP machine in the directory /opt. If you installed the agent in a different directory, replace /opt with the name of the directory that you specified in Installing Sun Management Center 3.5 on the Solaris Platform, Step 8.


To Configure the Sun Management Center Agent on a Multi-IP Machine
  1. Log in as root on the multi-IP agent machine.

  2. Determine which IP address the agent is using.

    Type the command uname -n to display the machine name.


    # uname -n
    u60-01

    The agent is configured to run on the IP address corresponding to the machine name reported by uname -n. In this example, the agent is configured to run on the IP interface assigned to machine name u60–01.

  3. Determine the IP interface addresses.

    Type the command cat /etc/hosts to display the machine name assigned to each IP interface.

    For example:


    # uname -n
    SunOS u60-01-ip2 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-60
    # cat /etc/hosts
    127.0.0.1       localhost
    10.1.2.111      u60-01      loghost
    10.2.3.222      u60-01-ip2

    In the above examples, uname-n showed u60–01, and u60–01 is assigned to the IP interface 10.1.2.111.

    If you want to configure the Sun Management Center agent to run on a different IP interface, reassign the agent to use the desired IP interface as described in the following steps.

  4. Stop the agent if it is running.

    Type the command /opt/SUNWsymon/sbin/es-stop -A.

    All Sun Management Center processes are stopped.

  5. Change the machine name to the name assigned to the desired interface.

    Assume that the agent uses IP interface 10.1.2.111, which is named u60–01. Also assume you want to reassign the agent to use IP interface 10.2.3.222, which is named u60–01-ip2.

    You would then reassign to agent to IP interface 10.2.3.222 by typing the command uname -S u60–01–ip2.

  6. Set up the agent.

    You must set up the agent again to enable the agent to use the new IP interface assignment.

    Type the command /opt/SUNWsymon/sbin/es-setup -F.

    You are prompted for the security key seed.

    1. Specify the Sun Management Center security key.

      Type the same security seed password that you provided during Sun Management Center setup in Setting Up Base Products and Add-ons on the Solaris Platform, Step 7. Type the password again to confirm.

      You are prompted for the SNMPv1 community string.

    2. Specify the SNMPv1 community string.

      Type the same community string that you provided during Sun Management Center setup in Setting Up Base Products and Add-ons on the Solaris Platform, Step 8. If you used the default value public, press Return.

      You are informed that server-host-name appears to be configured as your Sun Management Center server, where server-host-name is the name of the machine where the server was installed.

      • If the displayed server name is correct, type y.

      • If the displayed server name is not correct, type n. You are prompted to provide the Sun Management Center host name.

        Type the name of the machine where the server is installed.

      The agent is set up to use the new IP address.


      Note –

      If you installed any add-on agent components, you might be asked to set up the add-on components as well.


    Agent configuration is now complete, and you can restart the agent.

  7. Restart the agent.

    Type the command /opt/SUNWsymon/sbin/es-start -A.