CONDOR_HISTORY(1)
π condor_history β HTCondor Manual π«
okay bestie, welcome to condor_history β it's the HTCondor Manual's little time machine for viewing 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] [-no-librarian]
πΈ DESCRIPTION πΈ
Read historical ClassAds from local history files, periodt. π
By default it reads job ClassAds out of the HISTORY files. But if you hit it with the -name command line option, it goes and reads from remote APs instead. π°οΈ
π OPTIONS π
-helpβ shows you the usage info and dips out. π-debugβ sends debugging info tostderr, based on whatever the config variableTOOL_DEBUGsays. π-name nameβ queries thecondor_schedddaemon with that name. And if you pair it with-startd, it queries thecondor_startddaemon with that name instead. π-pool hostname[:port]β uses that hostname as the central manager to go find the daemons you want to query for historical ClassAds. πΊοΈ-backwardsβ lists ClassAds in reverse chronological order, so the ClassAd most recently added to the history file comes first. This is the default ordering, no cap. π₯-forwardsβ lists ClassAds in chronological order, so the ClassAd most recently added to the history file comes last. π-no-librarianβ ignores thecondor_librarianrecord index database, even ifUSING_LIBRARIANisTrue. Not me skipping the librarian π- cluster β only shows ClassAds that contain the specified
ClusterId's. π’ - cluster.process β only shows ClassAds containing that specific
JobID(ClusterId.ProcId). π― - user β only shows ClassAds containing the specified
Owner. π«Ά -constraint exprβ displays the ClassAds that satisfy the expression. β-since jobidorexprβ stops scanning when the ClassAd contains the specifiedJobId, or when the expression evaluates toTrue. π-completedsince timestampβ scans 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 literally equivalent to-since 'CompletionDate<=time_expr'. β°-scanlimit Nβ stops scanning once that number of ClassAds have been read. π-limit Nβ limits how many ClassAds get displayed to Number. Same option as-match. βοΈ-match Numberβ limits how many ClassAds get displayed to Number. Same option as-limit. (yes bestie they're the same thing, iconic twin behaviour π)-localβ reads from local history files even if there's aSCHEDD_HOSTconfigured. π-scheddβ queries for ClassAds recorded in theHISTORYfiles. This is the default. ποΈ-startdβ queries for ClassAds recorded in theSTARTD_HISTORYrather than the Schedd's history files. Use the-nameoption to query a remote StartD. π°οΈ-epochs[:d]β queries for ClassAds recorded in theJOB_EPOCH_HISTORYrather than the Schedd's default completion history file. This option can be followed by a colon character for extra functionality, because she contains multitudes:dβ deletes job epoch files after it's finished reading. This option only deletes epoch files stored withinJOB_EPOCH_HISTORY_DIR, and it can not be used with-match,-limit, or-scanlimit. π
-transfer/-transfer-history[:iIoOcC]β queries input, output, and checkpoint transfer ClassAds recorded in theJOB_EPOCH_HISTORY. This option can be followed by a colon to specify which transfer types to query:I/iβ query Input transfer ClassAds. π₯O/oβ query Output transfer ClassAds. π€C/cβ query Checkpoint transfer ClassAds. π©
NOTE: This option does not have a default print format table and requires a format to be specified (i.e.-long,-json,-af, etc.). Like it needs the outfit, it cannot go out naked. π
-daemonβ queries for ClassAds recorded in the<SUBSYS>_DAEMON_HISTORY.
NOTE: Currently only Schedd ClassAds are written into this history file. π€·βοΈ
-file filenameβ queries ClassAd records from the specified filename. π-userlog filenameβ displays HTCondor job information coming from a job event log. Heads up though: a job event log doesn't contain all of the job information, so some fields in the normal output will be blank. π«₯-search pathβ queries ClassAd records from the specified path filename and all matching HTCondor time rotated files (filename.YYYYMMDDTHHMMSS). If it's used with the-diroption, then the path directory is used to search for specific pattern matching history files. π-dir/-directoryβ searches for files in a source's alternate directory configuration knob to read from, instead of the default history file. π
NOTE: Only applies to the -epochs option. π―
-format formatString AttributeNameβ displays jobs with a custom format. See thecondor_q -formatoption for the deets. π¨-af/-autoformat[:jlhVr,tng] Attribute [Attribute ...]β displays attribute(s) or expression(s) formatted in a default way, depending on the type of each Attribute specified after the option. It just assumes no Attributes start with a dash character, so the next word that begins with a dash gets treated as another option. This option can be followed by a colon character and formatting qualifiers to deviate the output formatting from the default:jβ print the ClassAd's associatedJobIDas the first field. π₯lβ label each field. π·οΈhβ print column headings before the first line of output. πVβ use%Vrather than%vfor 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: Thenand,qualifiers may not be used together. Thelandhqualifiers may not be used together. not me mixing these up and getting cursed output π
-print-format filenameβ reads output formatting information from the given custom print format file. See/classads/print-formatsfor more info about custom print format files. π-l/-longβ displays ClassAds in long format. π-attributes Attribute[,Attribute,...]β displays only the Attributes specified when using the-longoption. (also, to be clear: displays only the given attributes when the-longoption is used. yeah bestie the manpage said it twice, we love a redundant queen π)-xmlβ displays job ClassAds in XML format. π-jsonβ displays job ClassAds in JSON format. π§Ύ-jsonlβ displays job ClassAds in JSON-Lines format: one job ad per line. π-wide[:N]β restricts output to the given column width. The default width is 80 columns, but if-wideis used without the optional N argument, the width of the output is not restricted. π-extract filenameβ copies all constraint matching ClassAd entries from history files into the specified filename, to create a mini history file for faster queries via-file filename. By default this option will copy up to 100,000 matching ads. To bump that limit up or down, use the-limitoption. To disable the limit entirely, use-limit -1. β‘
NOTE: This option requires a constraint of ClassAds to copy. π¨
WARNING: This option cannot be used in a remote query. π
-stream-resultsβ sends parsed ClassAds over the socket rather than displaying them to the terminal. π
WARNING: Only used internally by Daemons executing History Helper functionality. π§
-inheritβ inherits the command socket of the Daemon that shelled this tool. π
WARNING: Only used internally by Daemons executing History Helper functionality. π§
-type type[,type,...]β specifies historical ClassAd banner types to use as an allow filter. UseALLto parse all ClassAds found in the history files. ποΈ-diagnosticβ runs the tool in diagnostic mode, increasing tool output. Separate from-debug. π©Ί
πΈ GENERAL REMARKS πΈ
Ok so by default, bestie, this tool goes looking for historical HTCondor Job ClassAds that have completed. That's the vibe. That's the whole default.
The default listing summarizes each ClassAd on a single line, in reverse chronological order, and it gives you these lil guys right here: π
IDβ TheClusterId.ProcIdof the job.OWNERβ TheOwnerof 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 attributeRemoteWallClockTime.STβ Completion status of the job (C= completed andX= removed).COMPLETEDβ The time the job was completed.CMDβ The name of the job's executable.
And when you're querying historical Schedd ClassAds from the SCHEDD_DAEMON_HISTORY? The default info displayed is this lineup, periodt: β¨
TIMESTAMPβ The UNIX timestamp representing exactly when the record was written to the history file.DUTY_CYCLEβ The Schedd'sRecentDaemonCoreDutyCycleat the time the record was written.RunningJobsβ The Schedd'sTotalRunningJobsat the time the record was written.IdleJobsβ The Schedd'sTotalIdleJobsat the time the record was written.HeldJobsβ The Schedd'sTotalHeldJobsat the time the record was written.Downloadβ The Schedd'sTransferQueueNumDownloadingat the time the record was written.Waiting (download)β The Schedd'sTransferQueueNumWaitingToDownloadat the time the record was written.WaitingMB (download)β The Schedd'sFileTransferMBWaitingToDownloadat the time the record was written.Uploadβ The Schedd'sTransferQueueNumUploadingat the time the record was written.Waiting (upload)β The Schedd'sTransferQueueNumWaitingToUploadat the time the record was written.WaitingMB (upload)β The Schedd'sFileTransferMBWaitingToUploadat the time the record was written.
Like, every single one of them is a snapshot of that moment the record got written. no cap. πΈ
π«Ά EXIT STATUS π«Ά
0β Success π1β Failure has occurred π
π EXAMPLES π
Query all historical Job ClassAds with 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 (yes, going forwards, icon behavior):
$ 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 a 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 (obsessed with this one, it's giving efficiency queen π):
$ 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, condor_q
β¨ 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.
ok bestie that's the whole page, you ate that π«Ά this one's dated Oct 16, 2026 and it's CONDOR_HISTORY(1) β go forth and query those historical ClassAds, you main character ππΈβ¨
π¦ where this page comes from
- fedora 43: condor 25.14.1-1.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms