IPWorks SNMP 2020 Python Edition

Questions / Feedback?

MibBrowser Class

Properties   Methods   Events   Configuration Settings   Errors  

The MIBBrowser class is used to parse SNMP MIB Module definitions.

Syntax

class ipworkssnmp.MibBrowser

Remarks

The MIBBrowser class allows easy loading and querying of definitions in the SNMP Management Information Base (MIB) specifications.

The load_mib method allows loading of MIB modules, which get stored in an internal tree structure for further queries.

If modules reference (import) other modules, recursive loading of modules is performed automatically and/or controlled by the on_import_symbols event.

The MIB tree is navigated through the select_node method, which enables pointing to a node in the tree specified by node_oid and node_label. Other node information is provided through the node_module_name, node_file_name, node_syntax, node_type, and node_access properties.

The node selector parameter in select_node can be a label such as "internet", an OID such as "1.3.6.4", a combination of the two: "iso.3.dod.internet", or a label in a particular module such as "RFC1213-MIB!interfaces".

Node children and successors are provided by the list_children and list_successors methods. The individual node information is provided via the on_mib_node event.

Module traps are listed via the list_traps method. The individual trap information is provided through the on_trap_node event.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

exact_matchControls the way the OID matching is done (complete or partial).
node_accessThe access permissions for the selected node.
node_descriptionTextual description of the selected node.
node_file_nameThe absolute path of the file where the selected node is declared.
node_full_labelThe full label of the selected node.
node_indexThe index of the node in a table.
node_labelThe label of the selected node.
node_module_nameThe name of the module where the selected node is declared.
node_oidThe Object ID of the selected node.
node_sub_idThe SubId of the currently selected node.
node_syntaxThe syntax of the selected node.
node_syntax_stringThe node syntax of the selected node in text format.
node_typeThe type of the selected node.
node_type_stringThe node type of the selected node in text format.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

configSets or retrieves a configuration setting.
list_childrenLists the immediate children of the selected node.
list_successorsLists all successors of the selected node.
list_trapsLists all the traps defined in the loaded modules.
load_mibParses the file FileName and adds the parsed nodes to the collection of existing nodes.
resetReset all properties of the class.
select_nodeUsed to select individual nodes in the loaded MIB module(s).

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

on_errorErrors that occur while loading/parsing MIB modules are fired through this event.
on_import_symbolsList of imported symbols and the respective modules where they are declared.
on_mib_nodeThis event fires once for every child or successor of the currently selected node when invoking ListChildren or ListSuccessors .
on_trap_nodeLists module trap information.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

AutoLoadMibsDetermines whether imported MIB modules are loaded automatically.
CacheDescriptionsControls caching of Node descriptions.
CacheMibsControls MIB module caching.
CheckNoKnownRootsControls whether or not the class fails when a file with no known root is loaded.
DisplayHintThe DISPLAY-HINT property for the current node.
MibExtensionsControls the file extensions that the class will search for.
NodeIsColumnarWhether the current node is columnar.
NodeIsScalarWhether the current node is scalar.
ReleaseTempNodesWill release any temporary nodes stored by the class.
ReturnEnumValuesComma-separated list of the current node's enumeration textual-conventions.
UndefinedSymbolsComma-separated list of nodes that have not been resolved.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

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