From: "Mike B." Date: 2013-03-22T07:05:49+09:00 Subject: Re: Cisco Ruby pexpect equivalent Full Disclosure! I'm one of the founders of Scriptrock..try it with our product. We are in the middle of readying for launch, but most of the features you've described we do at the moment and you can log in now ;) Cliff Rosson wrote in post #1102299: > Huh. I use something like this.... > > This is an extremely old script of mine but still does the job. > > require 'rubygems' >> >> >> >> >> @ssh.close >> >> end >> >> >> >> end >> >> >> > > I then wrap it for different devices like F5 LTM or Cisco IOS. > > creds[:prompt] = /.*>|.*#/ > ssh.cmd("en\r#{creds[:enable]}") > ssh.cmd("term len 0") > config = @ssh.cmd("show run") > > But if you browse github there are even more elaborate things people > have > built out there for device automation/interaction. I don't know if you > need > pexpect but i am not that familiar with it. As a Sr Neteng I can tell > you > I've never used it and I'm an automation loon! > > > > On Tue, Mar 19, 2013 at 12:34 AM, Robert Klemme Fu -- Posted via http://www.ruby-forum.com/.