pbs_hook_attributes(7B)
π NAME π
Welcome to pbs_hook_attributes(7B), the PBS Professional manual page for attributes of PBS hooks. It's giving "hook settings cheat sheet," and honestly? Iconic. π
β¨ DESCRIPTION β¨
Hook attributes can be set, unset, and viewed using the qmgr command. See the qmgr(1B) man page for the full tea. π«Ά
An unset hook attribute takes the default value for that attribute. No cap.
privilege check, bestie π¨ Under UNIX/Linux, root privilege is required in order to operate on hooks. Under Windows, this must be done from the installation account. For domained environments, the installation account must be a local account that is a member of the local Administrators group on the local computer. For standalone environments, the installation account must be a local account that is a member of the local Administrators group on the local computer.
Here are the attributes, all lined up like the main characters they are:
alarm=<n>β Specifies the number of seconds to allow a hook to run before the hook times out. β°- Set by administrator.
- Valid values:
>0 - Format:
Integer - Default value:
30
debugβ Specifies whether or not the hook produces debugging files underPBS_HOME/server_priv/hooks/tmporPBS_HOME/mom_priv/hooks/tmp. Files are namedhook_<hook event>_<hook name>_<unique ID>.in,.data, and.out. When this is set to true, the hook leaves debugging files. π- Set by administrator.
- Format:
Boolean - Default value:
False
enabledβ Determines whether or not a hook is run when its triggering event occurs. If a hook's enabled attribute is True, the hook is run. β- Set by administrator.
- Format:
Boolean - Default:
True
eventβ List of events that trigger the hook. Can be operated on with the"=","+=", and"-="operators. Theprovisionevent cannot be combined with any other events. π«- Valid events:
"exechost_periodic""exechost_startup""execjob_attach""execjob_begin""execjob_end""execjob_epilogue""execjob_launch""execjob_postsuspend""execjob_preresume""execjob_preterm""execjob_prologue""modifyjob""movejob""periodic""provision""queuejob""resvsub""runjob"""(meaning no event)
- Set by administrator.
- Format:
string array - Default value:
""(meaning none, i.e. the hook is not triggered)
- Valid events:
fail_actionβ Specifies the action to be taken when hook fails due to alarm call or unhandled exception, or to an internal error such as not enough disk space or memory. Can also specify a subsequent action to be taken when hook runs successfully. Value can be either"none"or one or more of"offline_vnodes","clear_vnodes_upon_recovery", and"scheduler_restart_cycle". If this attribute is set to multiple values, scheduler restart happens last. πoffline_vnodesβ After unsuccessful hook execution, offlines the vnodes managed by the MoM executing the hook. Only available forexecjob_prologue,exechost_startupandexecjob_beginhooks.clear_vnodes_upon_recoveryβ After successful hook execution, clears vnodes previously offlined viaoffline_vnodesfail action. Only available forexechost_startuphooks.scheduler_restart_cycleβ After unsuccessful hook execution, restarts scheduling cycle. Only available forexecjob_beginandexecjob_prologuehooks.- Set by administrator.
- Format:
string_array - Default value:
"none"
freqβ Number of seconds between periodic or exechost_periodic triggers. β³- Set by administrator.
- Format:
integer - Default:
120 seconds
orderβ Indicates relative order of hook execution, for hooks of the same type sharing a trigger. Hooks with lower order values execute before those with higher values. Does not apply to periodic or exechost_periodic hooks. π’- Set by administrator.
- Valid values:
- Built-in hooks:
[-1000, 2000] - Site hooks:
[1, 1000]
- Built-in hooks:
- Format:
Integer - Default value:
1
Typeβ The type of the hook. Cannot be set for a built-in hook.- Valid values:
"pbs","site" pbsβ Hook is built in. πsiteβ Hook is custom (site-defined). π οΈ- Set by administrator.
- Format:
String - Default value:
"site"
- Valid values:
userβ Specifies who executes the hook.- Valid values:
"pbsadmin","pbsuser" pbsadminβ The hook executes as root. π₯pbsuserβ The hook executes as the triggering job's owner. π«Ά- Set by administrator.
- Format:
String - Default value:
"pbsadmin"
- Valid values:
π¦ SEE ALSO π¦
qmgr(1B), pbs_module(7B), pbs_stathook(3B) β go read these too, bestie. β¨
π That's the whole glow-up: this is the Local edition, dated 6 May 2020, for pbs_hook_attributes(7B). Periodt. π
π¦ 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