MIBBLER
Jruby wrapper for MIBBLE
Install / Use
/learn @snmpboy/MIBBLERREADME
= MIBBLER -- A wrapper for MIBBLE.jar http://www.mibble.org
== Summary
MIBBLER is a Jruby wrapper around mibble.jar. It allows for parsing a mib, loading other mibs, and is meant to be used with Mark Cotner's SNMP4J. It has one class, Loaded_mibs. Accroding to the Mibble documentation MibLoader is not thread safe, therefore, create one instance and use that instance throughout your code.
=== Features
- Use Ruby scripts to take advantage of Mibble's compile Java code.
- Parse a mib to get OID's matched with their human readable values.
- Load more mibs. By default it uses /usr/share/mibs but you may change the directory.
=== Usage The example is a modified example from SNMP4JR
#!/usr/bin/env jruby
require 'rubygems' require 'SNMP4JR' require 'MIBBLER'
This defaults to version 2c bulkwalk(most efficient method) unless you specify version1
Create an instance of Loaded_mibs to manipulate the Mibs. Public methods are: parse_mib, load_mib, and get_oid
mymibs = Loaded_mibs.new oids = mymibs.get_oid('dot1dBasePort', 'sysDescr')
target = SNMPTarget.new(:host => '<switch-ip-address>', :community => 'public', :version => SNMP4JR::MP::Version2c) target.max_repetitions = 1 target.non_repeaters = 2
target.get_bulk(oids).each do |vb| puts vb.to_s end
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
