From: Cliff Rosson Date: 2013-03-22T10:52:38+09:00 Subject: Re: Cisco Ruby pexpect equivalent --047d7bdc0b24913d0204d879b52a Content-Type: text/plain; charset=ISO-8859-1 Reading up on this now and sending to my Neteng team. The opening video describes our problems to a T but maybe they do for many organizations. Looks exciting. I look forward to exploring more details. On Thu, Mar 21, 2013 at 3:05 PM, Mike B. wrote: > 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/. > > -- vizualize.me/cliffrosson --047d7bdc0b24913d0204d879b52a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Reading up on this now and sending to my Neteng team. The = opening video describes our problems to a T but maybe they do for many orga= nizations. Looks exciting. I look forward to exploring more details.


On Thu, Mar 2= 1, 2013 at 3:05 PM, Mike B. <lists@ruby-forum.com> wrote:=
Full Disclosure! =A0I'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'
>>
>>
>>
>>
>> =A0 =A0 @ssh.close
>>
>> =A0 end
>>
>>
>>
>> end
>>
>>
>>
>
> I then wrap it for different devices like F5 LTM or Cisco IOS.
>
> creds[:prompt] =3D /.*>|.*#/
> ssh.cmd("en\r#{creds[:enable]}")
> ssh.cmd("term len 0")
> config =3D @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<= br> > you
> I've never used it and I'm an automation loon!
>
>
>
> On Tue, Mar 19, 2013 at 12:34 AM, Robert Klemme


Fu



--
=
vizualiz= e.me/cliffrosson
--047d7bdc0b24913d0204d879b52a--