beamgr.conf
, which is the configuration file for the Agent Integrator and other BEA Manager applications.
beamgr_snmpd.conf
, which contains the community strings used as passwords in communication between managers and agents, and passwords used in communication with SMUX subagents. This file is separate from the beamgr.conf
file because it should be secured with read and write access permitted for root only. This file is used by the subagents shipped with the Agent Integrator (or subagents generated using the BEA Manager Agent Development Kit) when they are run as standalone agents. This file is also used by the Agent Integrator master agent and the agents shipped with the Agent Connection.
On UNIX systems: The If an entry happens to be too long, the backslash (\) character can be used as a continuation character at the end of the line. There should be a newline character immediately following the \ character.
The following keywords have corresponding MIB objects: TMEVENT_FILTER, SYS_INSTALL, SYS_CONTACT, SYS_NAME, SYS_LOCATION, SYS_SERVICES, and RULE_ACTION.
BEA Manager Configuration File (beamgr.conf)
beamgr.conf
is the configuration file for the Agent Integrator and other BEA Manager applications.
Default Location
/etc/beamgr.conf
On Windows NT systems: C:\etc\beamgr.conf
Description
beamgr.conf
file contains information used by the BEA Manager products (including Agent Integrator, Agent Connection, and Log Central) and the SNMP agents and SMUX subagents created using the BEA Manager Agent Development Kit. The location of this configuration file may be specified by the environment variable BEA_SM_BEAMGR_CONF
. A configuration entry is composed of two or more blank or tab-separated fields:
KEYWORD parameters
Keywords Used by All BEA Manager Products
host_name
trap_port
trap_community
host_hame
is the name of the target destination machine for the trap notification. Default is the local host.
You may have multiple TRAP_HOST entries in the configuration file if you wish to send traps to multiple destinations.
The TRAP_HOST entry is used by the following software components to determine trap destinations when generating SNMP trap notifications:
tux_snmpd
or m3_snmpd
as a subagent to manage TUXEDO 6.3 or 6.4 applications, you need to configure the Agent Integrator timeout to at least 30 seconds. This can be done by adding a INTEGRATOR_TIMEOUT entry as follows:
BEA_PEER MAX_WAIT 30
TMAGENT
logical_agent_name
tuxdir
tuxconfig_path
Monitoring of multiple domains is done by running a separate TUXEDO or M3 agent for each domain being monitored. These agents must be run as subagents under the Agent Integrator.
When there are multiple TUXEDO or M3 SNMP agents running on a managed node, the logical agent name must be used to modify the community in SET or GET requests. The community must be of the following form:
community
@logical_agent_name
For example:
public@payrollagent
The community does not need to be qualified with the logical agent name when there is only one TUXEDO or M3 SNMP agent running on the managed node.
TMEVENT_FILTER
filter_id
logical_agent_name
tux_evt_expr
tux_evt_filter
status
Note: The strings that are used for each of the parameters must not have blanks or white space.
filter_id
logical_agent_name
-l
option used when starting the agent (on UNIX systems) or the name of the Windows NT service (on Windows NT systems).
tux_evt_expr
recomp
entry in section 3 of the BEA TUXEDO Reference Manual for information about event name expressions. This name must match a TUXEDO event name for that event to be forwarded as an SNMP trap. See the EVENTS
entry in the BEA TUXEDO Reference Manual for a list of event names.The default is all events. If NONE
is used, no events are forwarded and the other parameters in the TMEVENT_FILTER entry can be omitted. An entry of NONE
overrides all other event filter entries for the same logical agent name. Examples:
\.Sys.*
\.SysServer.*
tux_evt_filter
tpsubscribe()
. Refer to the tpsubscribe()
entry in section 3 of the BEA TUXEDO Reference Manual for more information.
status
active
or inactive
. If the status is active, the filter is being used, otherwise not.
There is a MIB table that corresponds to the TMEVENT_FILTER entries in the BEA Manager configuration file. These entries can be updated dynamically using an SNMP SET request. For more information, refer to the beaEvtFilterTable
section in the Agent Connection for TUXEDO and M3 Reference Manual.
The following keywords are used by the subagents (unix_snmpd
and nt_snmpd
) shipped with Agent Integrator:
sysObjectId
MIB-II object. If this keyword is not specified in the configuration file, .1.3.6.1.4.1.140.1.1
is used as the value of the sysObjectId
object.
sysDescr
MIB-II object.
sysServices
object in the MIB-II system
group. See the MIB-II definition in RFC 1213 for more information about this field. This is a distinct entry from SYS_SERVICES.
To configure the BEA Agent Integrator to access MIB objects through a peer SNMP agent, (e.g., a non-SMUX master agent), add the NON_SMUX_PEER entry to the beamgr.conf
file in the following format:
NON_SMUX_PEERport
community
|*OID_Node
[,ro|rw][,priority][,timeout] ...
The explanation of the terms used in the previous entry follows.
NON_SMUX_PEER
port
ip_address
.
port
hostname.port
when the SNMP agent is remote from the Agent Integrator. If ip_address
or hostname
is not specified, the Agent Integrator assumes that the peer SNMP agent is on the same managed node as the Agent Integrator.
community
OID_Node
ro|rw
rw
.
priority
-1
, causes the selection of the highest available priority. When a request is made to register with priority -1
, registration is made at the highest available number below 20. If the priority field is missing, the MIB tree is exported at a -1
priority.
timeout
The access (ro
or rw
), priority
, and timeout
fields are optional. But you must specify access and priority
if you wish to specify timeout
, and you must specify access if you wish to specify priority
for a MIB tree.
Multiple OID nodes can be listed.
Note:
A subtree registration will hide the registrations by other SNMP agents/subagents of objects within the subtree. So, if an agent A registers subtree .1.3.6.1.4.1.140
and another agent/subagent, B, registers subtree .1.3.6.1.4.1.140.1
, agent/subagent A will be consulted for all the objects under the .1.3.6.1.4.1.140.1
subtree.
Also, when the Agent Integrator reads this entry, an SNMP agent should be running on the specified port. Otherwise, the Agent Integrator disregards this entry. Also, if three consecutive requests to this SNMP agent time out, it is assumed that the SNMP agent specified by this entry is no longer alive and this entry is disregarded.
At any point, the utility reinit_integrator
can be used to force the Agent Integrator to re-read its configuration file.
The Agent Integrator will disallow/disregard any attempt to register above, at, or below the SNMP (mib2.snmp) and SMUX subtrees of the MIB.
beamgr.conf
file:
The first entry tells the Agent Integrator to look for an SNMP agent at port 2001. All the requests from Agent Integrator to this SNMP agent will use The second entry tells the Agent Integrator to look for an SNMP agent at port 2002. All the requests from Agent Integrator to this SNMP agent will use The third entry specifies a non-SMUX agent at port 2008 with a community of *. The * tells the Agent Integrator to pass along the same community information it receives from the SNMP manager. For example, if the SNMP manager sends the community The fourth entry lists an agent at port 2005 with a community of *. The agent supports two subtrees: If the NON_SMUX_PEER 2001 snmp .1.3.6.1.2.1.1,ro
NON_SMUX_PEER 2002 squid .1.3.6.1.4.1.141 .1.3.6.1.4.1.145
NON_SMUX_PEER 2008 * .1.3.6.1.4.1,ro
NON_SMUX_PEER 2005 * .1.3.6.1.4.1.140 .1.3.6.1.4.1.145,rwsnmp
as the community. The agent supports the subtree .1.3.6.1.2.1.1
, and is available for read-only commands.
squid
as the community. The agent supports the subtrees .1.3.6.1.4.1.141
and .1.3.6.1.4.1.145
. Since no access option is specified, both subtrees default to rw
.
nevus
, the Agent Integrator sends nevus
along to the subagent. (Of course, nevus
must be a valid community for the Agent Integrator in the first place.)
.1.3.6.1.4.1.140
and .1.3.6.1.4.1.145
. The first subtree lists no access information, so access defaults to rw
. The second subtree specifically lists rw
. This means exactly the same thing. The rw
could have been left off with no effect.
rw
is redundant, then why have it at all? Because each OID node can have three arguments: access (ro
or rw
), priority
, and time-out
. If you specify any of these arguments, you must also specify all the arguments that come before it. For example, if you specify priority, you must also specify access. If you specify time-out, you must specify both access and priority.
rw
, a priority of -1
, and a timeout of two seconds; the second has an access of rw
, a priority of -1
, and a timeout of ten seconds. Although rw
and -1
are the defaults for access and priority, these values must be stated explicitly in order to include a timeout value.
The time-out values are the maximum amount of time the Agent Integrator waits for a response from the SNMP agent for a given object. In this case, two seconds for a response if the object falls under MIB tree NON_SMUX_PEER 2008 * .1.3.6.1.2.1.1,rw,-1,2 .1.3.6.1.2.1.2,rw,-1,10
.1.3.6.1.2.1.1
, and ten seconds for a response if the object falls under the .1.3.6.1.2.1.2
MIB group. The default value is three seconds. This default value can be changed by setting the environment variable BEA_PEER_MAX_WAIT.
.1.3.6.1.2.1.1
. The agent at port 2009 has a higher priority (5 is a higher priority than 8), so that is the one the Agent Integrator calls. Notice that this entry specifies rw
access. The other entry specifies ro
access, but since it has a lower priority, it is completely ignored. As far as the Agent Integrator is concerned, the only agent supporting .1.3.6.1.2.1.1
is at port 2009.
If you do not specify a priority, the default is NON_SMUX_PEER 2008 * .1.3.6.1.2.1.1,ro,8
NON_SMUX_PEER 2009 * .1.3.6.1.2.1.1,rw,5-1
. The Agent Integrator reads through the file sequentially. When it comes to an object with a -1
priority, it tries to assign it a priority of 20. If 20 has already been assigned to that MIB group (in another entry), it tries to assign 19. It keeps trying each successive lower number until it finds one that is not taken, or until it reaches 0. In that case it gives an error.
.1.3.6.1.2.1.1
and the first entry is ignored. As before, the access is rw
, since the entry specifying ro
access is ignored.
NON_SMUX_PEER 2008 * .1.3.6.1.2.1.1,ro
NON_SMUX_PEER 2009 * .1.3.6.1.2.1.1.1.3.6.1.2.1.11
is a special case, called mib2.snmp
. This MIB group is always handled by the Agent Integrator itself, and should not be exported by any agent or subagent. Any registration at, above, or below this MIB tree is not allowed. For example, none of the following entries is allowed:
The first includes If an SNMP agent wants to support
Note:
To continue an entry on another line, use a backslash. Make sure that there are no characters (other than the carriage return) immediately following the backslash.
NON_SMUX_PEER 2005 * .1.3.6.1.2.1
NON_SMUX_PEER 2006 * .1.3.6.1.2.1.11
NON_SMUX_PEER 2007 * .1.3.6.1.2.1.11.7mib2.snmp
, the second specifies it exactly, and the third specifies a part of it.
mib2
(except for the snmp
group, as it is not allowed), you need to enter each of the mib2
subtrees explicitly:
NON_SMUX_PEER 2002 * .1.3.6.1.2.1.1 .1.3.6.1.2.1.2 .1.3.6.1.2.1.3 \
.1.3.6.1.2.1.4 .1.3.6.1.2.1.5 .1.3.6.1.2.1.6 \
.1.3.6.1.2.1.7 .1.3.6.1.2.1.8 .1.3.6.1.2.1.9 \
.1.3.6.1.2.1.10
specifies row 1 of the second column of table object Notice that The first entry lists the object in row 1 in each of the five columns. The second entry lists the object in row 2 in each of the five columns.
NON_SMUX_PEER 2000 * .1.3.6.1.4.1.140.100.5.1.2.1
.1.3.6.1.4.1.140.100.5.1
. Row 1 is not necessarily the first row. 1 is simply a unique identifier for the row.
.1.3.6.1.4.1.140.100.5.1.2
refers to the whole second column. If you want to associate the two rows with different subagents, you need to specify each object in the row:
NON_SMUX_PEER 2000 * .1.3.6.1.4.1.140.100.5.1.1.1 .1.3.6.1.4.1.140.100.5.1.2.1 \
.1.3.6.1.4.1.140.100.5.1.3.1 .1.3.6.1.4.1.140.100.5.1.4.1 \
.1.3.6.1.4.1.140.100.5.1.5.1NON_SMUX_PEER 2002 * .1.3.6.1.4.1.140.100.5.1.1.2 .1.3.6.1.4.1.140.100.5.1.2.2 \
.1.3.6.1.4.1.140.100.5.1.3.2 .1.3.6.1.4.1.140.100.5.1.4.2 \
.1.3.6.1.4.1.140.100.5.1.5.2
This entry is used by the SMUX subagents created by the Agent Development Kit. The An explanation of the terms used in the previous entry follows.
The OID_CLASS Entry
unix_snmpd
, nt_snmpd
, and pm_snmpd
subagents are SMUX subagents created using the Agent Development Kit which are shipped along with snmp_integrator
. Normally, SMUX subagents register all the MIB groups they know about with the SMUX master agent. But you may limit the MIB groups exported by these SMUX subagents. In order to do so, you need to add an OID_CLASS
entry to beamgr.conf
in the following format:
OID_CLASS
agent_name
OID_Node
[,ro|rw][,priority] ..
OID_CLASS
agent_name
OID_Node
ro|rw
rw
.
priority
Multiple OID nodes can be listed.
Assume you have a SMUX subagent called my_snmpd
. This subagent is created using the Agent Development Kit and supports the MIB groups .1.3.6.1.4.1.140.1
, .1.3.6.1.4.1.140.2
, and .1.3.6.1.2.1.1
. When this subagent starts, it registers all three MIB groups as read-write with the SMUX master agent. If, for example, you want my_snmpd
to only export .1.3.6.1.4.1.140.1
as read-only and .1.3.6.1.2.1
as read-write, you would need to insert an entry of the following form:
OID_CLASS my_snmpd .1.3.6.1.4.1.140.1,ro .1.3.6.1.2.1.1
The BEA Agent Integrator can be configured to do management locally on the managed node and inform the SNMP manager selectively to reduce polling traffic generated by SNMP manager. The user can define rules in terms of MIB objects available locally using a C-like "IF" syntax and accordingly send SNMP traps or execute commands locally (or both). These MIB objects may be the one supported by the Agent Integrator itself or the one supported by one of its SMUX subagents or SNMP agents. For a discussion of RULE_ACTION entries, with examples, refer to Chapter 4, "Using Agent Integrator for Polling."
The configuration is done in the beamgr.conf
file. Syntax of the entry looks like following:
RULE_ACTIONrule-name
frequency_in_secs
\
if (VAL(oid
)rel_operator
value
)logical_op
(cond_2
) ...\
{ \
TRAPID_ERR=enterprise-specific-trapid
\
TRAPID_OK=enterprise-specific-trapid
\
COMMAND_ERR=executable
\
COMMAND_OK=executable
\
}
Note:
The whole entry should appear on the same line, else the backslash (\
) should be used as a continuation character. If \
is being used as a continuation character, a newline character should immediately follow it.
RULE_ACTION
rule-name
frequency
snmp_integrator
should check the condition.
VAL
VAL
keywords.
oid
.1.3.6.1.2.1.1.1.0
. Note that the trailing zero in this example is the instance index.
mib-2.
number.number ...
mib-2
appears as the leading sub-oid, .1.3.6.1.2.1.
is assumed to be prefixed to the rest of the OID. For example:mib-2.1.1.0
.1.3.6.1.2.1.1.1.0
enterprises.number.number ...
enterprises
appears as the leading sub-oid, .1.3.6.1.4.1.
is assumed to be prefixed to the rest of the OID. For example:enterprises.140.1.0
.1.3.6.1.4.1.140.1.0
number.number.number ... ,
.1.3.6.1.4.1.
is assumed to be prefixed to the rest of OID. For example:140.1.1.0
.1.3.6.1.4.1.140.1.1.0
Columnar objects are used to represent a column of a tabular MIB group. Columnar objects accordingly can have multiple instances. The last number in an OID is used to specify the particular instance. A specific number can be used to specify a particular instance or the asterisk wildcard can be used to specify all instances. Zero is used as the instance index in the case of scalar objects (objects that can have only one instance). The asterisk wildcard is only used to represent all instances of a columnar object. For example:
.1.3.6.1.4.1.140.1.1.0
specifies the single instance of a scalar object while
1.3.6.1.4.1.140.2.22.1.2.*
specifies all of the instances of a columnar object.
Note: When specifying multiple OIDs in a complex rule, the OIDs should either all use wildcards or none should. That is, you should not combine an OID that specifies a particular instance with an OID that uses a wildcard in the same rule. Also, when multiple OIDs with wildcards are used in a single rule, all of the OIDs should specify objects only within the same table.
rel_operator
value
If RHS is an OID it must be enclosed in single quotes. Also the type of value on RHS should correspond to the type of VALUE of the OID in LHS of the condition.
logical_op
Two actions can be taken whenever there is a transition in the state of a rule from true (ERR) to false (OK) and false (OK) to true (ERR) - namely execute a command and/or generate an SNMP_TRAP. When generic OIDs (an asterisk used to specify all instances of a columnar object) are used to define a rule, the rule state transitions from the OK state to the ERR state if the threshold evaluates to true for any row in the table and the rule state transitions from ERR to OK if the threshold evaluates to false for all rows in the MIB table. Initially, the rule states of all rules are set to OK when the Integrator starts up (or is re-initialized using the reinit_agent
command). Actions are specified using the following keywords:
TRAPID_ERR =
number
number
should be generated whenever there is a transition from false (OK) to true (ERR).
TRAPID_OK =
number
number
should be generated whenever there is a transition from true (ERR) to false (OK).
COMMAND_ERR =
command
command
should be executed whenever there is a transition from false (OK) to true (ERR).
COMMAND_OK =
command
command
should be executed whenever there is a transition from true (ERR) to false (OK).
beamgr_snmpd.conf
is a configuration file used by the BEA Manager Agent Integrator and subagents generated using the Agent Development Kit.
/etc/beamgr_snmpd.conf
on UNIX platforms. C:\etc\beamgr_snmpd.conf
on Windows NT systems.
The file beamgr_snmpd.conf
contains information used by the BEA Manager Agent Integrator, or by programs created using the Agent Development Kit when they are used as SNMP agents, as opposed to SMUX subagents. This file is separate from the beamgr.conf
file because it contains the SNMP community strings which are used as passwords in communication between agents and managers.
This file will be installed with access privileges for root only. For password security, the read and write permissions for the beamgr_snmpd.conf
file should be set to allow access only by root.
A configuration entry is composed of two or more blank or tab-separated fields:
KEYWORD
parameters
Recognized values for KEYWORD
are:
beamgr
as the read-write community. Entries with this keyword may be repeated more than one time, in order to specify more than one read-write community.
public
as the read-only community. Entries with this keyword may be repeated more than one time, in order to specify more than one read-only community.
YES
or NO
. NO
is the default. If set to YES
, SET access for all BEA Manager agents (including agents built using the Agent Development Kit) is disabled.