123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
- .\" For more information, contact Altair at www.altair.com.
- .\"
- .\" This file is part of the PBS Professional ("PBS Pro") software.
- .\"
- .\" Open Source License Information:
- .\"
- .\" PBS Pro is free software. You can redistribute it and/or modify it under the
- .\" terms of the GNU Affero General Public License as published by the Free
- .\" Software Foundation, either version 3 of the License, or (at your option) any
- .\" later version.
- .\"
- .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
- .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- .\" FOR A PARTICULAR PURPOSE.
- .\" See the GNU Affero General Public License for more details.
- .\"
- .\" You should have received a copy of the GNU Affero General Public License
- .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
- .\"
- .\" Commercial License Information:
- .\"
- .\" For a copy of the commercial license terms and conditions,
- .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
- .\" or contact the Altair Legal Department.
- .\"
- .\" Altair’s dual-license business model allows companies, individuals, and
- .\" organizations to create proprietary derivative works of PBS Pro and
- .\" distribute them - whether embedded or bundled with other software -
- .\" under a commercial license agreement.
- .\"
- .\" Use of Altair’s trademarks, including but not limited to "PBS™",
- .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
- .\" trademark licensing policies.
- .\"
- .TH pbs_hook_attributes 7B "25 January 2018" Local "PBS Professional"
- .SH NAME
- .B pbs_hook_attributes
- \- attributes of PBS hooks
- .SH DESCRIPTION
- .LP
- Hook attributes can be set, unset, and viewed using the
- .B qmgr
- command.
- See the
- .B qmgr(1B)
- man page.
- An unset hook attribute takes the default value for that attribute.
- 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 lo cal account that is a member of the local Administrators group on
- the local computer. For standalone environments, the ins tallation
- account must be a local account that is a member of the local
- Administrators group on the local computer.
- .IP "alarm=<n>"
- Specifies the number of seconds to allow a hook to run before
- the hook times out.
- .br
- Set by administrator.
- .br
- Valid values: >0
- .br
- Format: Integer
- .br
- Default value: 30
- .IP "debug"
- Specifies whether or not the hook produces debugging files under
- PBS_HOME/server_priv/hooks/tmp or PBS_HOME/mom_priv/hooks/tmp. Files
- are named hook_<hook event>_<hook name>_<unique ID>.in, .data, and .out.
- When this is set to
- .I true,
- the hook leaves debugging files.
- .br
- Set by administrator.
- .br
- Format: Boolean
- .br
- Default value: False
- .IP "enabled"
- Determines whether or not a hook is run when its triggering event occurs.
- If a hook's
- .I enabled
- attribute is
- .I True,
- the hook is run.
- .br
- Set by administrator.
- .br
- Format: Boolean
- .br
- Default: True
- .IP "event"
- List of events that trigger the hook. Can be operated on with
- the "=", "+=", and "-=" operators. The
- .I provision
- event cannot be combined with any other events.
- .br
- Valid events:
- .RS 11
- .nf
- "queuejob"
- "modifyjob"
- "movejob"
- "resvsub"
- "runjob"
- "periodic"
- "provision"
- "execjob_begin"
- "execjob_end"
- execjob_prologue"
- "execjob_epilogue"
- "execjob_preterm"
- "execjob_launch"
- "execjob_attach"
- "exechost_startup"
- "exechost_periodic"
- "" (meaning no event)
- .fi
- .RE
- .IP
- .br
- Set by administrator.
- .br
- Format: string array
- .br
- Default value: "" (meaning none, i.e. the hook is not triggered)
- .IP "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.
- See the Hooks chapter in the PBS Professional Administrator's Guide.
- .br
- .I offline_vnodes
- .RS 11
- After unsuccessful hook execution, offlines the vnodes managed by the MoM
- executing the hook. Only available for execjob_prologue, exechost_startup
- and execjob_begin hooks.
- .RE
- .IP
- .I clear_vnodes_upon_recovery
- .RS 11
- After successful hook execution, clears vnodes previously offlined via
- offline_vnodes fail action. Only available for exechost_startup hooks.
- .RE
- .IP
- .I scheduler_restart_cycle
- .RS 11
- After unsuccessful hook execution, restarts scheduling cycle. Only
- available for execjob_begin and execjob_prologue hooks.
- .RE
- .IP
- .br
- Set by administrator.
- .br
- Format: string_array
- .br
- Default value: "none"
- .IP "freq"
- Number of seconds between periodic or exechost_periodic triggers.
- .br
- Set by administrator.
- .br
- Format: integer
- .br
- Default: 120 seconds
- .IP "order"
- Indicates relative order of hook execution, for hooks sharing a trigger.
- Hooks with lower
- .I order
- values execute before those with higher values.
- Does not apply to periodic or exechost_periodic hooks.
- .br
- Set by administrator.
- .br
- Format: Integer
- .br
- Default value: 1
- .IP "Type"
- The type of the hook. Cannot be set for a built-in hook.
- .br
- Valid values: "pbs", "site"
- .br
- .I pbs
- .RS 11
- Hook is built in.
- .RE
- .IP
- .I site
- .RS 11
- Hook is custom (site-defined).
- .RE
- .IP
- .br
- Set by administrator.
- .br
- Format: String
- .br
- Default value: "site"
- .IP "user"
- Specifies who executes the hook.
- .br
- Valid values: "pbsadmin", "pbsuser"
- .br
- .I "pbsadmin"
- .RS 11
- The hook executes as root.
- .RE
- .IP
- .I "pbsuser"
- .RS 11
- The hook executes as the triggering job's owner.
- .RE
- .IP
- .br
- Set by administrator.
- .br
- Format: String
- .br
- Default value: "pbsadmin"
- .SH SEE ALSO
- The
- .I PBS Professional Hooks Guide,
- the
- .I PBS Professional Administrator's Guide,
- the
- .I PBS Professional Programmer's Guide,
- .br
- qmgr(1B),
- pbs_module(7B),
- pbs_stathook(3B)
|