Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from anonymous/gist:711420
Created November 23, 2010 07:52
Show Gist options
  • Select an option

  • Save radar/711425 to your computer and use it in GitHub Desktop.

Select an option

Save radar/711425 to your computer and use it in GitHub Desktop.
device ||= Net::SSH::Telnet.new("Host" => "192.168.0.2",
"Dump_log" => "dump_log3",
"Username" => "admn",
"Password" => "",
"Timeout" => 60000,
"Prompt" => /^CMD>$/)
device.cmd(params[:cmd]) {|c| $output << c}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment