qalter.1B 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280
  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 qalter 1B "29 November 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B qalter
  39. \- alter PBS job
  40. .SH SYNOPSIS
  41. .B qalter
  42. [-a <date and time>] [-A <account string>]
  43. .RS 7
  44. [-c <checkpoint spec>]
  45. [-e <error path>]
  46. [-h <hold list>] [-j <join>] [-k <discard>] [-l <resource list>]
  47. [-m <mail events>] [-M <user list>] [-N <name>] [-o <output path>]
  48. [-p <priority>] [-P <project>] [-r <y|n>] [-S <path list>] [-u <user list>]
  49. [-W <additional attributes>]
  50. <job ID> [<job ID> ...]
  51. .RE
  52. .B qalter
  53. --version
  54. .SH DESCRIPTION
  55. The
  56. .B qalter
  57. command is used to alter one or more PBS batch jobs.
  58. Each of certain job attributes can be modified using the
  59. .B qalter
  60. option for that attribute.
  61. .B Required Privilege
  62. .br
  63. A non-privileged user can alter their own jobs, whether they are
  64. queued or running. An Operator or Manager can alter any job,
  65. whether it is queued or running.
  66. A non-privileged user can only lower resource requests.
  67. A Manager or Operator can raise or lower resource requests.
  68. .B Modifying resources and job placement
  69. .br
  70. A Manager or Operator may lower or raise requested resource limits,
  71. except for per-process limits such as
  72. .I pcput
  73. and
  74. .I pmem,
  75. because these are set when the process starts, and enforced by the
  76. kernel. A non-privileged user can only lower resource requests.
  77. The
  78. .B qalter
  79. command cannot be used by a non-privileged user to alter a
  80. custom resource which has been created to be invisible or read-only
  81. for users.
  82. If a job is running, the only resources that can be modified are
  83. .I mppnodes, mppt, cput, walltime, min_walltime,
  84. and
  85. .I max_walltime.
  86. If a job is queued, any resource mentioned in the options to the
  87. .B qalter
  88. command can be modified, but requested modifications must fit
  89. within the limits set at the server and queue for the amount of each
  90. resource allocated for queued jobs. If a requested modification does
  91. not fit within these limits, the modification is rejected.
  92. A job's resource request must fit within the queue's and server's
  93. resource run limits. If a modification to a resource exceeds the
  94. amount of the resource allowed by the queue or server to be used by
  95. running jobs, the job is never run.
  96. Requesting resources includes setting limits on resource usage and
  97. controlling how the job is placed on vnodes.
  98. .B Syntax for Modifying Resources and Job Placement
  99. .br
  100. Resources are modified
  101. by using the
  102. .I -l
  103. option, either in
  104. .I chunks
  105. inside of
  106. .I selection statements,
  107. or in job-wide requests using
  108. .I <resource name>=<value>
  109. pairs.
  110. The
  111. .I selection statement
  112. is of the form:
  113. .IP
  114. .I -l select=[<N>:]<chunk>[+[<N>:]<chunk> ...]
  115. .LP
  116. where
  117. .I N
  118. specifies how many of that chunk, and
  119. a
  120. .I chunk
  121. is of the form:
  122. .IP
  123. .I <resource name>=<value>[:<resource name>=<value> ...]
  124. .LP
  125. Job-wide
  126. .I <resource name>=<value>
  127. requests are of the form:
  128. .IP
  129. .I -l <resource name>=<value>[,<resource name>=<value> ...]
  130. .LP
  131. .B The Place Statement
  132. .br
  133. You choose how your chunks are placed using the
  134. .I place statement.
  135. The
  136. .I place statement
  137. can contain the following elements, in any order:
  138. .IP
  139. .I -l place=[<arrangement>][:<sharing>][:<grouping>]
  140. .LP
  141. where
  142. .br
  143. .I \ \ \ arrangement
  144. .RS 13
  145. Whether this chunk is willing to share this vnode or host with other
  146. chunks from the same job. One of
  147. .I free | pack | scatter | vscatter
  148. .RE
  149. .LP
  150. .I \ \ \ sharing
  151. .RS 13
  152. Whether this chunk is willing to share this vnode or host with other
  153. jobs. One of
  154. .I excl | shared | exclhost
  155. .RE
  156. .LP
  157. .I \ \ \ grouping
  158. .RS 13
  159. Whether the chunks from this job should be placed on vnodes that all
  160. have the same value for a resource. Can have only one instance of
  161. .I group=<resource name>
  162. .RE
  163. .LP
  164. .I \ \ \ \ \ free
  165. .RS 15
  166. Place job on any vnodes.
  167. .RE
  168. .LP
  169. .I \ \ \ \ \ pack
  170. .RS 15
  171. All chunks are taken from one host.
  172. .RE
  173. .LP
  174. .I \ \ \ \ \ scatter
  175. .RS 15
  176. Only one chunk with any MPI processes is taken from a host. A chunk
  177. with no MPI processes may be taken from the same vnode as another chunk.
  178. .RE
  179. .LP
  180. .I \ \ \ \ \ vscatter
  181. .RS 15
  182. Only one chunk is taken from any vnode. Each chunk must fit on a vnode.
  183. .RE
  184. .LP
  185. .I \ \ \ \ \ excl
  186. .RS 15
  187. Only this job uses the vnodes chosen.
  188. .RE
  189. .LP
  190. .I \ \ \ \ \ shared
  191. .RS 15
  192. This job can share the vnodes chosen.
  193. .RE
  194. .LP
  195. .I \ \ \ \ \ exclhost
  196. .RS 15
  197. The entire host is allocated to the job.
  198. .RE
  199. .LP
  200. .I \ \ \ \ \ group=<resource name>
  201. .RS 15
  202. Chunks are grouped according to a resource. All vnodes in the group must
  203. have a common value for
  204. .I resource,
  205. which can be either the built-in resource
  206. .I host
  207. or a custom vnode-level resource. The
  208. .I resource name
  209. must be a string or a string array.
  210. .RE
  211. .LP
  212. The
  213. .I place statement
  214. cannot begin with a colon. Colons are delimiters; use them only to separate
  215. parts of a place statement, unless they are quoted inside resource values.
  216. For more on resource requests, usage limits and job placement, see
  217. .B pbs_resources(7B).
  218. .B Modifying Attributes
  219. .br
  220. The user alters job attributes via options to the
  221. .B qalter
  222. command. Each
  223. .B qalter
  224. option changes a job attribute. See the
  225. .B PBS Professional User's Guide
  226. and
  227. .B pbs_job_attributes(7B).
  228. The behavior of the
  229. .B qalter
  230. command may be affected by
  231. any site hooks. Site hooks can modify the job's attributes,
  232. change its routing, etc.
  233. .SH Caveats and Restrictions for Altering Jobs
  234. When you lengthen the
  235. .I walltime
  236. of a running job, make sure that the new
  237. .I walltime
  238. will not interfere with any existing reservations etc.
  239. If any of the modifications to a job fails,
  240. none of the job's attributes is modified.
  241. A job that is in the process of provisioning cannot be altered.
  242. .SH OPTIONS
  243. .IP "-a <date and time>" 8
  244. Changes the point in time after which the job is eligible for execution.
  245. Given in pairs of digits. Sets job's
  246. .I Execution_Time
  247. attribute to
  248. .I date and time.
  249. Format:
  250. .RS 13
  251. .I "[[[[CC]YY]MM]DD]hhmm[.SS]"
  252. .RE
  253. .IP
  254. where CC is the century,
  255. YY is the year,
  256. MM is the month,
  257. DD is the day of the month,
  258. hh is the hour, mm is the minute,
  259. and SS is the seconds.
  260. Each portion of the date defaults to the current date, as long as the
  261. next-smaller portion is in the future. For example, if today is the
  262. 3rd of the month and the specified day
  263. .I DD
  264. is the 5th, the month
  265. .I MM
  266. is set to the current month.
  267. If a specified portion has already passed, the next-larger portion is set
  268. to one after the current date. For example, if the day
  269. .I DD
  270. is not specified, but the hour
  271. .I hh
  272. is specified to be 10:00 a.m. and the current time is 11:00 a.m.,
  273. the day
  274. .I DD
  275. is set to tomorrow.
  276. The job's
  277. .I Execution_Time
  278. attribute can be altered after the job has begun execution, in which
  279. case it will not take effect until the job is rerun.
  280. .IP "-A <account string>" 8
  281. Replaces the accounting string associated with the job. Used for labeling accounting data.
  282. Sets job's
  283. .I Account_Name
  284. attribute to
  285. .I account string.
  286. This attribute cannot be altered once the job has begun execution.
  287. .br
  288. Format:
  289. .I String
  290. .IP "-c <checkpoint spec>"
  291. Changes when the job will be checkpointed. Sets job's
  292. .I Checkpoint
  293. attribute. An
  294. .I $action
  295. script is required to checkpoint the job. See the
  296. .B pbs_mom(8B)
  297. man page.
  298. This attribute can be altered after the job has begun execution,
  299. in which case the new value will not take effect until the
  300. job is rerun.
  301. .IP
  302. The argument
  303. .I checkpoint spec
  304. can take one of the following values:
  305. .RS
  306. .IP c 5
  307. Checkpoint at intervals, measured
  308. in CPU time, set on job's execution queue.
  309. If no interval set at queue, job is not checkpointed.
  310. .IP "c=<minutes of CPU time>" 5
  311. Checkpoint at intervals of specified number of minutes of job CPU
  312. time. This value must be greater than zero. If interval specified is less that
  313. that set on job's execution queue, queue's interval is used.
  314. .br
  315. Format:
  316. .I Integer
  317. .IP w 5
  318. Checkpoint at intervals, measured in walltime, set on job's execution queue.
  319. If no interval set at queue, job is not checkpointed.
  320. .IP "w=<minutes of walltime>" 5
  321. Checkpoint at intervals of the specified number
  322. of minutes of job walltime. This value must be greater
  323. than zero. If the interval specified is less than that set on the
  324. job's execution queue, the queue's interval is used.
  325. .br
  326. Format:
  327. .I Integer
  328. .IP n 5
  329. No checkpointing.
  330. .IP s 5
  331. Checkpoint only when the server is shut down.
  332. .IP u 5
  333. Unset. Defaults to behavior when
  334. .I interval
  335. argument is set to
  336. .I s.
  337. .I
  338. .LP
  339. Default:
  340. .I u
  341. .br
  342. Format:
  343. .I String
  344. .RE
  345. .RE
  346. .IP "-e <error path>" 8
  347. Replaces the path to be used for the job's standard error stream.
  348. Sets job's
  349. .I Error_Path
  350. attribute to
  351. .I error path.
  352. Overridden by
  353. .I -k
  354. option.
  355. .br
  356. Format:
  357. .RS 13
  358. .I [<hostname>:]<path>
  359. .RE
  360. .RS
  361. The
  362. .I error path
  363. is interpreted as follows:
  364. .IP path 5
  365. If
  366. .I path
  367. is relative, it is taken to be relative to
  368. the current working directory of the
  369. .B qalter
  370. command, where it is executing
  371. on the current host.
  372. If
  373. .I path
  374. is absolute, then it is taken to be an absolute path on
  375. the current host where the
  376. .B qalter
  377. command is executing.
  378. .IP hostname:path
  379. If
  380. .I path
  381. is relative, it is taken to be relative to the user's
  382. home directory on the host named
  383. .I hostname.
  384. If
  385. .I path
  386. is absolute, it is the absolute path on the host named
  387. .I hostname.
  388. .LP
  389. If
  390. .I path
  391. does not include a filename, the default filename is
  392. .RS
  393. <job ID>.ER
  394. .RE
  395. If the
  396. .I -e
  397. option is not specified, PBS writes standard error to the default filename,
  398. which has this form:
  399. .RS
  400. .I <job name>.e<sequence number>
  401. .RE
  402. This attribute can be altered after the job has begun execution,
  403. in which case the new value will not take effect until the
  404. job is rerun.
  405. If you use a UNC path, the hostname is optional. If you use a non-UNC
  406. path, the hostname is required.
  407. .RE
  408. .IP "-h <hold list>" 8
  409. Updates the job's hold list.
  410. Adds
  411. .I hold list
  412. to the job's
  413. .I Hold_Types
  414. attribute.
  415. The
  416. .I hold list
  417. is a string of one or more characters. The following table shows the
  418. holds and the privilege required to set each:
  419. .RS
  420. Hold Meaning Who Can Set
  421. .br
  422. --------------------------------------------------------------
  423. .IP u 6
  424. User Job owner, Operator, Manager,
  425. .br
  426. administrator, root
  427. .IP o 6
  428. Other Operator, Manager, administrator, root
  429. .IP s 6
  430. System Manager, administrator, root,
  431. .br
  432. PBS (dependency)
  433. .IP n 6
  434. None Job owner, Operator, Manager,
  435. .br
  436. administrator, root
  437. .IP p 6
  438. Bad password Administrator, root
  439. .LP
  440. This attribute can be altered after the job has begun execution,
  441. in which case the new value will not take effect until the
  442. job is rerun.
  443. .RE
  444. .IP "-j <join>" 8
  445. Changes whether and how to join the job's standard error
  446. and standard output streams.
  447. Sets job's
  448. .I Join_Path
  449. attribute to
  450. .I join.
  451. .br
  452. This attribute can be altered after the job has begun execution, in which
  453. case the new value will not take effect until the job is rerun.
  454. The
  455. .I join
  456. argument can take the following values:
  457. .RS
  458. .IP oe 5
  459. Standard error and standard output are merged into standard output.
  460. .IP eo 5
  461. Standard error and standard output are merged into standard error.
  462. .IP n 5
  463. Standard error and standard output are not merged.
  464. .RE
  465. .IP
  466. Default:
  467. .I n;
  468. not merged
  469. .LP
  470. .IP "-k <discard>" 8
  471. Changes whether and which of the standard output and standard error streams
  472. is left behind on the execution host, and whether they are written to their
  473. final destinations. Sets the job's
  474. .I Keep_Files
  475. attribute to
  476. .I discard.
  477. This attribute cannot be altered once the job has begun execution.
  478. In the case where output and/or error is retained on the execution host in
  479. a job-specific staging and execution directory created by PBS, these
  480. files are deleted when PBS deletes the directory.
  481. Default:
  482. .I n;
  483. neither is retained, and files are not written to final destinations
  484. The
  485. .I discard
  486. argument can take the following values:
  487. .RS
  488. .IP e 5
  489. The standard error stream is retained on the execution host, in the
  490. job's staging and execution directory. The filename is:
  491. .RS
  492. .RS 5
  493. <job name>.e<sequence number>
  494. .RE
  495. .RE
  496. .IP o 5
  497. The standard output stream is retained on the execution host, in the
  498. job's staging and execution directory. The filename is:
  499. .RS
  500. .RS 5
  501. <job name>.o<sequence number>
  502. .RE
  503. .RE
  504. .IP "eo, oe" 5
  505. Both standard output and standard error streams are
  506. retained on the execution host, in the job's staging
  507. and execution directory.
  508. .IP d 5
  509. Output and/or error are written directly to their final destination.
  510. Overrides the action of leaving files behind on the execution host.
  511. .IP n 5
  512. Neither stream is retained.
  513. .RE
  514. .IP "-l <resource list>" 8
  515. .RS
  516. Allows the user to change requested resources and job
  517. placement. Sets job's
  518. .I Resource_list
  519. attribute to
  520. .I resource list.
  521. Uses resource request syntax.
  522. Requesting a resource places a limit on its usage.
  523. Users without manager or operator privilege cannot alter a custom
  524. resource which was created to be invisible or read-only for users.
  525. For syntax, see
  526. .B "Syntax for Modifying Resources and Job Placement"
  527. above.
  528. If a requested modification to a resource would exceed the server's or
  529. job queue's limits, the resource request is rejected.
  530. Which resources can be altered is system-dependent.
  531. If the job was submitted with an explicit "-l select=", vnode-level
  532. resources must be qaltered using the "-l select=" form. In this
  533. case a vnode level resource <resource> cannot be qaltered with
  534. the "-l <resource name>" form.
  535. The place statement cannot begin with a colon.
  536. For example:
  537. .RS
  538. Submit the job:
  539. .br
  540. % qsub -l select=1:ncpus=2:mem=512mb jobscript
  541. .br
  542. Job's ID is 230
  543. qalter the job using "-l <resource name>" form:
  544. .br
  545. % qalter -l ncpus=4 230
  546. .br
  547. Error reported by qalter:
  548. .br
  549. qalter: Resource must only appear in "select" specification
  550. when select is used: ncpus 230
  551. .br
  552. qalter the job using the "-l select=" form:
  553. .br
  554. % qalter -l select=1:ncpus=4:mem=512mb 230
  555. .br
  556. No error reported by qalter:
  557. .br
  558. %
  559. .RE
  560. For more on resource requests, usage limits and job placement, see
  561. .B pbs_resources(7B).
  562. .RE
  563. .IP "-m <mail events> " 8
  564. Changes the set of conditions under which mail about the job is sent.
  565. Sets job's
  566. .I Mail_Points
  567. attribute to
  568. .I mail events.
  569. The
  570. .I mail events
  571. argument can be either "n" or any combination of "a", "b", and "e".
  572. .RS
  573. .IP n 5
  574. No mail is sent
  575. .IP a 5
  576. Mail is sent when the job is aborted by the batch system
  577. .IP b 5
  578. Mail is sent when the job begins execution
  579. .IP e 5
  580. Mail is sent when the job terminates
  581. .RE
  582. .IP
  583. Format:
  584. .I String
  585. .br
  586. Default:
  587. .I "a"
  588. .IP "-M <user list>" 8
  589. Alters list of users to whom mail about the job is sent. Sets job's
  590. .I Mail_Users
  591. attribute to
  592. .I user list.
  593. .br
  594. Format:
  595. .br
  596. .I \ \ \ <username>[@<hostname>][,<username>[@<hostname>],...]
  597. .br
  598. Default: job owner
  599. .IP "-N <name> " 8
  600. Renames the job.
  601. Sets job's
  602. .I Job_Name
  603. attribute to
  604. .I name.
  605. .br
  606. Format:
  607. .I Job Name
  608. (See
  609. .I Formats
  610. in the
  611. .I PBS Professional Reference Guide.
  612. )
  613. .br
  614. Default: if a script is used to submit the job, the job's name is the
  615. name of the script. If no script is used, the job's name is
  616. .I "STDIN".
  617. .IP "-o <output path>" 8
  618. Alters path to be used for the job's standard output stream.
  619. Sets job's
  620. .I Output_Path
  621. attribute to
  622. .I output path.
  623. Overridden by
  624. .I -k
  625. option.
  626. Format:
  627. .RS 13
  628. .I [<hostname>:]<path>
  629. .RE
  630. .RS
  631. The
  632. .I output path
  633. is interpreted as follows:
  634. .IP path 5
  635. If
  636. .I path
  637. is relative, it is taken to be relative to
  638. the current working directory of the command, where it is executing
  639. on the current host.
  640. If
  641. .I path
  642. is absolute, it is taken to be an absolute path on
  643. the current host where the command is executing.
  644. .IP hostname:path
  645. If
  646. .I path
  647. is relative, it is taken to be relative to the user's
  648. home directory on the host named
  649. .I hostname.
  650. If
  651. .I path
  652. is absolute, it is the absolute path on the host named
  653. .I hostname.
  654. If
  655. .I path
  656. does not include a filename, the default filename is
  657. .RS
  658. <job ID>.OU
  659. .LP
  660. .RE
  661. If the
  662. .I -o
  663. option is not specified, PBS writes standard output to
  664. the default filename, which has this form:
  665. .RS
  666. .I <job name>.o<sequence_number>
  667. .RE
  668. This attribute can be altered after the job has begun execution,
  669. in which case the new value will not take effect until the
  670. job is rerun.
  671. If you use a UNC path, the hostname is optional. If you use a non-UNC
  672. path, the hostname is required.
  673. .RE
  674. .IP "-p <priority>" 8
  675. Alters priority of the job. Sets job's
  676. .I Priority
  677. attribute to
  678. .I priority.
  679. This attribute can be altered after the job has begun execution,
  680. in which case the new value will not take effect until the
  681. job is rerun.
  682. Format:
  683. .I Host-dependent integer
  684. .br
  685. Range: [-1024, +1023] inclusive
  686. .br
  687. Default:
  688. .I Zero
  689. .IP "-P <project>" 8
  690. Specifies a project for the job. Sets job's
  691. .I project
  692. attribute to specified value.
  693. Format:
  694. .I Project Name
  695. (See
  696. .I Formats
  697. in the
  698. .I PBS Professional Reference Guide.
  699. )
  700. .br
  701. Default:
  702. .I "_pbs_project_default"
  703. .IP "-r <y|n>" 8
  704. Changes whether the job is rerunnable. Sets job's
  705. .I Rerunable
  706. attribute to the argument. Does not affect how the job is handled when
  707. the job is unable to begin execution.
  708. .br
  709. See the
  710. .B qrerun(1B)
  711. command.
  712. .br
  713. Format: Single character,
  714. .I "y"
  715. or
  716. .I "n"
  717. .br
  718. .RS
  719. .IP y 5
  720. Job is rerunnable.
  721. .IP n 5
  722. Job is not rerunnable.
  723. .LP
  724. Default:
  725. .I "y"
  726. Interactive jobs are not rerunnable. Job arrays are always rerunnable.
  727. .RE
  728. .LP
  729. .IP "R <remove options>" 8
  730. Changes whether standard output and/or standard error files are automatically
  731. removed upon job completion. Sets job's
  732. .I Remove_Files
  733. attribute to
  734. .I remove options.
  735. Overrides default path names for these streams. Overrides
  736. .I -o
  737. and
  738. .I -e
  739. options.
  740. This attribute cannot be altered once the job has begun execution.
  741. Default:
  742. .I Unset;
  743. neither is removed
  744. The
  745. .I remove options
  746. argument can take the following values:
  747. .RS
  748. .IP e
  749. The standard error stream is removed (deleted) upon job completion
  750. .IP o
  751. The standard output stream is removed (deleted) upon job completion
  752. .IP "eo, oe"
  753. Both standard error and standard output streams are removed (deleted)
  754. upon job completion
  755. .IP unset
  756. Neither stream is removed
  757. .RE
  758. .IP "-S <path list>" 8
  759. Specifies the interpreter or shell path for the job script. Sets job's
  760. .I Shell_Path_List
  761. attribute to
  762. .I path list.
  763. The
  764. .I path_list
  765. argument is the full path to the interpreter or shell including the
  766. executable name.
  767. Only one path may be specified without a hostname.
  768. Only one path may be specified per named host. The path selected
  769. is the one whose hostname is that of the server on which the job
  770. resides.
  771. This attribute can be altered after the job has begun execution,
  772. in which case the new value will not take effect until the
  773. job is rerun.
  774. Format:
  775. .RS
  776. .IP
  777. .I <path>[@<hostname>][,<path>@<hostname> ...]
  778. .LP
  779. If the path contains spaces, it must be quoted, for example:
  780. .IP
  781. qsub -S "C:\Program Files\\PBS Pro\\bin\\pbs_python.exe" <script name>
  782. .LP
  783. .br
  784. Default: User's login shell on execution node
  785. Example of using bash via a directive:
  786. .IP
  787. #PBS -S /bin/bash@mars,/usr/bin/bash@jupiter
  788. .LP
  789. Example of using a Python script from the command line on Linux:
  790. .IP
  791. qsub -S $PBS_EXEC/bin/pbs_python <script name>
  792. .LP
  793. Example of using a Python script from the command line on Windows:
  794. .IP
  795. qsub -S \%PBS_EXEC\%\\bin\\pbs_python.exe <script name>
  796. .LP
  797. .RE
  798. .IP
  799. .IP "-u <user list>" 8
  800. Alters list of usernames. Job will be run under a username from this list.
  801. Sets job's
  802. .I User_List
  803. attribute to
  804. .I user list.
  805. Only one username may be specified without a hostname.
  806. Only one username may be specified per named host.
  807. The server on which the job resides will select first the username whose
  808. hostname is the same as the server name. Failing that,
  809. the next selection will be the username with no specified hostname.
  810. The usernames on the server and execution hosts must be the same.
  811. The job owner must have authorization to run as the specified user.
  812. This attribute cannot be altered once the job has begun execution.
  813. Format:
  814. .br
  815. .I \ \ \ <username>[@<hostname>][,<username>@<hostname> ...]
  816. Default: Job owner (username on submit host)
  817. .RE
  818. .IP "-W <additional attributes>" 8
  819. Each sub-option to the
  820. .I -W
  821. option allows you to change a specific job attribute
  822. .br
  823. Format:
  824. .br
  825. .I \ \ \ -W <attribute name>=<value>[,<attribute name>=<value>...]
  826. If white space occurs within the
  827. .I additional attributes
  828. argument, or the equal sign "=" occurs within an
  829. .I attribute value
  830. string, that argument or string must be enclosed with single or double quotes.
  831. PBS supports the following attributes via the
  832. .I -W
  833. option:
  834. .I "depend=<dependency list>"
  835. .IP
  836. Defines dependencies between this and other jobs.
  837. Sets the job's
  838. .I depend
  839. attribute to
  840. .I dependency list.
  841. The
  842. .I dependency list
  843. has the form:
  844. .RS
  845. .RS 5
  846. .I <type>:<arg list>[,<type>:<arg list> ...]
  847. .RE
  848. where except for the
  849. .I on
  850. type,
  851. the
  852. .I arg list
  853. is one or more PBS job IDs in the form:
  854. .RS 5
  855. .I <job ID>[:<job ID> ...]
  856. .RE
  857. The types and their argument lists can be:
  858. .IP " after: <arg list>" 4
  859. This job may be scheduled for execution at any point after all jobs
  860. in
  861. .I arg list
  862. have started execution.
  863. .IP " afterok: <arg list>" 4
  864. This job may be scheduled for execution only after all jobs in
  865. .I arg list
  866. have terminated with no errors.
  867. See "Warning about exit status with csh" in
  868. .B EXIT STATUS.
  869. .IP " afternotok: <arg list>" 4
  870. This job may be scheduled for execution only after all jobs in
  871. .I arg list
  872. have terminated with errors.
  873. See "Warning about exit status with csh" in
  874. .B EXIT STATUS.
  875. .IP " afterany: <arg list>" 4
  876. This job may be scheduled for execution after all jobs in
  877. .I arg list
  878. have finished execution, with any exit status (with or without errors.)
  879. This job will not run if a job in the
  880. .I arg list
  881. was deleted without ever having been run.
  882. .IP " before: <arg list>" 4
  883. Jobs in
  884. .I arg list
  885. may begin execution once this job has begun execution.
  886. .IP " beforeok: <arg list> " 4
  887. Jobs in
  888. .I arg list
  889. may begin execution once this job terminates without errors.
  890. See "Warning about exit status with csh" in
  891. .B EXIT STATUS.
  892. .IP " beforenotok: <arg list>" 4
  893. If this job terminates execution with errors, jobs in
  894. .I arg list
  895. may begin.
  896. See "Warning about exit status with csh" in
  897. .B EXIT STATUS.
  898. .IP " beforeany: <arg list>" 4
  899. Jobs in
  900. .I arg list
  901. may begin execution once this job terminates execution,
  902. with or without errors.
  903. .IP " on: count " 4
  904. This job may be scheduled for execution after
  905. .I count
  906. dependencies on
  907. other jobs have been satisfied. This type is used in conjunction
  908. with one of the
  909. .I before
  910. types listed.
  911. Count is an integer greater than
  912. .I 0.
  913. .LP
  914. .B Restrictions
  915. .br
  916. Job IDs in the
  917. .I arg list
  918. of
  919. .I before
  920. types must have been submitted with a
  921. .I type
  922. of
  923. .I on.
  924. To use the
  925. .I before
  926. types, the user must have the authority to alter the jobs in
  927. .I arg list.
  928. Otherwise, the dependency is rejected and the new job aborted.
  929. Error processing of the existence, state, or condition of the job on which the
  930. newly submitted job depends is performed after
  931. the job is queued. If an error is detected, the new job is deleted by
  932. the server. Mail is sent to the job submitter stating the error.
  933. .B Dependency examples:
  934. .br
  935. qalter -W depend=afterok:123.host1.domain.com /tmp/script
  936. .br
  937. qalter -W depend=before:234.host1.com:235.host1.com /tmp/script
  938. .RE
  939. .IP "group_list=<group list>"
  940. Alters list of group names. Job will run under a group name from this list.
  941. Sets job's
  942. .I group_List
  943. attribute to
  944. .I group list.
  945. Only one group name may be specified without a hostname.
  946. Only one group name may be specified per named host.
  947. The server on which the job resides will select first the group name whose
  948. hostname is the same as the server name. Failing that,
  949. the next selection will be the group name with no specified hostname.
  950. The group names on the server and execution hosts must be the same.
  951. Format:
  952. .br
  953. .I \ \ \ <group>[@<hostname>][,<group>@<hostname> ...]
  954. Default: Login group name of job owner
  955. .LP
  956. .IP "release_nodes_on_stageout=<value>"
  957. When set to
  958. .I True,
  959. all of the job's vnodes not on the primary execution host are released
  960. when stageout begins.
  961. Cannot be used with vnodes managed by cpuset MoMs, (whose
  962. .I arch
  963. is
  964. .I linux_cpuset
  965. ), or with vnodes tied to Cray X* series systems.
  966. When cgroups is enabled and this is used with some but not all vnodes
  967. from one MoM, resources on those vnodes that are part of a cgroup are
  968. not released until the entire cgroup is released.
  969. The job's
  970. .I stageout
  971. attribute must be set for the
  972. .I release_nodes_on_stageout
  973. attribute to take effect.
  974. Format:
  975. .I Boolean
  976. .br
  977. Default:
  978. .I False
  979. .IP "run_count=<count>"
  980. Sets the number of times the server thinks it has run the job. Sets the job's
  981. .I run_count
  982. attribute to
  983. .I count.
  984. Can be set while job is running.
  985. Job is held when the value of this attribute goes over
  986. .I 20.
  987. Format: Integer greater than or equal to zero
  988. .LP
  989. .IP "sandbox=<sandbox spec>"
  990. Changes which directory PBS uses for the job's staging and execution.
  991. Sets job's
  992. .I sandbox
  993. attribute to the value of
  994. .I sandbox spec.
  995. Format:
  996. .I String
  997. Allowed values for
  998. .I sandbox spec:
  999. .RS
  1000. .IP PRIVATE
  1001. PBS creates a job-specific directory for staging and execution.
  1002. .IP HOME or unset
  1003. PBS uses the user's home directory for staging and execution.
  1004. .RE
  1005. .LP
  1006. .IP "stagein=<path list>"
  1007. .br
  1008. .IP "stageout=<path list>"
  1009. Changes files or directories to be staged in before execution or staged out
  1010. after execution is complete. Sets the job's
  1011. .I stagein
  1012. and
  1013. .I stageout
  1014. attributes to the specified
  1015. .I path lists.
  1016. On completion of the job, all staged-in and staged-out files and directories
  1017. are removed from the execution host(s). A
  1018. .I path list
  1019. has the form:
  1020. .br
  1021. .I \ \ \ <filespec>[,<filespec>]
  1022. .br
  1023. where
  1024. .I filespec
  1025. is
  1026. .br
  1027. .I \ \ \ <execution path>@<hostname>:<storage path>
  1028. .br
  1029. regardless of the direction of the copy.
  1030. The
  1031. .I execution path
  1032. is the name of the file or directory on the primary execution host.
  1033. It can be relative to the staging and execution directory on the
  1034. execution host, or it can be an absolute path.
  1035. The "@" character separates
  1036. .I execution path
  1037. from
  1038. .I storage path.
  1039. The
  1040. .I storage path
  1041. is the path on
  1042. .I hostname.
  1043. The name can be relative to the staging and execution directory on the
  1044. primary execution host, or it can be an absolute path.
  1045. If
  1046. .I path list
  1047. has more than one
  1048. .I filespec,
  1049. i.e. it contains commas, it must be enclosed in double quotes.
  1050. If you use a UNC path, the hostname is optional. If you use a non-UNC
  1051. path, the hostname is required.
  1052. .RE
  1053. .LP
  1054. .IP "umask=<value>"
  1055. Alters the umask with which the job is started. Controls umask of
  1056. job's standard output and standard error. Sets job's
  1057. .I umask
  1058. attribute to
  1059. .I value.
  1060. Format: One to four digits; typically two
  1061. Default:
  1062. .I 077
  1063. The following example allows group and world read of the job's output
  1064. and error:
  1065. .br
  1066. .I \ \ \ -W umask=33
  1067. .IP "--version"
  1068. The
  1069. .B qalter
  1070. command returns its PBS version information and exits.
  1071. This option can only be used alone.
  1072. .LP
  1073. .SH OPERANDS
  1074. The
  1075. .B qalter
  1076. command accepts a
  1077. .I job ID
  1078. list as its operand. The
  1079. .I job ID
  1080. list is a space-separated list of
  1081. one or more job IDs for normal jobs or array jobs.
  1082. Subjobs and ranges of subjobs are not alterable.
  1083. Job IDs have the form:
  1084. .br
  1085. .I \ \ \ <sequence number>[.<server name>][@<server name>]
  1086. .br
  1087. .I \ \ \ <sequence number>[][.<server name>][@<server name>]
  1088. Note that some shells require that you enclose a job array ID
  1089. in double quotes.
  1090. .SH STANDARD ERROR
  1091. The
  1092. .B qalter
  1093. command writes a diagnostic message to standard error for
  1094. each error occurrence.
  1095. .SH EXIT STATUS
  1096. .IP Zero
  1097. Upon successful processing of input
  1098. .IP "Greater than zero"
  1099. Upon failure
  1100. .SH Warning about exit status with csh:
  1101. If a job is run in csh and a .logout file
  1102. exists in the home directory in which the job executes, the exit status
  1103. of the job is that of the .logout script, not the job script. This may
  1104. impact any inter-job dependencies.
  1105. .SH SEE ALSO
  1106. The
  1107. .I PBS Professional User's Guide,
  1108. the
  1109. .I PBS Professional Administrator's Guide,
  1110. .br
  1111. pbs_job_attributes(7B),
  1112. pbs_resources(7B),
  1113. qdel(1B),
  1114. qhold(1B),
  1115. qmove(1B),
  1116. qmsg(1B),
  1117. qrerun(1B),
  1118. qrls(1B),
  1119. qselect(1B),
  1120. qstat(1B),
  1121. qsub(1B)