Re: Saving configs

Jeff T. Carneal (jeff@apex.apex.net)
Sat, 5 Apr 1997 10:10:14 -0600 (CST)

On Sat, 5 Apr 1997, Jeffrey J. Mountin wrote:

> At 04:42 PM 4/4/97 -1000, Sherwood Pekelo wrote:
> >*ding* (light goes on)
> >
> >Jeff, could you post a sample deleting/changing the appropriate
> >information, such as password.
>
> set password fubar
> set ether0 address a.b.c.10
> set chap off
> set authentic a.b.c.1
> set nameserver a.b.c.1
> set nameserver 2 a.b.c.2
> set loghost a.b.c.1
> set syslog user-logins local4.info
> set syslog termination local4.info
> set syslog admin-logins local6.info
> set ipx off
> set gateway a.b.c.254 1
> set default broadcast
> set ether0 routing listen
> set ospf enable
> save all
> reboot

Seems to me this would be a trivial expect script. I know it would be
nice to have it in the ComOS, but in the interim write a script that asks
for the variables, then telnets to your box and sets a particular (or all)
ports up with the above commands (or whatever else you want). Trust me,
this would be *really* simple even if you've never SEEN expect.

'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'
`' Jeff Carneal / Sys Admin \ Apex Internet `'
`' jeff@apex.net http://www.apex.net `'
`' The opinions expressed above aren't really mine. They belong to `'
`' someone else who also refuses to take responsibility for them. `'
'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'