Skip to content

Instantly share code, notes, and snippets.

@craigw
Created July 20, 2009 19:37
Show Gist options
  • Save craigw/150813 to your computer and use it in GitHub Desktop.
Save craigw/150813 to your computer and use it in GitHub Desktop.
class Command
class << self
def execute(name, channel, username, arguments)
hostname, oid, remainder = arguments.split(/ /, 3)
`snmpwalk -c public -v 1 #{hostname}.core.xeriom.net #{oid}`
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment