[SATLUG] Telnet scripts?
Pete Templin
petelists at templin.org
Wed Mar 29 16:32:54 CST 2006
On 3/29/06, Kase Saylor <h_oudini at hotmail.com> wrote:
>
> All,
>
> Is there a way to write a script that uses telnet? Basically I have a
> Cisco router that is configured via telnet, but instead of entering
> all of the parameters by hand during a telnet session, I would like
> to write a script that will logon to the router, write all of the
> config data and then exit. Thanks for any help.
(Apologies if someone else has already suggested this - I just signed
onto the list and don't see this thread in the archives yet.)
Have you looked into RANCID ("Really Awesome New Cisco confIg Differ")?
It's at http://www.shrubbery.net/rancid/. We use it at my day job to
pull the configuration off our 25+ routers every morning. It stores the
configs in CVS, and emails an alias with the CHANGES every day.
I didn't set it up, but one of my guys did, and if he did it the job
can't be that hard (heck, if any of us did it it won't be hard). It can
do far more than that - you can hook it into syslog and have it
auto-pull the configs every time syslog sees a "<blah> configured by
<user>, vtyXX etc.", so you get per-change tracking and accountability.
Others use it to automate nightly changes to their network, or other
triggered change events (yes, to "telnet" to the router and actually
execute batches of commands). We haven't gotten that far (yet), but
it's on the horizon.
Pete Templin
More information about the SATLUG
mailing list