https://github.com/thebinary/teasysnmp
Extended easysnmp with helpers to work with snmp tables
https://github.com/thebinary/teasysnmp
Last synced: 5 months ago
JSON representation
Extended easysnmp with helpers to work with snmp tables
- Host: GitHub
- URL: https://github.com/thebinary/teasysnmp
- Owner: thebinary
- License: mit
- Created: 2017-09-01T09:08:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-30T08:41:10.000Z (over 7 years ago)
- Last Synced: 2025-05-07T12:53:38.702Z (9 months ago)
- Language: Python
- Size: 539 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
teasysnmp
=========
Extended easysnmp with helpers to work with snmp tables
teasysnmp Table
---------------
The teasysnmp extensions vastly depends on a custom teasysnmp data
structure that is referred to as the **"teasysnmp table"** in all
documentations and documentation strings as well as in the extended
function calls.
| To keep things simple and optimized, the datastructure is a simple
tuple with 2 elements - the snmp table entry oid - dictionary with
definition of fields
| - field\_name: tuple of (field\_index str, easysnmp typestr)
An example is given below:
.. code:: python
ifTableEntry = (
".1.3.6.1.2.1.2.2.1",
{
'Index': ('1', 'INTEGER'),
'Descr': ('2', 'OCTETSTR'),
'Type': ('3', 'INTEGER'),
'MTU': ('4', 'INTEGER'),
}
)
The possible easysnmp typestr are:
+--------------------+
| Easysnmp Typestr |
+====================+
| OBJECTID |
+--------------------+
| OCTETSTR |
+--------------------+
| INTEGER |
+--------------------+
| INTEGER32 |
+--------------------+
| UNSIGNED32 |
+--------------------+
| NETADDR |
+--------------------+
| IPADDR |
+--------------------+
| COUNTER |
+--------------------+
| GAUGE |
+--------------------+
| TICKS |
+--------------------+
| OPAQUE |
+--------------------+
| COUNTER64 |
+--------------------+
| NULL |
+--------------------+
| UINTEGER |
+--------------------+
| NOTIF |
+--------------------+
| BITS |
+--------------------+
| TRAP |
+--------------------+
Special Thanks To
=================
- Contributors of
`easysnmp `__