RE: Re: using expect to log into devices

2018-07-25 Thread Jamie Bowden
Jimmy Hess > > On Tue, Jul 24, 2018 at 9:55 PM, Scott Weeks > wrote: > > > > --- valdis.kletni...@vt.edu wrote: > > From: valdis.kletni...@vt.edu > > > > On Sun, 22 Jul 2018 00:43:35 +0200, Niels Bakker said: > > > Fine as a personal exercise, of course. The inability to download > > > modules

Re: using expect to log into devices

2018-07-24 Thread Jimmy Hess
On Tue, Jul 24, 2018 at 9:55 PM, Scott Weeks wrote: > > --- valdis.kletni...@vt.edu wrote: > From: valdis.kletni...@vt.edu > > On Sun, 22 Jul 2018 00:43:35 +0200, Niels Bakker said: > > Fine as a personal exercise, of course. The inability to download > > modules seems sadistic to me, though. >

Re: using expect to log into devices

2018-07-24 Thread Scott Weeks
--- valdis.kletni...@vt.edu wrote: From: valdis.kletni...@vt.edu On Sun, 22 Jul 2018 00:43:35 +0200, Niels Bakker said: > Fine as a personal exercise, of course. The inability to download > modules seems sadistic to me, though. And given the adage "Never create a rule you can't enforce", I wo

Re: using expect to log into devices

2018-07-24 Thread Scott Weeks
Was out. Late reply... --- niels=na...@bakker.net wrote: From: Niels Bakker * sur...@mauigateway.com (Scott Weeks) [Sat 21 Jul 2018, 22:38 CEST]: >I had already done this in PERL, but, even though we have PERL, we >are not allowed to download modules here. So, I'm redoing it in >Expect. I

Re: using expect to log into devices

2018-07-22 Thread valdis . kletnieks
On Sun, 22 Jul 2018 00:10:06 -0400, J Crowe said: > Have you looked into utilizing Ansible? Yes, we use Ansible heavily on production services. But Ansible doesn't *stop* somebody from downloading modules, especially if it's a laptop used for diagnosis/testing. pgpCUNzXhlEPO.pgp Description: P

Re: using expect to log into devices

2018-07-21 Thread J Crowe
Have you looked into utilizing Ansible? On Sat, Jul 21, 2018 at 8:22 PM wrote: > On Sun, 22 Jul 2018 00:43:35 +0200, Niels Bakker said: > > Fine as a personal exercise, of course. The inability to download > > modules seems sadistic to me, though. > > And given the adage "Never create a rule yo

Re: using expect to log into devices

2018-07-21 Thread valdis . kletnieks
On Sun, 22 Jul 2018 00:43:35 +0200, Niels Bakker said: > Fine as a personal exercise, of course. The inability to download > modules seems sadistic to me, though. And given the adage "Never create a rule you can't enforce", I wonder how they enforce it - have to be pretty hardcore to make sure th

Re: using expect to log into devices

2018-07-21 Thread Niels Bakker
* sur...@mauigateway.com (Scott Weeks) [Sat 21 Jul 2018, 22:38 CEST]: I had already done this in PERL, but, even though we have PERL, we are not allowed to download modules here. So, I'm redoing it in Expect. I thought someone would say a "oh just and you're done" type of response. Well, wh

Re: using expect to log into devices

2018-07-21 Thread Scott Weeks
--- ler...@gmail.com wrote: From: Lee > I have a file with 1000s of devices and another file > with a list of commands. The program issues all > commands for a device and then moves on to the next > one using nested loops. In the debug I see the > "spawn_id expNN" (where NN is a number that,

Re: using expect to log into devices

2018-07-21 Thread Lee
On 7/20/18, Scott Weeks wrote: > > I have looked extensively on the web for an answer > and cannot find one, so I come to you guys. I am > not allowed to use modules in PERL or Python or I > wouldn't have to do it this way. I have to do this > all in Expect and I am a newbie at it. > > Also, may

Re: using expect to log into devices

2018-07-21 Thread Scott Weeks
--- jwbens...@gmail.com wrote: From: James Bensley :: Do you need to write this yourself, No, but I'm tired of being a coding wussie, so this is 1) an exercise for me in getting better at it and 2) I want it to read a list of machines from one file and execute a list of commands from anot

Re: using expect to log into devices

2018-07-21 Thread James Bensley
Do you need to write this yourself, I've used this expect script too many times such that I should be ashamed...It "just works": https://sourceforge.net/projects/cosi-nms/files/ciscocmd/ Cheers, James.

using expect to log into devices

2018-07-20 Thread Scott Weeks
I have looked extensively on the web for an answer and cannot find one, so I come to you guys. I am not allowed to use modules in PERL or Python or I wouldn't have to do it this way. I have to do this all in Expect and I am a newbie at it. Also, maybe I'm having the Friday afternoon "I want