[nsp] Script for gathering logs from routers?

Nipper, Arnold arnold at nipper.de
Thu Oct 30 17:55:10 EST 2003


Use rancid. Then all you have to do is to type

 clogin -c"show logging" router1 router2 router3 ...

You find Rancid at http://www.shrubbery.net/rancid/


Arnold



On Thursday, October 30, 2003 9:56 PM, Temkin, David <temkin at sig.com> wrote:
> Understood.  I was looking for said script instead of writing it myself,
but
> I seem to have stirred up more trouble than it's worth :-)
>
> -----Original Message-----
> From: C. Jon Larsen [mailto:jlarsen at richweb.com]
> Sent: Thursday, October 30, 2003 3:55 PM
> To: Temkin, David
> Cc: 'Streiner, Justin'; cisco-nsp at puck.nether.net
> Subject: RE: [nsp] Script for gathering logs from routers?
>
>
>
> On Thu, 30 Oct 2003, Temkin, David wrote:
>
>> To answer the last four emails, I have an issue where the router is
>> outside of a firewall and it's not acceptable to open the syslog port
>> inbound, so instead we're going to opt for gathering the logs.
>
> Try setting the terminal length to 0, and then using the show log command
> from a scripted (expect or perl) rsh/ssh session.
>
>
>>
>> Thanks,
>> -Dave
>>
>> -----Original Message-----
>> From: Streiner, Justin [mailto:streiner at stargate.net]
>> Sent: Thursday, October 30, 2003 3:23 PM
>> To: cisco-nsp at puck.nether.net
>> Subject: Re: [nsp] Script for gathering logs from routers?
>>
>>
>> On Thu, 30 Oct 2003, Temkin, David wrote:
>>
>>> Anyone have an expect (or similar) script that collects the "show
>>> log"
>>> from a router and appends it to a file?  I could write it myself, but
>>> I figured if someone already had one written I would save myself from
>>> re-inventing the wheel :-)
>>
>> Why not have the routers send their logs to a syslog server, or are
>> you looking for some piece of data that doesn't get syslog'd?
>>
>> jms
>> _______________________________________________
>> cisco-nsp mailing list  cisco-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-nsp
>> archive at http://puck.nether.net/pipermail/cisco-nsp/
>> _______________________________________________
>> cisco-nsp mailing list  cisco-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-nsp
>> archive at http://puck.nether.net/pipermail/cisco-nsp/




More information about the cisco-nsp mailing list