Sun Management Center 4.0 Installation and Configuration Guide

ProcedureTo Assign an Agent to a Different Server

  1. Log in as root on the agent machine.

  2. Reassign the agent to a different server

    To assign the agent to a different server, you must set up the agent using the command es-setup -F.

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

    You are prompted for the security key seed.

  3. Type the security seed.

    An encrypted security key is need for communications among all Sun Management Center processes. The key is generated based on the password you provide, which must be between one and eight characters long, and contain no spaces. Entries that are greater than eight characters are truncated to eight characters.

    Make sure that you type the same security seed password that you provided during the original installation and setup process for Step b in Setting Up Sun Management Center.

    1. Type the password for the seed to generate the security keys.

    2. Type the password again.

    You are prompted for the SNMPv1 community string.

  4. Specify the SNMPv1 community security string.

    The community string is used for SNMP security.

    Make sure that you type the same community string that you provided during the original installation and setup process for Step c in Setting Up Sun Management Center.

    You are informed that Machine-A is configured as your Sun Management Center server, where Machine-A is the actual name of the server to which the agent currently is assigned. For example:


    Machine-A appears to be configured as your Sun Management Center server.
    Is this correct (y|n|q)

    Type n. You are prompted for the Sun Management Center server hostname.

  5. Type the hostname of the server to which you want to reassign the agent.

    Type the name of the server. For example:


    Machine-A appears to be configured as your Sun Management Center server.
    Is this correct (y|n|q) n
    Please enter the Sun Management Center Server Hostname: Machine-B
    

    You are asked whether you want to start the Sun Management Center agent.

  6. Start the agent.

  7. Log in as root on the original server.

  8. Type the command /opt/SUNWsymon/base/sbin/es-servercontrol.sh.

    • If the ESROOT environment variable is set, you are prompted for the Sun Management Center server host name. Go to Step 10.

    • If the ESROOT environment variable is not set, you are notified and prompted for the ESROOT directory.

  9. Specify the ESROOT directory.

    The ESROOT environment variable specifies the location of the Sun Management Center SUNWsymon directory.


    The ESROOT environment variable is not set.
     Enter ESROOT [/opt/SUNWsymon]:

    Press Return to accept the displayed default of /opt/SUNWsymon, or type the full path to the SUNWsymon directory.

  10. Specify the Sun Management Center server host name.

    You are prompted for the server host name.


    Enter the hostname of the Sun Management Center server [Machine-A]:

    Press Return to accept the displayed default hostname, or type the server hostname. The server hostname must be the name of the original server to which the agent was assigned.

    You are prompted for the server port.

  11. Specify the Sun Management Center server port.

    The server port is the remote method invocation (RMI) port used by the Sun Management Center server. See Table 9–3 for further information.

    The current RMI port is displayed.


    Enter the port of the Sun Management Center server [2099]:

    Press Return to accept the displayed port, or type the port that is used for RMI.

    You are prompted for the Sun Management Center superuser ID.

  12. Specify the superuser ID.

    The superuser ID is the administration user ID that you assigned during the original installation and setup process.

    The current superuser ID is displayed.


    Enter the Sun Management Center Superuser ID [esmaster]:

    Press Return to accept the displayed ID, or type the administrator ID.

    You are prompted for the superuser password.

  13. Type the password.

    A list of server control functions is displayed.

  14. Clear the server cache.

    Type 1 to select Clear the Server Context Cache. For example:


    Select one of the following Server control functions:
    0) View the Server Context Cache
    1) Clear the Server Context Cache
    2) Remove a host from the Server Context Cache
    3) Remove a host:port from the Server Context Cache
    4) View the SNMP OID (Finder and Privacy OID) Cache
    5) Clear the SNMP OID (Finder and Privacy OID) Cache
    6) Remove a host from the SNMP OID (Finder and Privacy OID) Cache
    7) Remove a host:port from the SNMP OID (Finder and Privacy OID) Cache
    8) Remove a host:port from the Cfgserver Engines Table
    9) Exit
    
    Please Enter Your Selection [9]:1
    

    The server cache is cleared, and the server control list is displayed again. Type 9 to exit server control and return to the system prompt.