S
S
Self -education @Self-2021-01-21 18:58:32
Python
Self -education @Self-, 2021-01-21 18:58:32

How to use MIB file in pysnmp?

Hello,
I have my own .mib file with data structure and I need to send SNMP Trap to some server using this .mib file.

In principle, I can specify an object inside sendNotification

ObjectType(ObjectIdentity("1.3.6.1..oid...", OctetString("value123")
by adding several copies of it to the array and changing the OID and value in each. But is it possible to deliver the OID from the MIB file automatically and not in the same way as I do?

Please do not throw stones, I just started learning how to work with SNMP in Python.

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question