etingof / pysnmp

Python SNMP library
http://snmplabs.com/pysnmp/
BSD 2-Clause "Simplified" License
582 stars 200 forks source link

Where is the MIB file saved ? #314

Closed azureskyL closed 5 years ago

azureskyL commented 5 years ago

if my PC cannot connect to the Internet, where should I save the MIB file ?

etingof commented 5 years ago

By default, compiled (into Python) MIBs are saved into ~/.pysnmp/mibs (on UNIX).

You can also set non-default path for either compiled MIBs (addMibSource) or ASN.1 MIBs to be compiled whenever needed (addAsn1MibSource).