[nsp] Cisco commands automatically sent

Robert A. Hayden rhayden@geek.net
Fri, 9 Aug 2002 11:01:38 -0500 (CDT)


Look into "expect" which is a simple scripting language that will execute
stuff based on text received from the other side (like a prompt sign)

On Fri, 9 Aug 2002, odusseus wrote:

> Hi,
>
> +----------------+
> | Unix box       |
> | running a prog |
> +----------------+
>         |
>         |
>         |
>         |
>         V
> +---------------------+
> | Cisco device        |
> | (router or switche) |
> +---------------------+
>
>
> 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:
>
> enable
> conf t
> int fa0/1
> shut
> end
>
> Thank you.
>
> Regards,
>
> Christophe
> ------------------------------------------
>
> Faites un voeu et puis Voila ! www.voila.fr
>
> _______________________________________________
> cisco-nsp mailing list  real_name)s@puck.nether.net
> http://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
>