Displays UNIX log files or Windows log entries
Product | Command Type |
---|---|
ClearCase | cleartool subcommand |
ClearCase LT | cleartool subcommand |
Attache | command |
Platform |
---|
UNIX |
Windows |
ClearCase and Attache-Display logs graphically:
ClearCase and Attache-Display logs nongraphically:
ClearCase and Attache-Display the current set of logs:
ClearCase LT on UNIX-Display logs:
ClearCase LT on Windows-Display logs graphically:
ClearCase LT on Windows-Display logs nongraphically:
ClearCase LT-Display the current set of logs:
The getlog command displays extracts from one or more log files (UNIX) or log entries (Windows). Run getlog -inquire to return a list of the available logs.
NOTE: If the host for which you are trying to view logs is having problems, you may have to
UNIX-Go to the log directory (/var/adm/atria/log) and use standard commands to look at the log files
Windows-Open the Windows NT Event Viewer to view the log entries
When a command fails because of an error on the helper host, if the helper is still active, you can use getlog on the client to fetch the helper error messages.
DISPLAYING ENTRIES GRAPHICALLY. Default: Entries are displayed in the current command window.
SPECIFYING LOG EXTRACTS. Default: Displays the last 10 lines for the specified logs (equivalent to specifying -last 10).
date | := | day-of-week | long-date |
time | := | h[h]:m[m][:s[s]] [UTC [ [ + | - ]h[h][:m[m] ] ] ] |
day-of-week | := | today |yesterday |Sunday | ... |Saturday |Sun | ... |Sat |
long-date | := | d[d]-month[-[yy]yy] |
month | := | January |... |December |Jan |... |Dec |
SPECIFYING WHICH HOST'S LOGS TO DISPLAY. Default for ClearCase and Attache: Get the current host's log files. These options are not applicable to ClearCase LT, where the host is always the ClearCase LT server host.
SPECIFYING THE LOGS TO DISPLAY. Default: None. You must specify one or more log names, -all to view all logs, or -inquire to return the list of available logs.
(unformatted)
.The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
Return the list of available logs.
cmd-context getlog -inquire
vobsnap ClearCase VOB snapshot log
vobrpc ClearCase vobrpc_server log
vob_scrubber ClearCase vob scrubber log (unformatted)
vob ClearCase vob_server log
view ClearCase view_server log
...
Display the last 10 lines of the current host's vob_server log. For information about vob_server, see the Administrator's Guide.
cmd-context getlog vob
==========================================================================
Log Name: vob Hostname: superior Date: 24-Feb-99.16:51:02
Selection: Last 10 lines of log displayed
--------------------------------------------------------------------------
02/22/99 00:52:52 vob_server(183): debug=0, verbose=0, dont_fsync=0, check_for_nulls=0,
wait_time=500ms
02/22/99 00:52:52 vob_server(183): UID: 1049610 GID: 1049650
02/22/99 00:52:52 vob_server(183): using C:\USERS\vobs\ms_test.vbs, on host: superior
02/22/99 00:52:51 vob_server(183): addr = 0, port= 1247
02/22/99 00:50:37 vob_server(167): debug=0, verbose=0, dont_fsync=0, check_for_nulls=0,
wait_time=500ms
02/22/99 00:50:37 vob_server(167): UID: 1049610 GID: 1049650
02/22/99 00:50:37 vob_server(167): using C:\USERS\vobs\smg_bld.vbs, on host: superior
02/22/99 00:50:36 vob_server(167): addr = 0, port= 1201
02/19/99 01:10:47 vob_server(166): debug=0, verbose=0, dont_fsync=0, check_for_nulls=0,
wait_time=500ms
02/19/99 01:10:47 vob_server(166): UID: 1049610 GID: 1049650
=============================================================================
Display host saturn's view log entries within 20 minutes of 4:00 P.M. on August 24.
cmd-context getlog -host saturn -around 24-Aug.16:00 20 view
=============================================================================
Log Name: view Hostname: saturn Date: 25-Aug-99.17:28:57
Selection: Lines between 24-Aug-99.15:40:00 and 24-Aug-99.16:20:00 displayed
-----------------------------------------------------------------------------
08/24/99 16:02:26 view_server(4904): Using 2097152 bytes of cache
08/24/99 16:02:26 view_server(4904): Db initialized
08/24/99 16:02:26 view_server(4904): Db initialized
08/24/99 16:02:26 view_server(4904): View server addr = 0, port= 35200
08/24/99 16:02:25 view_server(4904): View server addr = 0, port= 40227
=============================================================================
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |