nanog mailing list archives

Re: using expect to log into devices


From: "Scott Weeks" <surfer () mauigateway com>
Date: Sat, 21 Jul 2018 01:14:39 -0700



--- jwbensley () gmail com wrote:
From: James Bensley <jwbensley () gmail com>

:: 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 another.  Then I just vi 
the files and done.  


:: 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/

Thanks,  it's beertime Friday, so I will 
look at it tomorrow.  However, I'd sure like
to know why I an using up all the file 
descriptors on the system.

scott


Current thread: