[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cisco-nsp
Subject:    Re: [c-nsp] script
From:       James Bensley <jwbensley () gmail ! com>
Date:       2016-09-21 13:20:43
Message-ID: CAAWx_pW4HB9y3sw7rwgZffOaeLMbCfEeuRYf=Xi-Jq3aXdM4sg () mail ! gmail ! com
[Download RAW message or body]

On 21 September 2016 at 12:10, Lijalem Fetene <lijalem.mhr@gmail.com> wrote:
> Dears,
> I want to login to hundreds of routers  simultaneously  in  either telnet
> /ssh and execute some command to each device and return the output. Is
> there anyone to help me please ?

If you actually want the command to be run in parallel across all the
devices you can use Salt.

If not and you are happy for this to be run in series you can use
ciscocmd (an expect script,
https://sourceforge.net/projects/cosi-nms/files/ciscocmd/), NAPALM
(this is like expect but in Python,
https://github.com/napalm-automation/napalm), RANCID (also builds on
expect), Anisible (using SSH, https://www.ansible.com/) or write a
multi-threaded wrappar in C/Go/Python.

Cheers,
James.
_______________________________________________
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic