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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...