Running the JMX agent

Before you run the JMX agent, verify that the JAVA_HOME environment variable points to a JRE 1.4 installation, and that SybSNMP is running so that the agent can connect to it—see “SNMP master agent”.

StepsStarting the JMX agent on UNIX

  1. Change to the ROOT/bin directory, and enter:

    SybAgent.sh [-F agent props] [-h] [-o log] [-v n]
    

    Table 13-3 defines the command line options.

    Table 13-3: SybAgent start-up options

    Option

    Description

    -F path
    

    Specifies the location of the agent.props file, which contains the necesssary configuration to start the agent server. You can make a copy of agent.props, then change any of the settings; for example, to define a different class path, or to include other services.

    -h
    

    Prints the list of start-up options.

    -o log
    

    Specifies the name of the log file; the default is agent.log.

    -v n
    

    Writes the debugging messages identified by n to the log file identified by -o. Table 13-4 defines the possible values for n.

    Table 13-4: SybAgent debugging options

    Debugging level

    Generates these messages

    0
    

    FATAL

    1
    

    ERROR

    2
    

    WARN

    3
    

    INFO

    4
    

    DEBUG

StepsStarting the JMX agent on Windows

  1. Change to the ROOT\bin directory, and enter:

    SybAgent.bat [-F agent props] [-h] [-o log] [-v n]
    

    where Table 13-3 defines the command line options.

StepsStopping the JMX agent on UNIX

  1. Change to the ROOT/bin directory, and enter:

    StopSybAgent.sh
    

StepsStopping the JMX agent on Windows

  1. Change to the ROOT\bin directory, and enter:

    StopSybAgent.bat