[148559] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: accessing multiple devices via a script

daemon@ATHENA.MIT.EDU (chip)
Wed Jan 18 11:48:51 2012

In-Reply-To: <CAPoCSvtrRhCc4T_LOdz_7EAhwckeP58zJfvy8UfiLjf4qq48LQ@mail.gmail.com>
Date: Wed, 18 Jan 2012 11:48:02 -0500
From: chip <chip.gwyn@gmail.com>
To: Abdullah Al-Malki <a.almalki1402@gmail.com>
Cc: nanog@nanog.org
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

Like many others on here, I utilize rancid's set of scripts to handle
all the different platform's quirks for access.  I then wrap that
inside a perl script that can do things in parallel.  I'm no developer
by any stretch of the imagination but I can poke around in perl badly
enough to write some tools.  One perl module I've come across is
Parallel::Fork::BossWorkerAsync.  Using this module makes it
incredibly easily to run many instances in parallel while each
instance is just a bit different and then can gather data back from
each session.  Using some form of parallelization can significantly
decrease the amount of time things take.  I hope you find it as useful
as I have.

http://search.cpan.org/~jvannucci/Parallel-Fork-BossWorkerAsync-0.06/lib/Pa=
rallel/Fork/BossWorkerAsync.pm

Good Luck!

--chip

On Sun, Jan 15, 2012 at 12:52 PM, Abdullah Al-Malki
<a.almalki1402@gmail.com> wrote:
> Hi fellows,
> I am supporting a big service provider and sometimes I face this problem.
> Sometimes I want to access my customer network and want to extract some
> verification output "show commands" from a large number of devices.
>
> What kind of scripting solutions you guys are using this case.
>
> Appreciate the feedback,
> Abdullah



--=20
Just my $.02, your mileage may vary,=A0 batteries not included, etc....


home help back first fref pref prev next nref lref last post