tracejob(8B)
πΈ NAME πΈ
tracejob β extract and print log messages for a PBS job. This is the tracejob(8B) page from PBS Professional, and sheβs literally your bestie for figuring out what happened to a job. π
β¨ SYNOPSIS β¨
tracejob [-a] [-c <count>] [-f <filter>] [-l] [-m] [-n <days>]
[-p <path>] [-s] [-v] [-w <cols>] [-z] <job ID>
tracejob --version
π DESCRIPTION π
Okay so tracejob pulls log messages for a given job ID and prints them in chronological order. Iconic. β¨
It scoops info out of the server, scheduler, accounting, and MoM logs:
- Server logs contain information such as when a job was queued or modified.
- Scheduler logs contain clues as to why a job is not running. Detective vibes. π΅οΈ
- Accounting logs contain accounting records for when a job was queued, started, ended, or deleted.
- MoM logs contain information about what happened to a job while it was running.
To get MoM log messages for a job, tracejob must be run on the machine on which the job ran. If the job ran on multiple hosts, you must run tracejob on each of those hosts. No skipping, bestie. π«Ά
Some log messages appear many times. In order to make the output of tracejob more readable, messages that appear over a certain number of times (see option -c below) are restricted to only the most recent message.
π§ Using tracejob on Job Arrays
If tracejob is run on a job array, the information returned is about the job array itself, and not its subjobs. Job arrays do not have associated MoM log messages. If tracejob is run on a subjob, the same types of log messages are available as for a job. Certain log messages that occur for a regular job will not occur for a subjob.
π Required Privilege
All users have access to server, scheduler, and MoM information. Only Administrator or root can access accounting information. π
π Options to tracejob π
-aβ Do not report accounting information.-c <count>β Set excessive message limit tocount. If a message is logged at leastcounttimes, only the most recent message is printed. The default forcountis15.-f <filter>β Do not include log events of typefilter. The-foption can be used more than once on the command line. Hereβs each filter with its hex value and category:errorβ hex0001β Internal errorssystemβ hex0002β System errorsadminβ hex0004β Administrative eventsjobβ hex0008β Job-related eventsjob_usageβ hex0010β Job accounting infosecurityβ hex0020β Security violationsschedβ hex0040β Scheduler eventsdebugβ hex0080β Common debug messagesdebug2β hex0100β Uncommon debug messagesresvβ hex0200β Reservation debug messagesdebug3β hex0400β Less common thandebug2debug4β hex0800β Less common thandebug3
-lβ Do not report scheduler information.-mβ Do not report MoM information.-n <days>β Report information from up todaysdays in the past. Default number of days:1= today.-p <path>β Usepathas path toPBS_HOMEon machine being queried.-sβ Do not report server information.-w <cols>β Width of current terminal. Ifcolsis not specified,tracejobqueries OS to get terminal width. If OS doesnβt return anything, defaults to80.-vβ Verbose. Report more oftracejobβs errors than default.-zβ Suppresses printing of duplicate messages.--versionβ Thetracejobcommand returns its PBS version information and exits. This option can only be used alone.
π¦ Operands π¦
The tracejob command accepts one job ID operand.
For a job, this has the form:
<sequence number>[.<server name>][@<server name>]
For a job array, the form is:
<sequence number>[][.<server name>][@<server name>]
For a subjob, the form is:
<sequence number>[<index>][.<server name>][@<server name>]
Note that some shells require that you enclose a job array identifier in double quotes. Shell girlies, you know the vibes. π
β EXIT STATUS β
Zeroβ upon successful processing of all optionsGreater than zeroβ Iftracejobis unable to process any options
π SEE ALSO π
pbs_server(8B), pbs_sched(8B), pbs_mom(8B)
Later, bestie! This page is tracejob(8B) from PBS Professional β Local, dated 6 May 2020. π
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms