IPnom Home • Manuals • ClearCase

 Rational ClearCase Commands Reference

ClearCase Stuff:ClearCase LinksClearCase BooksClearCase Commands ReferenceClearCase ForumsClearCase News
Keyword Live Search (10 results max):
 Type in part of a ClearCase command in the search box.
 
Commands Index:
  intro
  annotate
  apropos
  catcr
  catcs
  cc.icon
  cc.magic
  cd
  chactivity
  chbl
  checkin
  checkout
  checkvob
  chevent
  chflevel
  chfolder
  chmaster
  chpool
  chproject
  chstream
  chtype
  chview
  clearaudit
  clearbug
  cleardescribe
  cleardiffbl
  cleardiff
  clearexport_ccase
  clearexport_cvs
  clearexport_pvcs
  clearexport_rcs
  clearexport_sccs
  clearexport_ssafe
  clearfsimport
  cleargetlog
  clearhistory
  clearimport
  clearjoinproj
  clearlicense
  clearmake
  clearmake.options
  clearmrgman
  clearprojexp
  clearprompt
  cleartool
  clearviewupdate
  clearvobadmin
  comments
  config_ccase
  config_spec
  cptype
  credmap
  creds
  deliver
  describe
  diffbl
  diffcr
  diff
  dospace
  edcs
  endview
  env_ccase
  events_ccase
  export_mvfs
  exports_ccase
  file
  find
  findmerge
  fmt_ccase
  getcache
  get
  getlog
  help
  hostinfo
  init_ccase
  ln
  lock
  lsactivity
  lsbl
  lscheckout
  lsclients
  lscomp
  lsdo
  lsfolder
  lshistory
  ls
  lslock
  lsmaster
  lspool
  lsprivate
  lsproject
  lsregion
  lsreplica
  lssite
  lsstgloc
  lsstream
  lstype
  lsview
  lsvob
  lsvtree
  makefile_aix
  makefile_ccase
  makefile_gnu
  makefile_pmake
  makefile_smake
  makefile_sun
  man
  merge
  mkactivity
  mkattr
  mkattype
  mkbl
  mkbranch
  mkbrtype
  mkcomp
  mkdir
  mkelem
  mkeltype
  mkfolder
  mkhlink
  mkhltype
  mklabel
  mklbtype
  mkpool
  mkproject
  mkregion
  mkstgloc
  mkstream
  mktag
  mktrigger
  mktrtype
  mkview
  mkvob
  mount_ccase
  mount
  msdostext_mode
  mvfslog
  mvfsstorage
  mvfstime
  mvfsversion
  mv
  omake
  pathnames_ccase
  permissions
  profile_ccase
  promote_server
  protect
  protectvob
  pwd
  pwv
  query_language
  quit
  rebase
  recoverview
  reformatview
  reformatvob
  register
  relocate
  rename
  reqmaster
  reserve
  rgy_backup
  rgy_check
  rgy_passwd
  rgy_switchover
  rmactivity
  rmattr
  rmbl
  rmbranch
  rmcomp
  rmdo
  rmelem
  rmfolder
  rmhlink
  rmlabel
  rmmerge
  rmname
  rmpool
  rmproject
  rmregion
  rmstgloc
  rmstream
  rmtag
  rmtrigger
  rmtype
  rmver
  rmview
  rmvob
  schedule
  schemes
  scrubber
  setactivity
  setcache
  setcs
  setplevel
  setsite
  setview
  shell
  snapshot.conf
  softbench_ccase
  space
  startview
  type_manager
  umount
  uncheckout
  unlock
  unregister
  unreserve
  update
  version_selector
  view_scrubber
  vob_restore
  vob_scrubber
  vob_sidwalk
  vob_snapshot
  vob_snapshot_setup
  wildcards_ccase
  winkin
  xclearcase
  xcleardiff
  xmldiffmrg

getlog

Displays UNIX log files or Windows log entries

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand
ClearCase LTcleartool subcommand

Platform
UNIX
Windows

SYNOPSIS

  • ClearCase—Display logs graphically:
    getlog –g·raphical [ –hos·t hostname | –cvi·ew | –tag view-tag
    | –vob pname-in-vob ]

  • ClearCase—Display logs nongraphically:
    getlog [ –las·t [ #_lines ] | –fu·ll | –sin·ce date-time
    | –aro·und date-time [ #_minutes ] ]
    [ –hos·t hostname | –cvi·ew | –tag view-tag | –vob pname-in-vob ]
    { –a·ll | log-name ... }

  • ClearCase—Display the current set of logs:
    getlog –inq·uire [ –hos·t hostname ]

  • ClearCase LT on UNIX—Display logs:
    getlog [ –las·t [ #_lines ] | –fu·ll | –sin·ce date-time
    | –aro·und date-time [ #_minutes] ]
    { –a·ll | log-name ... }

  • ClearCase LT on Windows—Display logs graphically:
    getlog –g·raphical

  • ClearCase LT on Windows—Display logs nongraphically:
    getlog [ –las·t [ #_lines ] | –fu·ll | –sin·ce date-time
    | –aro·und date-time [ #_minutes] ]
    { –a·ll | log-name ... }

  • ClearCase LT—Display the current set of logs:
    getlog –inq·uire

DESCRIPTION

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 do the following:

  • On UNIX, go to the log directory (/var/adm/rational/clearcase/log) and use standard commands to look at the log files.
  • On Windows, open the Windows NT Event Viewer to view the log entries.

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

Displaying Entries Graphically

Default
Entries are displayed in the current command window.

–g·raphical
Starts a log browser.

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 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. These options do not apply to ClearCase LT, because the host is always the ClearCase LT server host.

–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

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.

  • 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
    =============================================================================

UNIX FILES

/var/adm/rational/clearcase/log/*

SEE ALSO

Administrator's Guide

SPONSORED LINKS



 

ClearCase Links • ClearCase Books • ClearCase Commands Reference • ClearCase Forums • ClearCase News