on_trap_node Event
Lists module trap information.
Syntax
class MibBrowserTrapNodeEventParams(object): @property def trap_name() -> str: ... @property def specific_trap() -> int: ... @property def trap_enterprise() -> str: ... @property def trap_variables() -> str: ... @property def trap_description() -> str: ... @property def trap_references() -> str: ... @property def trap_module_name() -> str: ... @property def trap_file_name() -> str: ... # In class MibBrowser: @property def on_trap_node() -> Callable[[MibBrowserTrapNodeEventParams], None]: ... @on_trap_node.setter def on_trap_node(event_hook: Callable[[MibBrowserTrapNodeEventParams], None]) -> None: ...
Remarks
When calling list_traps, the on_trap_node event fires once for every trap found in the module.
The following are the descriptions of the event parameters:
TrapName | The name of the trap (its label). |
TrapSpecificTrap | The specific id of this trap. |
TrapEnterprise | The defining entity. |
TrapVariables | A comma separated list of the symbols that should be present inside the trap. |
TrapDescription | A textual memo about the node. |
TrapModuleName | The module that contains the trap definition. |
TrapFileName | The 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.