Event logging lets you log server and client activities, called events. Events are ADSM server or client messages. You can send the events to specified receivers, which are simply destinations for the ADSM messages. You can access a receiver as you need information, and use ADSM tools or your own system management tools. You can send the events to any combination of the following receivers:
You can control event logging by doing the following:
At server start-up event logging begins automatically to the console and the activity log and for any receivers that are started based on entries in the server options file. You can issue the BEGIN EVENTLOGGING and END EVENTLOGGING commands to begin and end logging for one or more receivers. For example, to begin event logging for a user-defined exit, issue the following command:
begin eventlogging userexit
You can enable or disable specific events or groups of events by receiver by issuing the ENABLE EVENTS and DISABLE EVENTS commands. When you enable or disable events, you can specify the following:
Notes:
Here are two examples of enabling events:
enable events userexit error,severe
The name of the user exit must be specified in the USEREXIT server option.
enable events file error nodename=msmith,hstanford,bkelly
The name of the file must be specified in the FILEEXIT server option.
The QUERY ENABLED command displays the events that are enabled and disabled by a specific receiver for the server or for a client node. Because the lists of enabled and disabled events could be very long, ADSM displays the shorter of the two lists. For example, assume that 1000 events were enabled by the user exit for client node HSTANFORD and that later two were disabled. To query the enabled events for HSTANFORD, enter:
query enabled userexit nodename=hstanford
The output would specify the number of events enabled and the message names for the disabled events:
998 events are enabled for node HSTANFORD for the USEREXIT receiver. The following events are DISABLED for the node HSTANFORD for the USEREXIT receiver: | ANE4000, ANE49999
This section describes what you must do to set up Tivoli as a receiver for ADSM event logging.
The file ibmadsm.baroc, which is distributed with the server, defines the ADSM event classes to the Tivoli enterprise console. Before ADSM events are displayed on a Tivoli console, you must import ibmadsm.baroc into an existing rule base or create a new rule base and activate it using this file.
To import ibmadsm.baroc into an existing rule base, do the following:
To create a new rule base, do the following:
After you have added ibmadsm.baroc to a rule base and activated the rule base, define an event source and an event group:
To complete your set up, you must also specify the location of the host on which the Tivoli server is running. To do this, specify the TECHOSTNAME server option and, optionally, the TECPORT and TECBEGINEVENTLOGGING server options. For details about these server options, see ADSM Administrator's Reference.
You can use the simple network management protocol (SNMP) together with ADSM event logging to send traps to an SNMP manager, such as NetView or Tivoli. In addition, you can set up an SNMP heartbeat monitor to regularly check that the ADSM server is running.
An SNMP agent is needed for communication between an SNMP manager and its managed systems. The SNMP agent is implemented through the snmpd daemon, and the Distributed Protocol Interface (DPI) Version 2 is an extension of this SNMP agent.
ADSM management through SNMP requires additional information in the MIB of the local agent. Therefore, an SNMP agent supporting DPI Version 2 must be used to communicate with the ADSM subagent. This SNMP agent is not included with ADSM. The ADSM subagent is included with ADSM and, before server startup, must be started as a separate process communicating with the SNMP agent.
The SNMP manager system can reside on the same system as the ADSM server, but typically would be on another system connected through SNMP. The SNMP management tool can be any application, such as NetView or Tivoli, that can manage information through SNMP MIB monitoring and traps. The ADSM server system runs the processes needed to send ADSM event information to an SNMP management system. The processes are:
Cross-system support for communication between the server and subagent is not supported, and these products must be installed and run on the ADSM server system. Figure 53 illustrates a typical ADSM implementation:
Figure 53. ADSM SNMP Implementation
Figure 54 shows how the communication for SNMP implemented in an ADSM system:
Figure 54. Manager-Agent-Subagent Communication
The ADSM SNMP set up procedure is illustrated by Figure 55:
To set up ADSM monitoring through SNMP, do the following:
Figure 56. Example of SNMP Communication Method Options
commmethod snmp snmpheartbeatinterval 5 snmpmessagecategory severity |
logging file=/var/snmp/snmpd.log enabled logging size=0 level=0 community public community private 127.0.0.1 255.255.255.255 readWrite community system 127.0.0.1 255.255.255.255 readWrite 1.17.2 view 1.17.2 system enterprises view trap public * snmp_manager_ip_adr * 1.2.3 fe snmpd maxpacket=16000 smuxtimeout=60
where * snmp_manager_ip_adr * is the IP address of the system running the SNMP management application.
Before starting the agent, ensure that the DPI agent has been started and not the default SNMP agent that ships with the operating system or with TCP/IP.
Note: | For AIX 4.2.1 and above, the correct agent is shipped with the system. |
# export SVA_SNMPD="active"
begin eventlogging snmp enable event snmp all
[C:\] loadmib -load adsmserv.mib