show logging logfile start-time end-time

Use this command to display lines from the log file within a given date-time range.

Command Syntax

Copy
show logging logfile start-time (<2000-2030> WORD <1-31> WORD) (|(end-time <2000-2030> WORD <1-31> WORD))

Parameters

start-time

Starting date and time:

<2000-2030>

Starting date of the year in YYYY format

WORD

Starting date of the month as jan, feb, mar,..., oct, nov, or dec (maximum length 3 characters)

<1-31>

Starting date of a day of month in DD format

WORD

Starting time in hour, minutes, and seconds in HH:MM:SS format (maximum length 8 characters); range <0-23>:<0-59>:<0-59>

end-time

Ending date and time:

<2000-2030>

Ending date of the year in YYYY format

WORD

Ending date the month as jan, feb, mar,..., oct, nov, or dec (maximum length 3 characters)

<1-31>

Ending date of a day of month in DD format

WORD

Ending time in hour, minutes,and seconds in HH:MM:SS format (maximum length 8 characters); range <0-23>:<0-59>:<0-59>

Command Mode

Execution mode

Applicability

This command was introduced before OcNOS version 1.3.

Examples

Copy
#sh logging logfile start-time 2019 Jan 04 06:20:49 end-time 2019 Jan 04 06:21:16
2019 Jan 04 06:20:49.611 : NE4-router : CMLSH : CLI_HIST : User root@/dev/ttyS0 : CLI : sh logging logfile
 
2019 Jan 04 06:21:08.512 : NE4-router : CMLSH : CLI_HIST : User root@/dev/ttyS0 : CLI : show logging logfile last-index
 
2019 Jan 04 06:21:16.246 : NE4-router : CMLSH : CLI_HIST : User root@/dev/ttyS0 : CLI : show logging logfile last-index