[nsp] Cisco commands automatically sent
Mark Kent
mark@noc.mainstreet.net
Fri, 9 Aug 2002 08:48:47 -0700 (PDT)
>> I would like to know if it is possible to write a program on a Unix
>> box where it could automatically run some commands on a
>> cisco devices (7200 series and 3500XL) like:
You can do it using 'expect' and there is also a
program called 'cnct' that works something like
cnct -p password -c file_of_commands router
A search turns up this:
http://web.infoave.net/~anonymous/unix/README.CISCO
which also references a cisco-expect.shar,
written by one of the UUnet originals.
Searching for ccm.tar I found:
http://www.free.net/ftp/networking/management/cisco/
and the ccm.tar there appears to contain the correct cnct.
The C code is short enough so you can visually confirm
what it does.
-mark