getlog

Displays ClearCase log entries

APPLICABILITY

ClearCase (cleartool subcommand), Attache (command)

SYNOPSIS

DESCRIPTION

The getlog command displays extracts from one or more ClearCase log entries. Run getlog -inquire to return a list of the available logs. getlog does not need a license, so you can use it to help diagnose problems on your license server host.

In Attache, 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.

NOTE: If the host for which you are trying to view log entries is having problems (for example, the albd_server is not functioning correctly or the host cannot spawn an admin_server), you may have to open the Windows NT Event Viewer to view the log entries.

PERMISSIONS AND LOCKS

Permissions Checking: No special permissions required. Locks: No locks apply.

OPTIONS AND ARGUMENTS

(CLEARCASE ONLY) DISPLAYING ENTRIES GRAPHICALLY. Default: Entries are displayed in the current command window.

-g·raphical

Starts a log browser (cleargetlog) to display entries.

SPECIFYING LOG EXTRACTS.   Default: Displays the last 10 lines for the specified logs (equivalent to specifying -last 10).

-las·t [ #_lines ]

Gets the last #_lines lines for the specified logs. The default value of #_lines is 10.
-fu·ll

Gets the complete contents of the specified logs.
-sin·ce date-time
-aro·und date-time [ #_minutes ]

The -since option gets log entries made since date-time. The -around option gets log entries #_minutes minutes either side of date-time. The default value of #_minutes is 10. If you specify either of these options for an unformatted log file, getlog prints an error. (getlog -inquire indicates unformatted logs.)
The date-time argument can have any of the following formats:
date.time | date | time | now
where:

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

Specify time in 24-hour format, relative to the local time zone. If you omit the time, the default value is 00:00:00. If you omit date, the default is today. If you omit the century, year, or a specific date, the most recent one is used. Specify UTC if you want ClearCase to resolve the time to the same moment in time regardless of time zone. Use the plus (+) or minus (-) operator to specify a positive or negative offset to the UTC time. If you specify UTC without hour or minute offsets, Greenwich Mean Time (GMT) is used. (Dates before January 1, 1970 Universal Coordinated Time (UTC) are invalid.)

SPECIFYING WHICH HOST'S LOGS TO DISPLAY.   Default: Get the current host's log files.

-hos·t hostname

Gets logs from hostname.
-cvi·ew

Gets logs from the current view's view host.
-tag view-tag

Gets logs from the view server host of the specified view.
-vob pname-in-vob

Gets logs from the VOB server host of the specified VOB.

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.

-inq·uire

Returns the list of available logs, which can vary with the host's installed product set and configuration. Unformatted logs are annotated with the string (unformatted).
-a·ll

Displays every available log file.
log-name ...

Specifies one or more logs of interest. Use -inquire to list valid log names.

EXAMPLES

Examples including 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 command interpreter prompt. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.

cmd-context getlog -inquire
  host_agent ClearCase Host Agent log
   cccredmgr ClearCase cccredmgr log
     vobsnap ClearCase VOB snapshot log
vob_scrubber ClearCase vob scrubber log (unformatted)
         vob ClearCase vob_server log
        view ClearCase view_server log
...
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
=============================================================================

SEE ALSO

cleargetlog, errorlogs_ccase



Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved.