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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

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, ...