Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 2 Configuring TIBCO Hawk Components : Configuring Hawk Agent

Configuring Hawk Agent
All the required configuration parameters are stored in HAWK_HOME/bin/hawkagent.cfg. Each section in this configuration file begins with “-M” followed by the module name, such as –M Self. Within each modular section, all the command-line options that can be configured are listed. These options are as follows:
-cluster <cluster name>
-agent_name <agent name>
-agent_domain <agent domain name>
-hawk_domain <TIBCO Hawk Domain Name>
-as_session <listen url> <discover url>
-as_transport_timeout <time in milliseconds>
-as_receive_buffer_size <buffer size in bytes>
-as_virtual_node_count <virtual node count>
-as_worker_thread_count <worker thread count>
-rvd_session <service> < network> <daemon>
-ems_transport <ems transport parameters>
-ssl_ciphers <suite-name(s)>
-ssl_trusted <file name>
-ssl_identity <file name>
-use_thread_pool <thread pool>
-character_encoding <character encoding>
-rulebases <rulebase> <rulebase> …
-config_path <list of directories to use as configuration sources>
-auto_config_dir <directory to autoload rulebases at startup>
-repository_path <list of repositories to use as configuration sources>
-repository_cache_dir <repository cache dir>
-variables <property file>
-email_smtp_server <SMTP hostname>
-email_smtp_port <server port number>
-email_from <sender email address>
-ami_rvd_session <service> <network> <domain>
-log_dir <directory to store TIBCO Hawk logs>
-log_max_size <maximum size of log file>
-log_max_num <maximum number of log files>
-log_level <desired trace level for logs>
-log_format <log format>
-interval <heartbeat interval in seconds>
-security_policy <class that implements security>
-repository_name <repository name>
-repository_dir <repository directory>
-scan_rate <scan interval in seconds>
-block_size <size in kilobytes>
-eval_rate <rate in seconds>
-timeout <time in seconds>
Each of the parameters listed above are explained in more detail, in the following table.
Mandatory
IP subnet address
The name of the container in which this agent will appear in the display by default. The display will create the container if it does not already exist. Allows for grouping of multiple agents. The cluster name must be enclosed within quotes, if the name contains spaces.
Host Name of the computer
Each agent being managed must have a unique combination of agent_name, agent_domain, and hawk_domain values. To use the host name as the agent name, comment this option.
An agent domain must be specified when two computers within the same TIBCO Hawk domain have the same name but reside in different network domains. For example, you might specify this option as: -agent_domain pa.tibco.com.
TIBCO DataGrid Transport
"" tibpgm://8989/
See TIBCO DataGrid Transport for more details. Use a semicolon (;) to indicate a null value, or use an empty string, for example:
7474 "" tcp:7474
If you use this option, all three parameters must be present and separated by white space. Use a semicolon (;) to indicate a null value, or use an empty string, for example:
TIBCO EMS Transport
See page 30 for details
Comment this option if you are using TIBCO DataGrid or TIBCO Rendezvous as the primary transport.
j2se-default—Use this option when you want to use the default JCE bundled with the Java JRE.
ibm—On non-IBM platforms, this option can be used only if the IBM version of JCE is installed.
Optimizes the number of threads the agent creates for every microagent it discovers. It is advisable to turn this option On if the agent is going to discover over 100 microagents. This value is OS dependent and should be set to the maximum number of threads allowable per process.
CONFIG_FOLDER/plugin
CONFIG_FOLDER/config
CONFIG_FOLDER/autoconfig
Specify the directory from which the Rulebase and schedule configuration objects are loaded at the startup. The default directory, HAWK_HOME/autoconfig, is used if a value is commented.
If repository configuration mode is used, specify the path to be searched for repositories. The delimiter for path entries is a colon (:).
CONFIG_FOLDER/cache
If repository configuration mode is used, all configuration objects loaded from the repository may be cached in a local directory, specified in this option. This cache is used if a repository fails, and also to minimize network traffic.
Properties file to specify variables file. The variables file can pass data to define external variables to be passed to rules for use in Rulebase configurations.
Specifies whether authentication is required for the SMTP server. The default value is false. If the value is true, you need to provide the username (-email_smtp_user) and password (-email_smtp_password) for authentication.
Specifies the sender’s username for the SMTP server authentication. The field is mandatory if the authentication option (-email_smtp_auth_required) is set to true.
Specifies the sender’s password for the SMTP server authentication. The field is mandatory if the authentication option (-email_smtp_auth_required) is set to true.
Specifies the sender’s email address for sending the email. The default is the current system user, for example, "HawkAdministrator"<admin@abc.com>
7474 127.0.0.1 tcp:7474
Configures the agent with a RVD session to be used to communicate with applications implementing the TIBCO Hawk Application Management Interface. Multiple -ami_rvd_session parameters may be specified. If none are specified, the RV session used for AMI is the primary session of the Self Module.
# Note: When using TIBCO EMS transport for communication, 127.0.0.1 should be used as the network parameter. For example: ami_rvd_session 7474 127.0.0.1 tcp:7474
CONFIG_FOLDER/log
300 seconds
Logging for TIBCO Hawk Agent
TIBCO Hawk 5.2.0 provides two different modes of logging: trace mode and log4j mode.
Trace Logging Mode
By default, Hawk Agent uses the trace mode for logging requirements. TIBCO Hawk 5.2.0, uses the trace mode logging mechanism to match parity with different versions of Hawk, bundled in different TIBCO products.
The logging parameters for Hawk Agent, Hawk MicroAgent, and Hawk Event are configured using the logging parameters defined their respective configuration files. For more details on these logging parameters, refer the following sections:
Log4j Logging Mode
In TIBCO Hawk 5.2.0, you can enable the log4j mode for Hawk Agent logging requirements. By default, the log4j mode is disabled for Hawk Agent. Modify the log4j configuration in the respective .tra files to enable the log4j for logging.
The configuration for Hawk Agent is included in tibhawkagent.tra at:
java.extended.properties=-Duse_log4j=false -Dlog4j.configuration=%HAWK_CONFIG_HOME%/bin/log4j_agent.properties
To enable the log4j for logging, update the value of the -Duse_log4j parameter to true in the configuration mentioned above.
Specify “-Dlog4j.configuration” as command-line parameter to override the log file configuration.
A default log4j properties file exists at CONFIG_FOLDER/bin/log4j_agent.properties. You can modify this configuration file or use your own properties file.
The logging properties specified in hawkagent.cfg for –M LogService viz. log_dir, log_max_size, log_max_num and log_level override those in log4j RootLogger’s RollingFileAppender.
Use of -log_level Parameter in Agent Configuration
If –log_level <int_value> is specified in –M LogService section of agent configuration and the value of log_level is greater than seven, the log4j root logger level is set to DEBUG.
Note:
Agent logging configuration properties given in hawkagent.cfg only apply to RollingFileAppender for the Root category (Logger). If there are sub-categories with different file appenders, the agent properties will not override them.
Mapping of TIBCO Hawk default Util Logging Levels with Log4j:

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved