[c-nsp] display last lines of logging

Curtis Doty Curtis at GreenKey.net
Sat Jun 2 23:19:19 EDT 2007


This may be cheating, but...from your favorite unix host:

 	realOS$ ssh IOS124.example.com show log |tail

../C

Yesterday Rodney Dunn said:

> I've had some preliminary discussions with them about some of
> these ideas. Unfortunately the way it's implemented today it's
> not as simple as it seems. I'm not sure I will be able to
> make these happen unfortunately.
>
> The event logs are a different infrastructure so they had
> some of this capability designed in to it.
>
> Rodney
>
> On Thu, May 31, 2007 at 01:03:35AM +0930, Brad Gould wrote:
>> How about
>>
>> rtr#sh log last <x>
>>
>> where x=minutes?
>>
>>
>> Brad
>>
>>
>>
>> Rodney Dunn wrote:
>>> Good suggestion. Let me see if I can convince development to code it.
>>>
>>> We have some of those things with the event log infrastructure already.
>>>
>>> UUT_#sh monitor event-trace ssm ?
>>>   all         Show all the traces in current buffer
>>>   back        Show trace from this far back in the past
>>>   clock       Show trace from a specific clock time/date
>>>   from-boot   Show trace from this many seconds after booting
>>>   latest      Show latest trace events since last display
>>>   parameters  Paramters of the trace
>>>
>>>
>>> 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.



More information about the cisco-nsp mailing list