pbs_snapshot(8B)
π pbs_snapshot(8B) β PBS Professional π
β¨ NAME β¨
pbs_snapshot β Linux only. Capture PBS data to be used for diagnostics. π
πΈ SYNOPSIS πΈ
pbs_snapshot -h, --help
pbs_snapshot -o <output directory path>
[--accounting-logs=<number of days>]
[--additional-hosts=<hostname list>] [--basic]
[--daemon-logs=<number of days>] [-H <server host>]
[-l <log level>] [--map=<file path>] [--obfuscate]
[--with-sudo]
pbs_snapshot --version
π DESCRIPTION π
okay so bestie, you use pbs_snapshot to capture PBS data for diagnostics. This tool is written in Python and uses PTL libraries, including PBSSnapUtils, to extract the data. You can optionally anonymize the PBS data. The pbs_snapshot command captures data from all multischeds. The command detects which daemon or daemons are running on the host where it is collecting information, and captures daemon and system data accordingly. If no PBS daemons are running, the command collects system information. The output tarball contains information about the host specified via the -H option, or if that is not specified, the local host. If you specify additional hosts, the command creates a tarball for each additional host and includes it as a sub-tarball in the output. π¦
If you want to capture only PBS configuration information, use the --basic option. π
π Required Privilege π
The pbs_snapshot command allows you to use the sudo infrastructure provided by the PTL framework to capture root-owned information via --with-sudo. All other information is collected as a normal user. If you need to run pbs_snapshot as a non-privileged user, and without using the PTL --with-sudo infrastructure, you must be root if you want root-owned information to be collected. π«Ά
π« Restrictions π«
The pbs_snapshot command is not available on Windows. no cap.
π OPTIONS π
--accounting-logs=<number of days>β Specifies number of days of accounting logs to be collected; this count includes the current day. Value of number of days must be>=0:- If number of days is
0, no logs are captured. - If number of days is
1, only the logs for the current day are captured. - Default:
pbs_snapshotcollects30days of accounting logs. π
- If number of days is
--additional-hosts=<hostname list>β Specifies thatpbs_snapshotshould gather data from the specified list of additional hosts. Launches thepbs_snapshotcommand on each specified host, creates a tarball there named<hostname>_snapshot.tgz, and includes it as a sub-tarball in the output for the main output. If you use the--with-sudooption, each launched copy uses that option as well. π¦
The command does not query the server when it runs at a non-server host.
The command collects a full snapshot, including the following information:
- Daemon logs, for the number of days of logs being captured, specified via the
--daemon-logs=<number of days>option - The
PBS_HOME/<daemon>_privdirectory - Accounting logs if server daemon runs on host
- System information
Format for hostname list is a comma-separated list of one or more hostnames:
<hostname>[, <hostname> ...]
--basicβ Captures PBS configuration information only. Captures the following: πserver/qstat_Bf.outβ Output ofqstat -Bfserver/qstat_Qf.outβ Output ofqstat -Qfscheduler/qmgr_lsched.outβ Output ofqmgr -c 'list sched'node/pbsnodes_va.outβ Output ofpbsnodes -vareservation/pbs_rstat_f.outβ Output ofpbs_rstat -fjob/qstat_f.outβ Output ofqstat -fhook/qmgr_lpbshook.outβ Output ofqmgr -c 'list pbshook'sched_priv/for each scheduler instance β Copy of each scheduler'ssched_privdirectoryserver_priv/resourcedefβ Copy ofserver_priv/resourcedeffilepbs.confβ Copy of/etc/pbs.confon server hostpbs_snapshot.logβ Log ofpbs_snapshotexecutionctimeβ Timestamp of when the snapshot was taken
Can be combined with other options such as --accounting-logs and --daemon-logs in order to capture additional information. β¨
--daemon-logs=<number of days>β Specifies number of days of daemon logs to be collected; this count includes the current day. Value of number of days must be>=0:- If number of days is
0, no logs are captured. - If number of days is
1, only the logs for the current day are captured. - Default:
pbs_snapshotcollects5days of daemon logs. π
- If number of days is
-h,--helpβ Prints usage and exits.-H <hostname>β Specifies hostname for host whose retrieved data is to be at the top level in the output tarball. If not specified,pbs_snapshotputs data for the local host at the top level in the output tarball. π-l <log level>β Specifies level at whichpbs_snapshotwrites its log. The log file ispbs_snapshot.log, in the output directory path specified using the-o <output directory path>option.
Valid values, from most comprehensive to least: DEBUG2, DEBUG, INFOCLI2, INFOCLI, INFO, WARNING, ERROR, FATAL
Default: INFOCLI2
--map=<file path>β Specifies path for file containing obfuscation map, which is a<key>:<value>pair-mapping of obfuscated data. Path can be absolute or relative to current working directory.
Default: pbs_snapshot writes its obfuscation map in a file called obfuscate.map in the location specified via the -o <output directory path> option.
Can only be used with the --obfuscate option. π
--obfuscateβ Obfuscates (anonymizes) or deletes sensitive PBS data captured bypbs_snapshot.
Obfuscates the following data:
euser,egroup,project,Account_Name,operators,managers,group_list,Mail_Users,User_List,server_host,acl_groups,acl_users,acl_resv_groups,acl_resv_users,sched_host,acl_resv_hosts,acl_hosts,Job_Owner,exec_host,Host,Mom,resources_available.host,resources_available.vnode
Deletes the following data:
Variable_List,Error_Path,Output_Path,mail_from,Mail_Points,Job_Name,jobdir,Submit_arguments,Shell_Path_Listπ
--versionβ Thepbs_snapshotcommand prints its PBS version information and exits. Can only be used alone. β--with-sudoβ Uses the PTL sudo infrastructure in order capture root-owned information via sudo. (Information not owned by root is captured using normal privilege, not root privilege.) With this option, you do not need to prefix yourpbs_snapshotcommand withsudo, and you do not need root privilege. π«Ά
π¦ Arguments to pbs_snapshot π¦
-o <output directory path>β Path to directory wherepbs_snapshotwrites its output tarball. Required. Path can be absolute or relative to current working directory.
For example, if you specify -o /temp, pbs_snapshot writes /temp/snapshot_<timestamp>.tgz.
The output directory path must already exist. π
πΎ OUTPUT πΎ
okay bestie, here's where all the snapshot tea gets poured out ββ¨
π Output Location π
You must use the -o <output directory path> option to tell pbs_snapshot where to write its output. The path can be absolute or relative to the current working directory. The output directory has to already exist β it will not create it for you, ngl.
π¨ fr fr: pbs_snapshot needs that directory to be there already. No magical mkdir moment.
For example, if you specify -o /temp, then pbs_snapshot writes /temp/snapshot_<timestamp>.tgz.
π¦ Output Contents π¦
The pbs_snapshot command writes the output for the local host and each specified remote host as a tarball. Tarballs for remote hosts are included in the main tarball. π«Ά
The command captures JSON output from qstat-f -F json and pbsnodes -av -F json.
The main tarball contains this whole little ecosystem of directories, files, and tarballs:
server/β server-side output vibes πqstat_B.outβ Output ofqstat -Bqstat_Bf.outβ Output ofqstat -Bfqmgr_ps.outβ Output ofqmgr print serverqstat_Q.outβ Output ofqstat -Qqstat_Qf.outβ Output ofqstat -Qfqmgr_pr.outβ Output ofqmgr print resource
server_priv/β Copy of thePBS_HOME/server_privdirectory. Core files are captured separately; seecore_file_bt/.accounting/β Accounting logs from thePBS_HOME/server_priv/accounting/directory for the number of days specified via--accounting-logsoption
server_logs/β Server logs from thePBS_HOME/server_logsdirectory for the number of days specified via--daemon-logsoptionjob/β all the job moments πqstat.outβ Output ofqstatqstat_f.outβ Output ofqstat -fqstat_f_F_json.outβ Output ofqstat -f -F jsonqstat_t.outβ Output ofqstat -tqstat_tf.outβ Output ofqstat -tfqstat_x.outβ Output ofqstat -xqstat_xf.outβ Output ofqstat -xfqstat_ns.outβ Output ofqstat -nsqstat_fx_F_dsv.outβ Output ofqstat -fx -F dsvqstat_f_F_dsv.outβ Output ofqstat -f -F dsv
node/β node info, iconic πpbsnodes_va.outβ Output ofpbsnodes -vapbsnodes_a.outβ Output ofpbsnodes -apbsnodes_avSj.outβ Output ofpbsnodes -avSjpbsnodes_aSj.outβ Output ofpbsnodes -aSjpbsnodes_avS.outβ Output ofpbsnodes -avSpbsnodes_aS.outβ Output ofpbsnodes -aSpbsnodes_aFdsv.outβ Output ofpbsnodes -aF dsvpbsnodes_avFdsv.outβ Output ofpbsnodes -avF dsvpbsnodes_avFjson.outβ Output ofpbsnodes -avF jsonqmgr_pn_default.outβ Output ofqmgr print node @default
mom_priv/β Copy of thePBS_HOME/mom_privdirectory. Core files are captured separately; seecore_file_bt/.mom_logs/β MoM logs from thePBS_HOME/mom_logsdirectory for the number of days via--daemon-logsoptioncomm_logs/β Comm logs from thePBS_HOME/comm_logsdirectory for the number of days specified via--daemon-logsoptionsched_priv/β Copy of thePBS_HOME/sched_privdirectory, with all files. Core files are not captured; seecore_file_bt/.sched_logs/β Scheduler logs from thePBS_HOME/sched_logsdirectory for the number of days specified via--daemon-logsoptionsched_priv_<multisched name>/β Copy of thePBS_HOME/sched_priv_<multisched_name>directory, with all files. Core files are not captured; seecore_file_bt/.sched_logs_<multisched name>/β Scheduler logs from thePBS_HOME/sched_logs_<multisched_name>directory for the number of days specified via--daemon-logsoptionreservation/β reservation receipts πpbs_rstat_f.outβ Output ofpbs_rstat -fpbs_rstat.outβ Output ofpbs_rstat
scheduler/β scheduler outputqmgr_lsched.outβ Output ofqmgr list sched
hook/β hook outputqmgr_ph_default.outβ Output ofqmgr print hook @defaultqmgr_lpbshook.outβ Output ofqmgr list pbshook
datastore/β datastore thingspg_log/β Copy of thePBS_HOME/datastore/pg_logdirectory for the number of days specified via--daemon-logsoption
core_file_bt/β Stack backtrace from core filessched_priv/β Files containing the output of thread apply all backtrace full on all core files captured fromPBS_HOME/sched_privsched_priv_<multisched name>/β Files containing the output of thread apply all backtrace full on all core files captured fromPBS_HOME/sched_privserver_priv/β Files containing the output of thread apply all backtrace full on all core files captured fromPBS_HOME/server_privmom_priv/β Files containing the output of thread apply all backtrace full on all core files captured fromPBS_HOME/mom_privmisc/β Files containing the output of thread apply all backtrace full on any other core files found insidePBS_HOME
system/β system-y evidence π§pbs_probe_v.outβ Output ofpbs_probe -vpbs_hostn_v.outβ Output ofpbs_hostn -v $(hostname)pbs_environmentβ Copy ofPBS_HOME/pbs_environmentfileos_infoβ Information about the OSprocess_infoβ List of processes running on the system when the snapshot was taken. Output ofps -aux | grep [p]bson Linux systems, ortasklist /von Windows systemsps_leaf.outβ Output ofps -leaf. Linux only.lsof_pbs.outβ Output oflsof | grep [p]bs. Linux only.etc_hostsβ Copy of/etc/hostsfile. Linux only.etc_nsswitch_confβ Copy of/etc/nsswitch.conffile. Linux only.vmstat.outβ Output of the commandvmstat. Linux only.df_h.outβ Output of the commanddf -h. Linux only.dmesg.outβ Output of thedmesgcommand. Linux only.
pbs.confβ Copy of thepbs.conffile on the server hostctimeβ Contains the time in seconds since epoch when the snapshot was takenpbs_snapshot.logβ Log messages written bypbs_snapshot<remote hostname>.tgzβ Tarball of output from running thepbs_snapshotcommand at a remote host
β¨ EXAMPLES β¨
okay, example time, bestie ππ
pbs_snapshot -o /tmp
Writes a snapshot to /temp/snapshot_<timestamp>.tgz that includes 30 days of accounting logs and 5 days of daemon logs from the server host.
pbs_snapshot --daemon-logs=1 --accounting-logs=1 -o /tmp --obfuscate --map=mapfile.txt
Writes a snapshot to /temp/snapshot_<timestamp>.tgz that includes 1 day of accounting and daemon logs. Obfuscates the data and stores the data mapping in the map file named "mapfile.txt".
that's literally the whole page, bestie π source/version: Local β’ date: 20 September 2019 β’ page: pbs_snapshot(8B) β go snapshot and slay β¨π
π¦ 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