I will enhance this with show logging | begin ^000699    :)

Ed Ravin wrote:
>> On Thu, May 24, 2007 at 05:26:01PM +0300, Tassos Chatzithomaoglou wrote:
>>> I was wondering....
>>>
>>> Is there a way to display the x last lines of the log of a router (through 
>>> the cli) ?
>>> Like the CatOS "sh logging buffer -x" is doing.
> 
> Or like the Unix "tail" command?  Apparently not.  But here's a really,
> really, really ugly way to simulate it:
> 
> In your config, put:
> 
>   service sequence-numbers
> 
> And then, if you know the sequence numbers of the last few messages,
> you can ask to see the last few messages via regexp:
> 
>   Router#show logging | inc (0700|0699):
>   000699: .May 24 10:54:19: %SYS-5-CONFIG_I: Configured from console by admin 
> on vty0 (10.10.10.10)
>   000700: .May 24 10:54:26: %SYS-5-CONFIG_I: Configured from console by admin 
> on vty0 (10.10.10.10)
_______________________________________________
cisco-nsp mailing list  [email protected]
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/

Reply via email to