IPWorks SNMP 2020 Python Edition

Questions / Feedback?

on_mib_node Event

This event fires once for every child or successor of the currently selected node when invoking ListChildren or ListSuccessors .

Syntax

class MibBrowserMibNodeEventParams(object):
  @property
  def node_label() -> str: ...
  @property
  def node_oid() -> str: ...
  @property
  def node_type() -> int: ...
  @property
  def node_type_string() -> str: ...
  @property
  def node_syntax() -> int: ...
  @property
  def node_syntax_string() -> str: ...
  @property
  def node_access() -> int: ...
  @property
  def node_index() -> str: ...
  @property
  def node_parent_name() -> str: ...
  @property
  def node_description() -> str: ...
  @property
  def node_module_name() -> str: ...
  @property
  def node_file_name() -> str: ...

# In class MibBrowser:
@property
def on_mib_node() -> Callable[[MibBrowserMibNodeEventParams], None]: ...
@on_mib_node.setter
def on_mib_node(event_hook: Callable[[MibBrowserMibNodeEventParams], None]) -> None: ...

Remarks

When calling either list_children or list_successors, the MibNode event will fire once for every child of the currently selected node. The list_children method will cause the event will fire once for each of the immediate children of the current node. list_successors cause this event to fire for each of the immediate children of the current node, as well as the entire tree of successors of those children.

NodeLabel is the name or textual representation of the current node, and is unique to its siblings. The NodeOid is the OID of the listed node and uniquely identifies the node within the entire MIB. The remaining parameters offer additional information about the listed node.

Information about the listed node is only available through the MibNode event parameters. All class properties remain related to the currently selected node.

If a MibNode is declared in more than one file or module, then the NodeFileName and NodeModuleName parameters will contain a comma separated list of files/modules where the node is declared.

For instance, the following code:

MibParser.LoadMib("RFC1155-SMI")
MibParser.SelectNode("internet") // OID 1.3.6.1
MibParser.ListSuccessors()
will generate the following output through the event:
  directory    1.3.6.1.1
  mgmt         1.3.6.1.2
  experimental 1.3.6.1.3
  private      1.3.6.1.4
  enterprises  1.3.6.1.4.1

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