pbs_hook_attributes.7B 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH pbs_hook_attributes 7B "25 January 2018" Local "PBS Professional"
  37. .SH NAME
  38. .B pbs_hook_attributes
  39. \- attributes of PBS hooks
  40. .SH DESCRIPTION
  41. .LP
  42. Hook attributes can be set, unset, and viewed using the
  43. .B qmgr
  44. command.
  45. See the
  46. .B qmgr(1B)
  47. man page.
  48. An unset hook attribute takes the default value for that attribute.
  49. Under UNIX/Linux, root privilege is required in order to operate on
  50. hooks. Under Windows, this must be done from the installation
  51. account. For domained environments, the installation account must be
  52. a lo cal account that is a member of the local Administrators group on
  53. the local computer. For standalone environments, the ins tallation
  54. account must be a local account that is a member of the local
  55. Administrators group on the local computer.
  56. .IP "alarm=<n>"
  57. Specifies the number of seconds to allow a hook to run before
  58. the hook times out.
  59. .br
  60. Set by administrator.
  61. .br
  62. Valid values: >0
  63. .br
  64. Format: Integer
  65. .br
  66. Default value: 30
  67. .IP "debug"
  68. Specifies whether or not the hook produces debugging files under
  69. PBS_HOME/server_priv/hooks/tmp or PBS_HOME/mom_priv/hooks/tmp. Files
  70. are named hook_<hook event>_<hook name>_<unique ID>.in, .data, and .out.
  71. When this is set to
  72. .I true,
  73. the hook leaves debugging files.
  74. .br
  75. Set by administrator.
  76. .br
  77. Format: Boolean
  78. .br
  79. Default value: False
  80. .IP "enabled"
  81. Determines whether or not a hook is run when its triggering event occurs.
  82. If a hook's
  83. .I enabled
  84. attribute is
  85. .I True,
  86. the hook is run.
  87. .br
  88. Set by administrator.
  89. .br
  90. Format: Boolean
  91. .br
  92. Default: True
  93. .IP "event"
  94. List of events that trigger the hook. Can be operated on with
  95. the "=", "+=", and "-=" operators. The
  96. .I provision
  97. event cannot be combined with any other events.
  98. .br
  99. Valid events:
  100. .RS 11
  101. .nf
  102. "queuejob"
  103. "modifyjob"
  104. "movejob"
  105. "resvsub"
  106. "runjob"
  107. "periodic"
  108. "provision"
  109. "execjob_begin"
  110. "execjob_end"
  111. execjob_prologue"
  112. "execjob_epilogue"
  113. "execjob_preterm"
  114. "execjob_launch"
  115. "execjob_attach"
  116. "exechost_startup"
  117. "exechost_periodic"
  118. "" (meaning no event)
  119. .fi
  120. .RE
  121. .IP
  122. .br
  123. Set by administrator.
  124. .br
  125. Format: string array
  126. .br
  127. Default value: "" (meaning none, i.e. the hook is not triggered)
  128. .IP "fail_action"
  129. Specifies the action to be taken when hook fails due to alarm call or
  130. unhandled exception, or to an internal error such as not enough disk
  131. space or memory. Can also specify a subsequent action to be taken
  132. when hook runs successfully. Value can be either "none" or one or more of
  133. "offline_vnodes", "clear_vnodes_upon_recovery", and "scheduler_restart_cycle".
  134. If this attribute is set to multiple values, scheduler restart happens last.
  135. See the Hooks chapter in the PBS Professional Administrator's Guide.
  136. .br
  137. .I offline_vnodes
  138. .RS 11
  139. After unsuccessful hook execution, offlines the vnodes managed by the MoM
  140. executing the hook. Only available for execjob_prologue, exechost_startup
  141. and execjob_begin hooks.
  142. .RE
  143. .IP
  144. .I clear_vnodes_upon_recovery
  145. .RS 11
  146. After successful hook execution, clears vnodes previously offlined via
  147. offline_vnodes fail action. Only available for exechost_startup hooks.
  148. .RE
  149. .IP
  150. .I scheduler_restart_cycle
  151. .RS 11
  152. After unsuccessful hook execution, restarts scheduling cycle. Only
  153. available for execjob_begin and execjob_prologue hooks.
  154. .RE
  155. .IP
  156. .br
  157. Set by administrator.
  158. .br
  159. Format: string_array
  160. .br
  161. Default value: "none"
  162. .IP "freq"
  163. Number of seconds between periodic or exechost_periodic triggers.
  164. .br
  165. Set by administrator.
  166. .br
  167. Format: integer
  168. .br
  169. Default: 120 seconds
  170. .IP "order"
  171. Indicates relative order of hook execution, for hooks sharing a trigger.
  172. Hooks with lower
  173. .I order
  174. values execute before those with higher values.
  175. Does not apply to periodic or exechost_periodic hooks.
  176. .br
  177. Set by administrator.
  178. .br
  179. Format: Integer
  180. .br
  181. Default value: 1
  182. .IP "Type"
  183. The type of the hook. Cannot be set for a built-in hook.
  184. .br
  185. Valid values: "pbs", "site"
  186. .br
  187. .I pbs
  188. .RS 11
  189. Hook is built in.
  190. .RE
  191. .IP
  192. .I site
  193. .RS 11
  194. Hook is custom (site-defined).
  195. .RE
  196. .IP
  197. .br
  198. Set by administrator.
  199. .br
  200. Format: String
  201. .br
  202. Default value: "site"
  203. .IP "user"
  204. Specifies who executes the hook.
  205. .br
  206. Valid values: "pbsadmin", "pbsuser"
  207. .br
  208. .I "pbsadmin"
  209. .RS 11
  210. The hook executes as root.
  211. .RE
  212. .IP
  213. .I "pbsuser"
  214. .RS 11
  215. The hook executes as the triggering job's owner.
  216. .RE
  217. .IP
  218. .br
  219. Set by administrator.
  220. .br
  221. Format: String
  222. .br
  223. Default value: "pbsadmin"
  224. .SH SEE ALSO
  225. The
  226. .I PBS Professional Hooks Guide,
  227. the
  228. .I PBS Professional Administrator's Guide,
  229. the
  230. .I PBS Professional Programmer's Guide,
  231. .br
  232. qmgr(1B),
  233. pbs_module(7B),
  234. pbs_stathook(3B)