IPX/SPX Configuration and Management Manual

Event Messages for NonStop™ IPX/SPX
IPX/SPX Configuration and Management Manual425731-001
B-18
Example 2
Example 2
The following filter selects all the critical NonStopIPX/SPX event messages that have
a particular process as their subject:
-- Filter that selects only critical NonStop™ IPX/SPX event
-- messages that have a particular process as their subject.
[#SET zipx^val^ssid
[zspi^val^tandem].[zspi^ssn^zipx].[zipx^val^version]]
FILTER warning^ipxspx^msgs(
SSID(my^ssid,my^process^name) REQUIRED);
BEGIN
IF zspi^tkn^ssid = SSID(zipx^val^ssid) THEN
-- This is a NonStop™ IPX/SPX event message.
IF zems^tkn^emphasis = [zspi^val^true] THEN
-- This is a critical event message.
IF zcom^tkn^subj^proc = my^process^name THEN
-- This event message concerns the NonStop™
-- IPX/SPX process with the name my^process^name.
PASS
ELSE
-- This event message concerns some other
-- NonStop™ IPX/SPX process.
FAIL
ELSE
-- This is not a critical event message.
FAIL
ELSE
-- This is not a NonStop™ IPX/SPX event message.
FAIL;
END; -- of warning^ipxspx^msgs.