Skip to content

Instantly share code, notes, and snippets.

@irjudson
Created July 31, 2009 15:23
Show Gist options
  • Save irjudson/159269 to your computer and use it in GitHub Desktop.
Save irjudson/159269 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'snmp'
module SNMP
class MIB
def get_name(oid)
# @names = @by_name.invert
# @names[oid]
puts "YEAH RIGHT"
end
end
end
SNMP::MIB.get_name("adlfk")
./walk.rb:16: undefined method `get_name' for SNMP::MIB:Class (NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment