Splunk Dev

Problem converting MIB file to Python

DavidHourani
Super Champion

Hello,

I am trying to convert a MIB file to python in order to use it in "SNMP Modular Input" and I am having the following error:

#smidump -f python CISCO-LWAPP-AP-MIB.my

CISCO-LWAPP-AP-MIB.my: unable to determine SMI version
smidump: cannot locate module `CISCO-LWAPP-AP-MIB.my'

Could someone please help me get this fixed ?

Thank you

Best regards,
David

0 Karma

Damien_Dallimor
Ultra Champion

This question is related to the SNMP Modular Input for loading in custom MIBs.

Check to make sure your SMI paths are set up correctly in /etc/smi.conf

DavidHourani
Super Champion

Ummm... i looked in /etc and i don't have an smi.conf

I only have the following:

smicache smidiff smidump smilint smiquery smistrip smixlate

Am I missing something ?

0 Karma

Damien_Dallimor
Ultra Champion

Trying qualifying your MIB file path by putting a preceeding "./".

smidump -f python ./CISCO-LWAPP-AP-MIB.my

smidump docs : https://www.ibr.cs.tu-bs.de/projects/libsmi/smidump.html

Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...