Chapter 3. Agent Installation

Table of Contents

3.1. Overview
3.2. Agent Installation
3.3. Verifying Agent Installation
3.3.1. Directory Structure
3.4. Configuring and Registering Agent Environment
3.4.1. Environment Settings
3.4.2. Agent Registration
3.5. Starting and Terminating Agent
3.5.1. Starting an Agent
3.5.2. Terminating an Agent

This chapter describes how to install a SysMaster Agent.

3.1. Overview

All hardware and software requirements for an Agent that are described in "1.2. Pre-Installation Tasks" must be met before installing the Agent. Installing an Agent is similar to installing the Master. Once the Master has been installed, Agent installation is simple.

If the root account or the account used to install the resource is used to install the Agent, it is possible to control multiple resources on a single node. Otherwise, the Agent must be installed for each account that was used to install the resources. Therefore, if multiple resources must be managed on a single node, the Agent should be installed using the root account or the account used to install the resources.

The following is a summary of the Agent installation process.

  1. Installing Agent

  2. Verifying Agent Installation

  3. Configuring and Registering Agent Environment

  4. Starting and Terminating Agent

Note

For information on installing a SysMaster Agent using the smadmin tool, refer to "SysMaster Administrator's Guide".

3.2. Agent Installation

This section describes how to install an Agent.

An Agent is installed in the following order.

  1. After granting execution permission for the SysMaster5_0_Master_Agent_Enterprise.bin file, execute the file.

    When the following screen is displayed, press <ENTER> to continue.

    $ chmod u+x SysMaster5_0_Master_Agent_Enterprise.bin
    $ ./SysMaster5_0_Master_Agent_Enterprise.bin
    Preparing to install...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    
    Launching installer...
    
    Preparing CONSOLE Mode Installation...
    ===============================================================================
    Choose Locale...
    ----------------
    
        1- English
      ->2- 한국어
    
    CHOOSE LOCALE BY NUMBER: 1
    
    ===============================================================================
    SysMaster5.0                        (created with InstallAnywhere by Macrovision)
    -------------------------------------------------------------------------------
    Introduction
    ------------
    InstallAnywhere will guide you through the installation of SysMaster5.0.
    It is strongly recommended that you quit all programs before continuing
    with this installation.
    Respond to each prompt to proceed to the next step in the installation.
    If you want to change something on a previous step, type 'back'.
    You may cancel this installation at any time by typing 'quit'.
    PRESS <ENTER> TO CONTINUE:
  2. When the license agreement is displayed, press <ENTER> to continue.

    ===============================================================================
    License Agreement
    -----------------
    
    Installation and Use of SysMaster5.0 Requires Acceptance of the Following 
    License Agreement:
    
    
    Installation and Use of SysMaster (hereafter, Software) Requires Acceptance of 
    the Following License Agreement:
    
    TmaxSoft Co., Ltd. (hereafter, TmaxSoft) License Agreement (hereafter, 
    Agreement)
    Product : SysMaster
    
    This is a legal agreement between you (either an individual or an company) and 
    TmaxSoft.
    By opening the Software package and/or by installing or using the Software, you
    agree to be bound by the terms
    of this Agreement.
    This Agreement is a license agreement, not a sales contract, between you and 
    TmaxSoft.
    
    1. Grant of license:  TmaxSoft hereby grants you a non-exclusive, 
    non-transferable, non-sublicensable limited license
    to the Software and any intellectual property related to the Software 
    including, but not limited to, user manuals and
    implementation instructions. You should read this Agreement carefully before 
    opening the Software package, installing
    or using the Software. Once you open the Software package, install or use the 
    
    Software, you are deemed to have
    agreed to the contents of this Agreement.
    
    2. Copyright:  The Software and all related intellectual property is owned by 
    TmaxSoft and protected by copyright
    laws and international treaty provisions. You shall not use or copy the 
    Software without usage  authorization of TmaxSoft.
    You also shall not copy the printed materials accompanying the Software, nor 
    print copies of any user documentation
    provided in online or electronic form.
    
    3. Other restrictions: You shall not rent, lease, or lend the Software and 
    accompanying materials on a permanent basis
    to any individual or company. You shall not, nor permit any third party to 
    reverse engineer, decompile, disassemble,
    modify, adapt, create derivative works from or otherwise attempt to derive 
    source code from the Software provided.
    
                                                                                   
    TmaxSoft Co., Ltd.
  3. Enter y + <ENTER> to accept the terms of the agreement.

    DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y
  4. Select the Install Set. For Agent, enter 2 + <ENTER>.

    ===========================================================================
    Choose Install Set
    ------------------
    Please choose the Install Set to be installed by this installer.
        1- Master
      ->2- Agent
        3- Only Provider
    ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
       :
  5. Select the platform where SysMaster will be installed.

    ===========================================================================
    Choose Platform
    ---------------
    Choose current system ( platform-architecture )
    1)HP-UX PA-RISC
    2)HP-UX ITANIUM
    3)AIX 5L
    4)AIX 6L
    5)AIX 7L
    6)Solaris Sparc 7~10
    7)Solaris x86 7~10
    8)Linux i386
    9)Linux ITANIUM
    10)Linux x86_64
    Quit) Quit Installer
    
    Choose Current System (DEFAULT: 6):
  6. Select the kernel bit.

    ===========================================================================
    Choose Kernel Bit
    Please Choose Kernel Bit? 
      ->1- 32bit
        2- 64bit
        3- previous
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE 
       DEFAULT:
  7. Enter JDK directory path.

    ===============================================================================
    Choose JDK Folder
    -----------------
    
    Please Choose a Folder:
    
    Input User JDK Folder (DEFAULT: /usr/java5_64):
  8. Enter the installation path for the Agent.

    ===========================================================================
    Choose Install Master Folder
    ----------------------------
    Where would you like to install? 
    (DEFAULT: /home/sysmaster1/sysmaster/agent): /data1/apmqam/sysmaster/agent
  9. Configure the Master server to which the Agent will connect to.

    ================================================================
    Choose Master Infomation
    ------------------------
    Master IP (DEFAULT: 192.168.1.87): 
    
    Master Base Port (DEFAULT: 22000): 
    
    Master Request Port (DEFAULT: 22002): 
    
    Master Stat Port (DEFAULT: 22006): 
  10. Configure the Agent.

    Agent IP (DEFAULT: 192.168.1.34): 
    
    Agent Base Port  (DEFAULT: 22100): 
  11. Select whether to install WAS DC(Data Collector).

    ===============================================================================
    Install Was Dc
    --------------
    
    Do you wish to install Was Dc?
    
      ->1- YES
        2- NO
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE 
       DEFAULT: 
  12. Configure WAS DC information.

    ===============================================================================
    Input Was Dc Information
    ------------------------
    
    Was Dc Home Dir (DEFAULT: /home/sysmaster1/sysmaster/agent/was_dc): /data1/apmqam/sysmaster/agent/was_dc
    
    Net Hist Port (DEFAULT: 22007): 
  13. Select whether to install Oracle DC.

    ===============================================================================
    Install Oracle Dc
    -----------------
    
    Do you wish to install Oracle Dc?
    
      ->1- YES
        2- NO
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE 
       DEFAULT: 
  14. Configure Oracle DC information.

    ===============================================================================
    Choose Platform
    ---------------
    
    Choose current oracle system ( platform-architecture )
    
    1)HP-UX ITANIUM
    2)AIX
    3)Solaris
    4)Linux
    Quit) Quit Installer
    
    Choose Current System (DEFAULT: ): 1
    
    
    
    
    ===============================================================================
    Choose Kernel Bit
    -----------------
    
    Please Choose Kernel Bit? 
    
      ->1- 32bit
        2- 64bit
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE 
       DEFAULT: 2
    
    
    
    ===============================================================================
    Input Oracle Dc Information
    ---------------------------
    
    Oracle Dc Home Dir (DEFAULT: /data1/apmqam/sysmaster/oracle_dc): /data1/apmqam/sysmaster/agent/oracle_dc
    
    Oracle IP (DEFAULT: 192.168.1.34): 
    
    Oracle Port (DEFAULT: 1521): 
    
    Oracle User (DEFAULT: SMADM): 
    
    Oracle User Passsword (DEFAULT: SMADM): 
    
    Oracle SID (DEFAULT: ora11g): 
    
    Oracle Privilege (DEFAULT: ): 
    
    Master Transaction Port (DEFAULT: 22007): 
  15. Configure the full path for the Oracle JDBC Library that will be used by the Agent to collect information.

    ===============================================================================
    Choose Oracle Jdbc Library Full Path.(ex:/home/ora11g/oracle/jdbc/lib/ojdbc6.jar)
    ---------------------------------------------------------------------------------
    
    Input Oracle Jdbc Library Full Path. (DEFAULT: /data1/apmqam/sysmaster)
       : 
  16. Select whether or not to install Tmax DC.

    ===============================================================================
    Install Tmax Dc
    ---------------
    
    Do you wish to install Tmax Dc?
    
      ->1- YES
        2- NO
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE 
       DEFAULT: 
  17. Select whether or not to install Tibero DC.

    ===============================================================================
    Install Tibero Dc
    -----------------
    
    Do you wish to install Tibero Dc?
    
      ->1- YES
        2- NO
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE 
       DEFAULT: 
  18. Select whether or not to install AnyLink DC.

    ===============================================================================
    Install AnyLink Dc
    -----------------
    
    Do you wish to install AnyLink Dc?
    
      ->1- YES
        2- NO
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE 
       DEFAULT: 
  19. When installation is completed, press <ENTER> to exit the installer from the following screen.

    ===============================================================================
    Pre-Installation Summary
    ------------------------
    
    Please Review the Following Before Continuing:
    
    Product Name:
        SysMaster5.0
    
    Disk Space Information (for Installation Target): 
        Required:  24,543,147 bytes
        Available: 213,394,419,712 bytes
    
    PRESS <ENTER> TO CONTINUE: 
    
    ===============================================================================
    Installing...
    -------------
    
     [==================|==================|==================|==================]
     [------------------|------------------|------------------|------------------]
    
    
    
    ===============================================================================
    Installation Complete
    ---------------------
    Congratulations. SysMaster5.0 has been successfully installed to:
    
       /data1/apmqam/sysmaster/agent
    
    PRESS <ENTER> TO EXIT THE INSTALLER: 

[Note]

If there is a blank space in the path that is entered during the installation in Windows, modify the path as in the following. Up to 8 characters can be used for a path by entering 6 characters followed by '~1' or '~2'.

  • Example 1

    C:\Program Files\Java\jdk1.5.0_12 --> C:\Progra~1\Java\jdk1.5.0_12
  • Example 2

    When both C:\Program Files and C:\Program Files (x86) exist, and Java is installed in C:\Program Files (x86) --> C:\Progra~2\Java\jdk1.5.0_12
  • Example 3

    C:\Documents and Settings\Java\jdk1.5.0_12 --> C:\Docume~1\Java\jdk1.5.0_12

3.3. Verifying Agent Installation

This section describes how to verify that the Agent has been installed successfully.

3.3.1. Directory Structure

The following directory is created after an Agent has been installed. In the following example, the installation directory for the Agent has been set to 'sysmaster'.

$sysmaster
     +- agent
         |
         +- UninstallerData
         +- bin
         +- config
         +- lib
         +- logs
         +- temp
UninstallData

Contains SysMaster uninstallation files.

bin

Contains executable files such as smagent, etc.

config

Contains property files required for Master operation.

lib

Contains library files.

logs

Contains log files.

temp

Contains the intermediate data results that is processed by the Agent.

3.4. Configuring and Registering Agent Environment

This section describes how to set the environment configurations for an Agent and register the Agent with the Master.

3.4.1. Environment Settings

Modify the following files to specify the environment configurations of an Agent.

  • sysmaster.properties

  • smagent.env

  • smboot

sysmaster.properties

Specify the environment configurations of an Agent in the following file.

$AGENT_HOME/config/sysmaster.properties

The following are the contents of the sysmaster.properties file.

##############################################################################################
#
#   [ NETWORK(Mandatory) ]
#
#   master.hostname            Master Hostname(IP)
#   master.baseport            Master Base Port
#
#   master.port.req            Master Request Port(default : master.baseport + 2)
#   master.port.stat           Master Statistic Port
#
#   agent.hostname             Agent Hostname(IP)
#   agent.port.jrmpadaptor     Agent Port for JRMP Adaptor Export
#
##############################################################################################
master.hostname=192.168.1.87
master.port.base=22000
master.port.req=22002
master.port.stat=22006

agent.hostname=192.168.1.34

.................Omitted

##############################################################################################
#
#   [ LOGGING ]
#
#   log.level                  Log Level(debug|info|warn|error|fatal|off)
#   log.format                 Log Format([%c:%-5p] %m {%C{1}.%M(%L)}%n)
#   log.redirect               false if u don't want to redirect logs to smlog file
#
##############################################################################################
log.level=debug
log.format=%d{HH:mm:ss} [%c{1}] [%-5p] %m%n
log.redirect=true
log.retention=7

The following is description of the properties.

PropertyDescription
master.hostnameIP address of Master.
master.port.base

Base port number of Master.

Applies to SYSMASTER_BASEPORT of smmaster.env.

master.port.reqnio port used for real-time user requests. Set to ‘SYSMASTER_BASEPORT + 2’ for default installation. Must be modified when there are 3 or more containers.
master.port.stat

Port number used to transfer data from Agent, DC, etc.

Set to ‘SYSMASTER_BASEPORT + 6’ for default installation. Must be modified when there are 3 or more containers.

agent.hostnameIP address of Agent.
log.retentionExpiration date for deleting the logs.

smagent.env

Check the following file.

$AGENT_HOME/bin/smagent.env

The following are the contents of the smagent.env file.

#
# For customizing SysMaster agent environment.
#

# set up SYSMASTER_HOME.
SYSMASTER_HOME=/data1/apmqam/sysmaster/agent
SYSMASTER_LOG_HOME=$SYSMASTER_HOME/logs

# set up SYSMASTER_BASEPORT.
SYSMASTER_BASEPORT=22000

# set up SYSMASTER_SYSMON_HOME.
SYSMASTER_SYSMON_HOME=$SYSMASTER_HOME/lib/provider/sysmon/aix5L_64

# set up JAVA_HOME
JAVA_HOME=/usr/java5_64

# set up JAVA_ARGS
JAVA_ARGS="-Xms32m -Xmx64m"

export SYSMASTER_HOME SYSMASTER_BASEPORT SYSMASTER_SYSMON_LIB
export JAVA_HOME JAVA_ARGS

... Omitted


# set up BOOTSTRAPPER_OPTION.
BOOTSTRAPPER_OPTION="-Dagent -Dsysmaster.port=$SYSMASTER_BASEPORT -Dsysmaster.home=$SYSMASTER_HOME -Dsysmaster.logpath=$SYSMASTER_LO
G_HOME -Djava.security.manager -Djava.security.policy=$SYSMASTER_HOME/bin/sm-policy.policy"

The following is description of the variables.

VariableDescription
SYSMASTER_HOME${AGENT_HOME}.
SYSMASTER_LOG_HOMEPath to the Agent log file.
SYSMASTER_BASEPORTUses Master's base port setting.
SYSMASTER_SYSMON_HOME

OS folder.

${AGENT_HOME}/lib/provider/sysmon/os name

The following platforms are supported. (OS naming convention: [OS Name + bit number])

  • AIX: aix4.3_32, aix4.3_64, aix5L_32, aix5L_64, aix6L_32, aix6L_64

  • HP: hpux11_32, hpux11_64, hpux11_32_ia64, hpu11_64_ia64

  • Solaris: solaris8_32, solaris8_64, solaris9_32, solaris9_64, solaris10_32, solaris10_64, solaris8_32_x86

  • Other: linux2.x, linux2.x_ia64, true64_5.0, true64_5.1, win32

JAVA_HOMEJava HOME.
BOOTSTRAPPER_OPTION NAT

Add the Master IP to the sysmaster.proxy in the BOOTSTRAPPER_OPTION section when the network (NAT) between the Master and Agent do not match.

(e.g., -Dsysmaster.proxy=192.168.32.199)

Create smboot

After registering the Agent in the Web Admin, create the following file. For more information about registering an Agent, refer to"3.4.2. Agent Registration".

$AGENT_HOME/bin/vi smboot

The following are the contents of the smboot file.

#!/bin/sh
smagent -n {Agent name registered in WEB Admin}

3.4.2. Agent Registration

An Agent must be registered with the Master before it can be started. SysMaster Web Admin is used to register the Agent. Once it is registered, the Agent is ready to run.

Start SysMaster Web Admin, go to [ADMIN] > [SysMaster] > [Resource] to register and manage a SysMaster Agent.

Right click on the Master from the top left menu, and then select [Add Agent]. Fill in the required fields, and then click [Save] to complete the registration.

[Figure 3.1] Adding an Agent

Adding an Agent


The following describes each field. (*: Required Field)

FieldDescription
Agent Name(*)Set by the user. In general, use the name of the node where Agent will be installed for easy access. (Max length = 32)
OS Name(*)OS of the machine where Agent will be installed.
Host Name(*)Host name of the machine where Agent will be installed.
User Name(*)User name used to install Agent.
Log Level(*)Log Level
Sysmon GenerateIf set, a Sysmon resource will be automatically created. (This setting must be checked when installing for the first time.)
DescriptionBrief description of Agent. (Max 2000 characters)
MessageFull description of Agent.

Once Sysmon resource registration is completed, the Agent registration information can be viewed as in the following.

[Figure 3.2] Adding Agent - Completed

Adding Agent - Completed

By selecting the automatically registered Node, the registration information of the node can be viewed as in the following.

[Figure 3.3] Checking Node Information After Adding the Agent.

Checking Node Information After Adding the Agent.

The Sysmon Provider, the Provider that is installed with the Agent, monitors the system resource status.

3.5. Starting and Terminating Agent

This section describes how to start and terminate a SysMaster Agent.

3.5.1. Starting an Agent

The following are the steps for starting a SysMaster Agent.

  1. If smboot was not created, execute smagent from the $AGENT_HOME/bin directory as in the following. The Agent Name is required. Use the name that was used to register the Agent.

    $AGENT_HOME/bin/smagent -r -n  {Agent Name}

    The following describes each smagent option.

    OptionDescription
    -nStart the Agent when smboot is created successfully.
    -rRe-register the Agent name and start the Agent when there is an error such as a network error between the Master and Agent.
    -aAdd and start the Agent from the console.
    -vVersion information of the Agent.
    -hHelp for smagent.
  2. If an Agent starts successfully, the following screen is displayed.

    [15:09:11] SysMaster agent main server started
    [15:09:11] *** Initialized Agent MBeans ***
      JMImplementation:type=MBeanServerDelegate
      tmaxh9_apmqam:name=sysmaster.agent.action.AgentMainActionMBean
      tmaxh9_apmqam:name=sysmaster.agent.action.AgentMainActionMonitorMBean
      tmaxh9_apmqam:name=sysmaster.agent.mbean.AgentAdminMBean
      tmaxh9_apmqam:name=sysmaster.agent.mbean.FileTransfererMBean
      tmaxh9_apmqam:name=sysmaster.agent.mbean.MessageReceptorMBean
      tmaxh9_apmqam:name=sysmaster.agent.mbean.SystemExplorerMBean
      tmaxh9_apmqam:name=sysmaster.agent.mbean.SystemFileFilterMBean
      tmaxh9_apmqam:name=sysmaster.agent.monitor.AgentMonitorMgrMBean
      tmaxh9_apmqam:name=sysmaster.provider.sysmon.agent.init.SysmonResourceInitializerMBean,resid=R001
      tmaxh9_apmqam:name=sysmaster.provider.sysmon.agent.manager.SystemResourceMonitorMBean,resid=R001
      tmaxh9_apmqam:name=sysmaster.provider.was.agent.init.WasResourceInitializerMBean,resid=R002
      tmaxh9_apmqam:name=sysmaster.provider.was.agent.service.WasAgentMBean,resid=R002
    
    [15:09:11] SysMaster agent main started
    [15:09:11] Resource moniotor [was] scheduler started
    [15:09:11] Resource resource [R002] monitor task scheduler started
    [15:09:11] Resource moniotor [sysmon] scheduler started
    [15:09:11] Resource resource [R001] monitor task scheduler started
    [15:09:11] Agent jmx context [tmaxh9_apmqam] registered
    [15:09:12] *** Agent [tmaxh9_apmqam] configuration ***
            host : tmaxh9
            user : apmqam
            home : /data1/apmqam/sysmaster/agent/
    [15:09:12] Agent [tmaxh9_apmqam] registered
    
            ======================================================
                    AGENT [tmaxh9_apmqam] READY...
            ======================================================
    
    
    SysMaster agent [tmaxh9_apmqam] boot success...
    
    [15:09:12] All stdout,stderr will be redirect to: /data1/apmqam/sysmaster/agent/logs/smlog
    
  3. If an Agent starts successfully, the following process can be viewed.

    Dagent
    
    ps -ef|grep Dagent

3.5.2. Terminating an Agent

The '-n' option must be used to terminate an Agent.

  1. Execute smagent from the $AGENT_HOME/bin directory as in the following.

    $ $AGENT_HOME/bin/smdown -n
  2. The following describes each smdown option.

    OptionDescription
    -nTerminates Agent after sending a request to the Master.
    -iTerminates Agent immediately without sending a request to the Master.
    -hHelp for smdown.
  3. If an Agent is terminated successfully, the following screen is displayed.

  4. Starting agent shutdown...
       15:09:00 SMSTR INFO  Now starting stop agent server...
       15:09:00 SMSTR INFO  [SmNioClientManger] Finish SmNioClientManger Stop
       15:09:00 SMSTR INFO  [ClientSendWorker] Stoped
       15:09:00 SMSTR.WAS INFO  [ReceiveWorker] Stop ReceiveWorker : R002
       15:09:00 SMSTR INFO  [ReceiveWorker] Stop ReceiveWorker : R001
       15:09:00 SMSTR INFO  Trying to shutdown File job client
       15:09:00 SMSTR INFO  Destroy AGENT file job client success.
       15:09:00 SMSTR INFO  Destroy AGENT Sysmonadmin success.
       15:09:00 SMSTR INFO  Resource resource [R001] monitor task scheduler ended
       15:09:00 SMSTR INFO  Resource resource [R002] monitor task scheduler ended
       15:09:01 SMSTR INFO  Destroy AGENT PROVIDER mbeans.xml configurations.
       15:09:01 SMSTR INFO  Master Connector closed
       15:09:01 SMSTR INFO  SysMaster agent main stopped
       15:09:01 SMSTR INFO  Destroy MASTER registration
       15:09:01 SMSTR INFO  Destroy AGENT mbean server
       15:09:01 SMSTR INFO  Destroy AGENT Jrmpadaptor port [22100]
    Agent shutdowned...