SNMP Configuration and Management Manual
Troubleshooting the SNMP Agent
SNMP Configuration and Management Manual—424777-006
7-3
Creating a Filter
messages or groups of messages of special interest. For example, you might want to
select all the messages sent by the SNMP agent and TCP/IP.
The filtered event stream can be viewed several ways:
•
Running a printing distributor. This distributor writes event messages to a printer or
other display device or to a file.
•
Using the operator console. You can read the event message on the designated
operator console controlled by the compatibility distributor ($Z0) or the console
used by the printing distributor.
•
Using the EMS trap subagents. These subagents, documented in Section 9, EMS
Trap Subagent, let you view EMS events as traps on an SNMP manager station.
This subsection provides an example showing how to create and use a filter that
selects messages generated by the SNMP agent and TCP/IP subsystem. Section 3,
MIBs Supported by the SNMP Agent, describes event messages generated by the
SNMP agent. For more information about EMS and event messages, refer to the EMS
Manual and the Operator Messages Manua.
Creating a Filter
The following filter selects all event messages reported by the SNMP agent and
TCP/IP on system \MYSYS:
== FILE: SNMPS
FILTER pass^SNMP^TCPIP^MSGS;
BEGIN
IF ZEMS^TKN^SYSTEM = [ #SYSTEMNUMBER \MYSYS] AND
((ZSPI^TKN^SSID = SSID(ZSMP^VAL^SSID)) OR
(ZSPI^TKN^SSID = SSID(ZTCI^VAL^SSID)) OR
(ZSPI^TKN^SSID = SSID(ZCMK^VAL^SSID)) THEN
PASS;
END;