How to Import MIB Files¶
MIB files contain information to resolve binary (octet-stream) values into the human-readabke format. NOC uses MIBs to:
- Decode binary values in the SNMP traps
- In the SA scripts to convert symbolic oid names into the plain oids
smilint utilities for import, so you need all dependent MIB files to be present.
smilintutilities into the system (
netsnmp-utilsfor the Debian-based systems)
- Check all required MIB files.
netsnmp-utilspacket istalls standard MIBs into the
- To import MIB through web-interface deploy mib service (via Tower)
We need to prepare the infrastructure to import MIB
In case of multi-node installation all operations must be performed on the node with the service mib
Check utilities availability:
# smidump -v smidump 0.4.8 # smilint -v smilint 0.4.8
etc/settings.yml is present, or create new, if neccessary. Add following section:
path: mib_path: /usr/share/mibs/ietf/:/usr/share/mibs/site/:/opt/noc/var/mibs/dist/ smilint: /usr/bin/smilint smidump: /usr/bin/smidump
Your system's paths may vary
Place all MIB file dependencies into the one of the
mib_path directories. For example,
Install NOC-supplied MIB files:
Import MIB file via Web Interface¶
Ensure the mib service is deployed and running.
Fault Management > MIBpage in the interface.
- Press Add button.
- Choose the file and dependencies (when necessary) into the MIB form.
- Press Upload button.
Import MIB via CLI¶
./noc mib --local import <path>
<path> is the path to the MIB file or to directory with MIB files.
--local key skips the usage of the mib service.
If the output ends with
Pass MIB through smilint to detect missed modules, place all missed MIB modules into one of the
mib_path directories and repeat the command.
Otherwise, import completed successfully.
Check MIB in the web interface:
Fault Management > MIBs
Restart classifier service to apply changes.