using expect to log into devices

Scott Weeks surfer at mauigateway.com
Sat Jul 21 08:14:39 UTC 2018



--- jwbensley at gmail.com wrote:
From: James Bensley <jwbensley at 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



More information about the NANOG mailing list