OcNOS-SP : System Management Guide : System Management Command Reference : Syslog Commands : show logging logfile start-time end-time
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
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>
Year in YYYY format
WORD
Month as jan, feb, mar,..., oct, nov, or dec (maximum length 3 characters)
<1-31>
Day of month in DD format
WORD
Hour, minutes, 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>
Year in YYYY format
WORD
Month as jan, feb, mar,..., oct, nov, or dec (maximum length 3 characters)
<1-31>
Day of month in DD format
WORD
Hour, minutes, seconds in HH:MM:SS format (maximum length 8 characters); range <0-23>:<0-59>:<0-59>
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#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
#
 
Last modified date: 10/19/2023