[c-nsp] scp running/startup config

Laurent Geyer lgeyer at gmail.com
Sun Nov 23 01:27:58 EST 2008


On Sat, Nov 22, 2008 at 9:55 PM, Tim Durack <tdurack at gmail.com> wrote:

> On Sat, Nov 22, 2008 at 9:46 PM, ghostonthewire
> <ghostonthewire at gmail.com> wrote:
> > Tim Durack wrote:
> >>
> >> Amazing:
> >>
> >> usziplab001:~/config/Core# !scp
> >> scp acl.txt tdurack at router:running-config
> >> Password:
> >> acl.txt                                  100% 1694     1.7KB/s   00:01
> >>
> >> I can dump a bunch dumb expect scripts now.
> >>
> >
> > Expect scripts can handle exceptions caused by erroneus input, and
> perform
> > rollback action or just warn you that something went wrong, but copying
> just
> > performs unpredictable merge. Or it discards entire acl.txt on syntax
> error?
>
> Not if the acl scripts are of the form:
>
> no ip access list extended acl_name
> ip access list extended acl_name
> ...
> end


Exactly how is scp going to save you?

You have to handle the exceptions whether expect writes the commands to
stdout or whether they get parsed after being copied to the running config
via scp.

- Laurent


More information about the cisco-nsp mailing list