table of contents
| CONDOR_HISTORY(1) | HTCondor Manual | CONDOR_HISTORY(1) |
NAME¶
condor_history - HTCondor Manual
View historical ClassAds.
SYNOPSIS¶
condor_history [-help]
condor_history [OPTIONS] [cluster... | cluster.proc... | user...]
condor_history [-debug] [-name name] [-pool hostname[:port]] [-backwards | -forwards] [-constraint] [-since jobid | expr] [-completedsince timestamp] [-scanlimit N] [-match | -limit N] [-local] [-schedd | -startd | -epochs[:d] | -transfer-history[iIoOcC] | -daemon] [-file filename] [-userlog filename] [-search path] [-dir/-directory] [-format FormatString Attribute] [-af/-autoformat[:jlhVr,tng] Attribute [Attribute ...]] [-print-format filename] [-l/-long] [-attributes Attribute[,Attribute,...]] [-xml] [-json] [-jsonl] [-wide[:N]] [-extract filename]
DESCRIPTION¶
Read historical ClassAds from local history files. By default read job ClassAds from the HISTORY <href="../admin-manual/configuration/global.html#HISTORY"> files. With the command line option -name, read from remote APs.
OPTIONS¶
- -help
- Display usage information and exit.
- -debug
- Causes debugging information to be sent to stderr, based on the value of the configuration variable TOOL_DEBUG <href="../admin-manual/configuration/global.html#TOOL_DEBUG">.
- -name name
- Query the named condor_schedd daemon. If used with -startd, query the named condor_startd daemon.
- -pool hostname[:port]
- Use the hostname as the central manager to locate daemons to query for historical ClassAds.
- -backwards
- List ClassAds in reverse chronological order. The ClassAd most recently added to the history file is first. This is the default ordering.
- -forwards
- List ClassAds in chronological order. The ClassAd most recently added to the history file is last.
- cluster
- Only display ClassAds containing the specified ClusterId <href="../classad-attributes/job-classad-attributes.html#ClusterId">'s.
- cluster.process
- Only display ClassAds containing the specific JobID (ClusterId <href="../classad-attributes/job-classad-attributes.html#ClusterId">. ProcId <href="../classad-attributes/job-classad-attributes.html#ProcId">).
- user
- Only display ClassAds containing the specified Owner <href="../classad-attributes/job-classad-attributes.html#Owner">.
- -constraint expr
- Display ClassAds that satisfy the expression.
- -since jobid or expr
- Stop scanning when the ClassAd contains the specified JobId or when the expresion evaluates to True.
- -completedsince timestamp
- Scan until the first ClassAd that completed on or before the given unix timestamp. The argument can be any expression that evaluates to a unix timestamp. This option is equivalent to -since 'CompletionDate<=time_expr'.
- -scanlimit N
- Stop scanning when the given number of ClassAds have been read.
- -limit N
- Limit the number of ClassAds displayed to Number. Same option as -match.
- -match Number
- Limit the number of ClassAds displayed to Number. Same option as -limit.
- -local
- Read from local history files even if there is a SCHEDD_HOST <href="../admin-manual/configuration/global.html#SCHEDD_HOST"> configured.
- -schedd
- Query for ClassAds recorded in the HISTORY <href="../admin-manual/configuration/global.html#HISTORY"> files. This is the default.
- -startd
- Query for ClassAds recorded in the STARTD_HISTORY <href="../admin-manual/configuration/startd.html#STARTD_HISTORY"> rather than the Schedd's history files. Use the -name option to query a remote StartD.
- -epochs[:d]
- Query for ClassAds recorded in the JOB_EPOCH_HISTORY
<href="../admin-manual/configuration/shadow.html#JOB_EPOCH_HISTORY">
rather than the Schedd's default completion history file.This option may
be followed by a colon character for extra functionality:
d Delete job epoch files after finished reading. This option only deletes epoch files store within JOB_EPOCH_HISTORY_DIR <href="../admin-manual/configuration/shadow.html#JOB_EPOCH_HISTORY_DIR">, and can not be used with -match, -limit, or -scanlimit.
- -transfer/-transfer-history[:iIoOcC]
- Query input, output, and checkpoint transfer ClassAds recorded in the JOB_EPOCH_HISTORY <href="../admin-manual/configuration/shadow.html#JOB_EPOCH_HISTORY">. This option may be followed by a colon to specify specific transfer types to query:
- I/i Query Input transfer ClassAds.
- O/o Query Output transfer ClassAds.
- C/c Query Checkpoint transfer ClassAds.
Note:
- -daemon
- Query for ClassAds recorded in the <SUBSYS>_DAEMON_HISTORY
<href="../admin-manual/configuration/global.html#<SUBSYS>_DAEMON_HISTORY">
Note:
- -file filename
- Query ClassAd records from the specified filename.
- -userlog filename
- Display HTCondor job information coming from a job event log. A job event log does not contain all of the job information so some fields in the normal output of will be blank.
- -search path
- Query ClassAd records from the specified path filename and all matching HTCondor time rotated files (filename.YYYYMMDDTHHMMSS). If used with -dir option then the path directory is used to search for specific pattern matching history files.
- -dir/-directory
- Search for files in a sources alternate directory configuration knob to
read from instead of default history file.
Note:
- -format formatString AttributeName
- Display jobs with a custom format. See the condor_q <href="../man-pages/condor_q.html"> -format option for details.
- -af/-autoformat[:jlhVr,tng] Attribute [Attribute ...]
- Display attribute(s) or expression(s) formatted in a default way depending on the type of each Attribute specified after the option. It is assumed that no Attributes begin with a dash character so that the next word that begins with a dash is considered another option. This option may be followed by a colon character and formatting qualifiers to deviate the output formatting from the default:
- j print the ClassAds associated JobID as the first field.
- l label each field.
- h print column headings before the first line of output.
- V use %V rather than %v for formatting (string values are quoted).
- r print "raw", or unevaluated values.
- , add a comma character after each field.
- t add a tab character before each field instead of the default space character.
- n add a newline character after each field.
- g add a newline character between ClassAds, and suppress spaces before each field.
Warning:
The l and h qualifiers may not be used together.
- -print-format filename
- Read output formatting information from the given custom print format file. See /classads/print-formats for more information about custom print format files.
- -l/-long
- Display ClassAds in long format.
- -attributes Attribute[,Attribute,...]
- Display only the Attributes specified when using the -long option. Display only the given attributes when the -long o ption is used.
- -xml
- Display job ClassAds in XML format.
- -json
- Display job ClassAds in JSON format.
- -jsonl
- Display job ClassAds in JSON-Lines format: one job ad per line.
- -wide[:N]
- Restrict output to the given column width. Default width is 80 columns, if -wide is used without the optional N argument, the width of the output is not restricted.
- -extract filename
- Copy all constraint matching ClassAd entries from history files into the
spceifed filename to create a miniature history file for faster
queries via -file filename. By default this option will copy
up to 100,000 matching ads. To increase or decrease this limit use
the -limit option. To disable the limit use -limit -1.
Note:
Warning:
- -stream-results
- Send parsed ClassAds over socket rather than displaying to terminal.
Warning:
- -inherit
- Inherit the command socket of the Daemon that shelled this tool.
Warning:
- -type type[,type,...]
- Specify historical ClassAd banner types to use as an allow filter. Use ALL to parse all ClassAds found in the history files.
- -diagnostic
- Run tool in diagnostic mode increasing tool output. Separate from -debug.
GENERAL REMARKS¶
By default this tool queries for historical HTCondor Job ClassAds that have completed.
The default listing summarizes in reverse chronological order each ClassAd on a single line, and contains the following items:
- ID
- The ClusterId <href="../classad-attributes/job-classad-attributes.html#ClusterId">. ProcId <href="../classad-attributes/job-classad-attributes.html#ProcId"> of the job.
- OWNER
- The Owner <href="../classad-attributes/job-classad-attributes.html#Owner"> of the job.
- SUBMITTED
- The month, day, hour, and minute the job was submitted to the queue.
- RUN_TIME
- Remote wall clock time accumulated by the job to date in days, hours, minutes, and seconds, given as the job ClassAd attribute RemoteWallClockTime <href="../classad-attributes/job-classad-attributes.html#RemoteWallClockTime">.
- ST
- Completion status of the job (C = completed and X = removed).
- COMPLETED
- The time the job was completed.
- CMD
- The name of the job's executable.
The default information displayed for historical Schedd ClassAds queried from the SCHEDD_DAEMON_HISTORY <href="../admin-manual/configuration/global.html#<SUBSYS>_DAEMON_HISTORY"> are the following:
- TIMESTAMP
- The UNIX timestamp representing exactly when the record was written to the history file.
- DUTY_CYCLE
- The Schedd's RecentDaemonCoreDutyCycle <href="../classad-attributes/scheduler-classad-attributes.html#RecentDaemonCoreDutyCycle"> at the time the record was written.
- RunningJobs
- The Schedd's TotalRunningJobs <href="../classad-attributes/scheduler-classad-attributes.html#TotalRunningJobs"> at the time the record was written.
- IdleJobs
- The Schedd's TotalIdleJobs <href="../classad-attributes/scheduler-classad-attributes.html#TotalIdleJobs"> at the time the record was written.
- HeldJobs
- The Schedd's TotalHeldJobs <href="../classad-attributes/scheduler-classad-attributes.html#TotalHeldJobs"> at the time the record was written.
- Download
- The Schedd's TransferQueueNumDownloading <href="../classad-attributes/scheduler-classad-attributes.html#TransferQueueNumDownloading"> at the time the record was written.
- Waiting
- The Schedd's TransferQueueNumWaitingToDownload <href="../classad-attributes/scheduler-classad-attributes.html#TransferQueueNumWaitingToDownload"> at the time the record was written.
- WaitingMB
- The Schedd's FileTransferMBWaitingToDownload <href="../classad-attributes/scheduler-classad-attributes.html#FileTransferMBWaitingToDownload"> at the time the record was written.
- Upload
- The Schedd's TransferQueueNumUploading <href="../classad-attributes/scheduler-classad-attributes.html#TransferQueueNumUploading"> at the time the record was written.
- Waiting
- The Schedd's TransferQueueNumWaitingToUpload <href="../classad-attributes/scheduler-classad-attributes.html#TransferQueueNumWaitingToUpload"> at the time the record was written.
- WaitingMB
- The Schedd's FileTransferMBWaitingToUpload <href="../classad-attributes/scheduler-classad-attributes.html#FileTransferMBWaitingToUpload"> at the time the record was written.
EXIT STATUS¶
0 - Success
1 - Failure has occurred
EXAMPLES¶
Query all historical Job ClassAds with ClusterId <href="../classad-attributes/job-classad-attributes.html#ClusterId"> 42:
$ condor_history 42
Query the historical Job ClassAd for job 42.8:
$ condor_history 42.8
Query all historical Job ClassAds for user Cole:
$ condor_history cole
Query all historical Job ClassAds that have completed since job 42.8:
$ condor_history -since 42.8
Query all historical Job ClassAds completed since February 14th, 2002:
$ condor_history -completedsince 1644818400
Display specific ClassAd attributes nicely with JobIDs and a header for each historical Job ClassAd:
$ condor_history -af:jh CpusProvisioned DiskProvisioned GPUsProvisioned ExitCode
Query the oldest ClassAds in the history files:
$ condor_history -forwards
Query partial job information from a job event log:
$ condor_history -userlog job-42.8.log
Query historical ClassAds from a specific file:
$ condor_history -file temp-job.hist
Query historical Job ClassAds from remote Schedd:
$ condor_history -name ap2.chtc.wisc.edu
Query per run instance (epoch) historical Job ClassAds:
$ condor_history -epochs
Query all transfer ClassAds in json format:
$ condor_history -transfer -json
Query only Input and Output transfer ClassAds in long format:
$ condor_history -transfer-history:IO -l
Query historical Job ClassAds from StartD:
$ condor_history -startd
Extract last 100 of user Greg's jobs to use for quicker queries:
$ condor_history -extract subset.hist greg -limit 100 $ condor_history -file subset.hist
Query historical Schedd ClassAds:
$ condor_history -daemon
Query historical Schedd ClassAds from a remote Schedd:
$ condor_history -name ap2.chtc.wisc.edu -daemon
SEE ALSO¶
htcondor job status <href="../man-pages/htcondor.html#job-verbs">, condor_q <href="../man-pages/condor_q.html">
AVAILABILITY¶
Linux, MacOS, Windows
Author¶
HTCondor Team
Copyright¶
1990-2026, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.
| March 16, 2026 |