Troubleshooting the SNMP Agent
SNMP Configuration and Management Manual — 424777-006
7 -4
Compiling the Filter
Compiling the Filter
Before using a filter, you must compile it with the EMS filter compiler, EMF. Because
filters are based on the HP Tandem Advanced Command Language (TACL), you load
the TACL versions of the data definition language (DDL) files containing the definitions
used in your filter. The following TACL routine defines a TACL macro named USESPI,
which makes the SPI SEGF files usable to TACL. The routine then calls USESPI to set
up the files needed to EMF-compile the filter in the file named SNMPS. Finally, the
routine calls EMF to compile the filter:
?TACL ROUTINE
== FILE: EXSNMPS
[#DEF USESPI MACRO |BODY|
#DEF %1% DIRECTORY SHARED $SYSTEM.ZSPISEGF.%1%
#SET #USELIST [#USELIST] %1%
]
USESPI ZSPISEGF
USESPI ZCOMSEGF
USESPI ZEMSSEGF
USESPI ZSMPSEGF
USESPI ZTCISEGF
USESPI ZCMKSEGF
EMF /IN SNMPS/ SNMPF
Displaying Filtered Event Messages
When EMS is running and the log files are secured so that you can access them, it is
easy to run a printing distributor. The simplest case is to run a printing distributor to
your terminal by entering a TACL command such as the following:
EMSDIST /NAME $DIST1/ TYPE PRINTING, COLLECTOR $0, &
TEXTOUT $TERM1, FILTER $SYSTEM.MYFLTRS.SNMPF
This command starts distributor process $DIST1, which sends all messages received
after startup to terminal $TERM1 if they pass through filter SNMPF. The source of the
event messages is $0, the primary collector on the local system.
$DIST1 continues sending messages until you stop it. Assigning the distributor a name
enables you to stop the process using that name. To stop the distributor, press the
Break key and then use a TACL STOP $DIST1 command.
Using Trace Records
The SNMP agent and the HP TCP/IP subsystem both provide a facility for generating
trace records to help you diagnose problems.
While being traced, subsystems continue normal operation but pass all message traffic
to a trace procedure. When the trace procedure recognizes a message that meets its
selection criteria, it stores the message in a trace file. Trace operations are usually
started with the SCF TRACE command.
Summary of Contents for T9576G06
Page 24: ...Contents SNMP Configuration and Management Manual 424777 006 xxii Tables continued ...
Page 38: ...Part I Installing and Configuring SNMP SNMP Configuration and Management Manual 424777 006 ...
Page 140: ...Part II SCF for the SNMP Agent SNMP Configuration and Management Manual 424777 006 ...
Page 208: ...Part III Troubleshooting SNMP Configuration and Management Manual 424777 006 ...
Page 230: ...Part IV SNMP Subagents SNMP Configuration and Management Manual 424777 006 ...
Page 704: ...Part V Appendices SNMP Configuration and Management Manual 424777 006 ...
Page 778: ...Index SNMP Configuration and Management Manual 424777 006 Index 32 Special Characters ...