IPWorks SNMP 2020 Python Edition

Questions / Feedback?

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:

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 Python Edition - Version 20.0 [Build 8202]