TrapNode Event

Lists module trap information.

Syntax

ANSI (Cross Platform)
virtual int FireTrapNode(MibBrowserTrapNodeEventParams *e);
typedef struct {
const char *TrapName;
int SpecificTrap;
const char *TrapEnterprise;
const char *TrapVariables;
const char *TrapDescription;
const char *TrapReferences;
const char *TrapModuleName;
const char *TrapFileName; int reserved; } MibBrowserTrapNodeEventParams; Unicode (Windows) virtual INT FireTrapNode(MibBrowserTrapNodeEventParams *e);
typedef struct {
LPCWSTR TrapName;
INT SpecificTrap;
LPCWSTR TrapEnterprise;
LPCWSTR TrapVariables;
LPCWSTR TrapDescription;
LPCWSTR TrapReferences;
LPCWSTR TrapModuleName;
LPCWSTR TrapFileName; INT reserved; } MibBrowserTrapNodeEventParams;
- (void)onTrapNode:(NSString*)trapName :(int)specificTrap :(NSString*)trapEnterprise :(NSString*)trapVariables :(NSString*)trapDescription :(NSString*)trapReferences :(NSString*)trapModuleName :(NSString*)trapFileName;
#define EID_MIBBROWSER_TRAPNODE 4

virtual INT IPWORKSSNMP_CALL FireTrapNode(LPSTR &lpszTrapName, INT &iSpecificTrap, LPSTR &lpszTrapEnterprise, LPSTR &lpszTrapVariables, LPSTR &lpszTrapDescription, LPSTR &lpszTrapReferences, LPSTR &lpszTrapModuleName, LPSTR &lpszTrapFileName);

Remarks

When calling ListTraps, the TrapNode event fires once for every trap found in the module.

The following are the descriptions of the event parameters:

TrapNameThe name of the trap (its label).
TrapSpecificTrapThe specific id of this trap.
TrapEnterpriseThe defining entity.
TrapVariablesA comma separated list of the symbols that should be present inside the trap.
TrapDescriptionA textual memo about the node.
TrapModuleNameThe module that contains the trap definition.
TrapFileNameThe filename of the MIB where the trap is defined.

If a trap has been defined in more than one module or file, then ModuleName and FileName will contain a comma separated list of values.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 C++ Edition - Version 20.0 [Build 8202]