098-00028-000 Revision F – May, 2012 TimeProvider 5000 User’s Guide 171
Chapter 3
TimeProvider 5000 CLI Command Set
show log
This command displays the specified log file from the local storage. The Index
parameter selects one of the seven rotated log files. The Head parameter, along
with the count value, displays the specified number of events from the beginning of
the file. The Tail parameter, along with the count value, displays the specified
number of events from the end of the file. If the Index is not specified or set to zero,
the current log file is displayed. If neither Head nor Tail parameter is issued, the 20
most recent entries are displayed. The log files are:
Alarm Log
Event Log
Command Log
Security Log
Command Syntax:
show log {alarm|event|command|security} [<index-value>][{head|tail}
<number-of-lines>]
Example 1:
To display the first 5 entries of the alarm log (5 lines from the head of current log)
tp5000> show log alarm head 5
Response:
Jan 01 00:00:10 TP5000 alarmd: 002,000,MINOR, IMC: GPS
engine not tracking satellite
Jan 01 00:00:34 TP5000 alarmd: 003,000,MAJOR, IMC: TOD
source GPS invalid
Jan 01 00:01:06 TP5000 alarmd: 049,000,MINOR, IMC: No IOC
present
Jan 01 00:01:08 TP5000 alarmd: 006,000,MINOR, IMC:
Management port link down
Jan 01 00:01:09 TP5000 alarmd: 011,000,MAJOR, IMC: GPS
antenna current out of range (6mA)
Example 2:
To display the last 10 entries of the event log (10 lines from the tail of current log)
tp5000> show log event tail 10
Example 3: