![]() |
![]() |
![]() |
![]() |
![]() |
Figure 3‑1 Directory Structure
Note: tux_prod_dir represents the directory in which the Oracle Tuxedo 10.0 distribution is installed.Oracle SNMP Agent provides the following two configuration files: beamgr.conf and beamgr_snmpd.conf. The beamgr.conf file, also known as the “Oracle SNMP Agent configuration file,” contains the user-defined operational configurations read by the Tuxedo SNMP agent (tux_snmpd) and the Oracle SNMP Agent Integrator (snmp_integrator) at startup.The beamgr_snmpd.conf file, also known as the “Oracle SNMP Agent passwords configuration file,” contains the user-defined password configurations (SNMP community names, SMUX password) read by tux_snmpd and snmp_integrator at startup. The default read-only community name is public, and the default read-write community name is iview. The default SMUX password is no password.For more information about the Oracle SNMP Agent configuration files, see “Configuration Files” on page 8‑1.The Tuxedo SNMP agent tux_snmpd is installed one at a time. On a Windows system, if you do not install Oracle Tuxedo first, you do not get the option to install tux_snmpd. For detailed information about how to install Oracle SNMP Agent, see Installing the Oracle Tuxedo System.Some attributes of Tuxedo resources are accessible globally (that is, no matter which Tuxedo node they are on) while others are accessible only by an Oracle SNMP agent local to the same machine. To access managed objects that are only accessible locally, you must install Oracle SNMP agents on each machine where these resources reside, or install an Oracle SNMP agent on the master node and execute it with the -c option, which enables you to run the agent only on the master node but to still gather information from all machines.If Oracle SNMP Agent is not installed in the same directory as the Oracle Tuxedo application, make sure that the bin directory of the appropriate Tuxedo installation precedes any other Tuxedo installations in the PATH system environment variable. This directory order in PATH enables Oracle SNMP Agent to have access to the correct Tuxedo dynamic link libraries (DLLs).Make sure the search path for shared libraries includes $TUXDIR/lib. The search path for shared libraries is:Open a command-line shell and copy the Oracle SNMP Agent configuration file beamgr.conf to the C:\etc directory:
4. Set your PATH to include the location of the Oracle SNMP Agent executables. This step applies to both Windows and UNIX systems.All users of the installed Oracle SNMP Agent products need to update their PATH environment variable to include the location of the Oracle SNMP Agent executable files. The following is a UNIX example in C shell:Configure the timeout of your SMUX master, if any (such as snmp_integrator), and of your SNMP manager, to at least 30 seconds. For snmp_integrator, you can set this timeout by adding an INTEGRATOR_TIMEOUT entry to the Oracle SNMP Agent beamgr.conf configuration file as follows:The default destination for SNMP trap notifications is localhost. To send traps to other destinations, use a text editor to modify the TRAP_HOST entry in the Oracle SNMP Agent beamgr.conf configuration file to specify the host name of the target destination machine for SNMP trap notifications, and the port number and community name to use in sending traps.
a. The TMAGENT entry in the Oracle SNMP Agent configuration file. This entry is of the form:TMAGENT logical_agent_name tuxdir tuxconfig_path
b. TUXCONFIG and TUXDIR environment variablesOracle SNMP Agent cannot receive Tuxedo event notifications unless the Tuxedo EventBroker server (TMSYSEVT) is running. To enable forwarding of Tuxedo events as SNMP traps, ensure that the Tuxedo EventBroker servers are running. For information on the Tuxedo EventBroker, see “About the EventBroker” in Administering an Oracle Tuxedo Application at Run Time and reference page TMSYSEVT(5) in Oracle Tuxedo File Formats, Data Descriptions, MIBs, and System Processes Reference.
10. If you are using the Oracle SNMP Agent Integrator, follow the instructions in “Setting Up the Oracle SNMP Agent Integrator” on page 5‑1 and set up the Oracle SNMP agents and then the Oracle SNMP Agent Integrator.
11. To manage multiple Tuxedo domains on a managed node at the same time, add a TMAGENT entry to the Oracle SNMP Agent configuration file for each agent. The TMAGENT entry is of the following form:where logical_agent_name identifies the agent to which the SNMP request is forwarded. For example:If only one agent is running on a node, logical_agent_name is optional in specifying the community in Set or Get requests.Tuxedo event filters can define a subset of Tuxedo events to be received by the agent for each domain being monitored. You can use TMEVENT_FILTER entries in the Oracle SNMP Agent configuration file to define a subset of Tuxedo event notifications that are to be forwarded as SNMP trap notifications. For more information, see “Configuration Files” on page 8‑1. MIB objects corresponding to Tuxedo event filters are described in “Core MIB” in Oracle Tuxedo SNMP Agent MIB Reference.By default, an SNMP agent (such as the Oracle SNMP Agent Integrator or tux_snmpd when running as an SNMP agent) uses public as the read-only community and iview as the read-write community when communicating with SNMP managers. To define additional community names, specify them in the Oracle SNMP Agent passwords file. You can also use the passwords file to specify a password for the Oracle SNMP Agent Integrator to use for authenticating connection requests from SMUX subagents.Open a command-line shell and copy the Oracle SNMP Agent beamgr_snmpd.conf passwords file to c:\etc. For example:Copy the Oracle SNMP Agent beamgr_snmpd.conf passwords file to the /etc directory and make the copy readable and writable only by root. For example:prompt> cp tux_prod_dir/udataobj/snmp/etc/beamgr_snmpd.conf
/etc
prompt> chmod 600 /etc/beamgr_snmpd.conf
c. If you want to set the agent to be read-only, specify a DISABLE_SET entry in the passwords file as follows:If there is no DISABLE_SET entry in the passwords file, the agent has both Set and Get capability.The environment variable BEA_SMUX_PASSWD specifies the password that the SNMP agent uses when registering with a SMUX master agent, such as the Oracle SNMP Agent Integrator. This environment variable is required only if the SMUX master agent expects a password. If this environment variable is not set, a password is not specified by tux_snmpd when registering.To modify or define the services, add the appropriate lines in the root_directory\system32\drivers\etc\services file. For example:
a. Determine if the NIS server is running. Use the ypwhich command to determine if an NIS server or map master is available. For example:prompt> ypwhich
zort.kremvax.com
b. If an NIS server is available, use the ypcat command to determine if the services are available.prompt> ypcat services | grep snmp
snmp-trap 162/udp snmptrap
snmp 161/udp
c. prompt> cat /etc/services | grep snmp
snmp-trap 162/udp snmptrap
snmp 161/udpOn startup, a Tuxedo SNMP agent checks for a TMAGENT entry in the Oracle SNMP Agent configuration file that matches its logical agent name. A TMAGENT entry provides a path to the Tuxedo domain to be monitored. If no matching TMAGENT entry is found, the agent connects to the Tuxedo domain specified in the TUXCONFIG and TUXDIR environment variables. The agent exits if the TUXCONFIG or TUXDIR environment variable is not defined and no appropriate TMAGENT entry is found in the Oracle SNMP Agent configuration file. For more information, see “Configuration Files” on page 8‑1.The tux_snmpd binary is the Tuxedo SNMP agent that supports the Tuxedo SNMP MIB. For a description of the supported MIB groups and objects, see Oracle Tuxedo SNMP Agent MIB Reference.When the Oracle SNMP agent starts up as an SNMP agent, it generates a coldStart trap. The destination host, port, and community used when sending traps are as specified in the TRAP_HOST entry in the Oracle SNMP Agent beamgr.conf configuration file. For more information, see “Oracle SNMP Agent Configuration” on page 3‑3.When running as a SMUX subagent, the Oracle SNMP agent specifies a password to the SMUX master agent at the time of registration if the environment variable BEA_SMUX_PASSWD has been defined. In that case, the Oracle SNMP agent uses the value of BEA_SMUX_PASSWD as the password; if BEA_SMUX_PASSWD has not been defined, the Oracle SNMP agent does not specify a password to the master agent when registering.
2. In the list of Services, locate and select the installed service named tux81_snmpd and click Start to start it, as shown in Figure 3‑2. There may be a short delay as the service is initiated.Figure 3‑2 Starting a ServiceAssign separate logical agent names to run multiple instances of the agent on the same node. To use multiple agents to monitor multiple Tuxedo domains, logical_agent_name is a string that associates an agent with a Tuxedo domain as defined by a TMAGENT entry in the Oracle SNMP Agent beamgr.conf configuration file. For format information, see “Oracle SNMP Agent Advanced Configuration” on page 3‑5.This entry assigns the agent started with logical_agent_name to the indicated Tuxedo domain. See “Configuration Files” on page 8‑1.Specifies that the Oracle SNMP agent is to run as an SNMP agent. If you do not specify this option, the Oracle SNMP agent runs as a SMUX subagent. If a SMUX master agent (for example, snmp_integrator) is not running, you must provide -s as a startup parameter before selecting Start.-p snmp_portThe snmp_port option specifies the UDP port on which the Oracle SNMP agent listens for incoming SNMP packets. The -p option enables you to run the Oracle SNMP agent on a port other than the standard SNMP port 161. This option is meaningful only when the Oracle SNMP agent is running as an SNMP agent.-r smux_portSpecifies the TCP port to connect to a SMUX master agent. (The default is port 199.) This option is meaningful only when tux_snmpd is running as a SMUX subagent.-m hostnameThe name of the machine where the SMUX master agent, such as the Oracle SNMP Agent Integrator, is running. This option is used only when you want tux_snmpd to register with a SMUX master agent on a remote machine.tux_snmpd [-l logical_agent_name] [-d] [-n] [-s] [-p snmp_port]
[-r smux_port] [-m hostname] [-h] [-c]-l logical_agent_nameThe logical_agent_name string associates an agent with an Oracle Tuxedo domain as defined by a TMAGENT entry in the Oracle SNMP Agent beamgr.conf configuration file. The logical agent name can be a maximum of 32 characters long. For format information, see “Oracle SNMP Agent Advanced Configuration” on page 3‑5.Assign separate logical agent names to run multiple instances of the agent on the same node. If you do not specify the -l option, the Oracle SNMP agent uses the name of the executable as the logical agent name.-p snmp_portThe snmp_port option specifies the UDP port on which the Oracle SNMP agent listens for incoming SNMP packets. The -p option enables you to run the Oracle SNMP agent on a port other than the standard SNMP port 161. This option is meaningful only when the Oracle SNMP agent is running as an SNMP agent.-r smux_port-m hostnameDisplays the syntax for the tux_snmpd command.On a Windows system, you stop Oracle SNMP agents and the optional Oracle SNMP Agent Integrator via the Services window. On a UNIX system, you stop Oracle SNMP agents and the optional Oracle SNMP Agent Integrator by entering the stop_agent command at the command-line prompt.prompt> stop_agent tux_snmpdIf you specify all, all SNMP agents are stopped. The name of the executable is the default logical agent name.