[nsp] Script for gathering logs from routers?

John Jackson jjackson at onenet.net
Thu Oct 30 16:17:02 EST 2003


We really don't use this a replacement for syslog, but we use screen, then
ssh to routers, then 'term mon'.  From there you could log that ssh session
and have something that is real time.

> -----Original Message-----
> From: cisco-nsp-bounces at puck.nether.net [mailto:cisco-nsp-
> bounces at puck.nether.net] On Behalf Of C. Jon Larsen
> Sent: Thursday, October 30, 2003 2:55 PM
> To: Temkin, David
> Cc: 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/
> >
> 
> --
> + Jon Larsen: Chief Technology Officer, Richweb, Inc.
> + Richweb.com: Providing Internet-Based Business Solutions since 1995
> + GnuPG Public Key: http://richweb.com/jlarsen.gpg
> + Business: (804) 359.2220 x 101; Mobile: (804) 307.6939
> 
> _______________________________________________
> 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