Created
July 31, 2009 15:23
-
-
Save irjudson/159269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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