Skip to content

Instantly share code, notes, and snippets.

Created November 23, 2010 07:48
Show Gist options
  • Select an option

  • Save anonymous/711420 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/711420 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