tracejob(8B)

πŸ“¦ version 23.06.06-unstable-2026-04, in nixos 26.05, nixpkgs unstable

🌸 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 to count. If a message is logged at least count times, only the most recent message is printed. The default for count is 15.
  • -f <filter> β€” Do not include log events of type filter. The -f option can be used more than once on the command line. Here’s each filter with its hex value and category:
    • error β€” hex 0001 β€” Internal errors
    • system β€” hex 0002 β€” System errors
    • admin β€” hex 0004 β€” Administrative events
    • job β€” hex 0008 β€” Job-related events
    • job_usage β€” hex 0010 β€” Job accounting info
    • security β€” hex 0020 β€” Security violations
    • sched β€” hex 0040 β€” Scheduler events
    • debug β€” hex 0080 β€” Common debug messages
    • debug2 β€” hex 0100 β€” Uncommon debug messages
    • resv β€” hex 0200 β€” Reservation debug messages
    • debug3 β€” hex 0400 β€” Less common than debug2
    • debug4 β€” hex 0800 β€” Less common than debug3
  • -l β€” Do not report scheduler information.
  • -m β€” Do not report MoM information.
  • -n <days> β€” Report information from up to days days in the past. Default number of days: 1 = today.
  • -p <path> β€” Use path as path to PBS_HOME on machine being queried.
  • -s β€” Do not report server information.
  • -w <cols> β€” Width of current terminal. If cols is not specified, tracejob queries OS to get terminal width. If OS doesn’t return anything, defaults to 80.
  • -v β€” Verbose. Report more of tracejob’s errors than default.
  • -z β€” Suppresses printing of duplicate messages.
  • --version β€” The tracejob command 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 options
  • Greater than zero β€” If tracejob is 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