printjob.8B 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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 printjob 8B "28 November 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B printjob
  39. \- print job information
  40. .SH SYNOPSIS
  41. .B printjob
  42. [ -a | -s ] <job ID>
  43. .br
  44. .B printjob
  45. [ -a ] <file path> [<file path>...]
  46. .br
  47. .B printjob
  48. --version
  49. .SH DESCRIPTION
  50. Prints job information. This command is mainly useful for troubleshooting,
  51. as during normal operation, the
  52. .B qstat(8B)
  53. command is the preferred method for displaying job-specific data and attributes.
  54. The server and MoM do not have to be running to execute this command.
  55. .SH Usage
  56. For a running job, you can run this command at any host using a
  57. job ID, and you can run this command at any execution host where
  58. the job is running using a .JB file path.
  59. For a finished job, if job history is enabled, you can run this command at
  60. the server using the job ID.
  61. When querying the server, you must use the job ID, and the data service
  62. must be running.
  63. Results will vary depending on whether you use the job ID or
  64. a .JB file, and on which execution host you query with a .JB file.
  65. .SH PERMISSIONS
  66. In order to execute
  67. .B printjob,
  68. you must have root or Windows Administrator privilege.
  69. .SH OPTIONS
  70. .IP "(no options)" 15
  71. Prints all job data including job attributes.
  72. .IP "-a" 15
  73. Suppresses the printing of job attributes. Cannot be used with
  74. .I -s
  75. option.
  76. .IP "-s" 15
  77. Prints out the job script only. Can be used at server or primary execution host.
  78. Cannot be used with
  79. .I -a
  80. option. Must be used with a job ID.
  81. .IP "--version" 15
  82. The
  83. .B printjob
  84. command returns its PBS version information and exits.
  85. This option can only be used alone.
  86. .SH OPERANDS
  87. .IP "file path" 15
  88. The
  89. .B printjob
  90. command accepts one or more
  91. .I file path
  92. operands at the execution host. Files are found in PBS_HOME/mom_priv/jobs/
  93. on the primary execution host. File path must include full path to file. Cannot be
  94. used with
  95. .I -s
  96. option.
  97. .IP "job ID" 15
  98. The
  99. .B printjob
  100. command accepts a job ID at the server host.
  101. .br
  102. Format: <sequence number>[.<server name>][@<server name>]
  103. .br
  104. Data service must be running.
  105. .SH STANDARD ERROR
  106. The
  107. .B printjob
  108. command writes a diagnostic message to standard error for
  109. each error occurrence.
  110. .SH EXIT STATUS
  111. .IP Zero 15
  112. Upon successful processing of all the operands presented to the
  113. .B printjob
  114. command
  115. .LP
  116. .IP "Greater than zero" 15
  117. If the
  118. .B printjob
  119. command fails to process any operand
  120. .SH SEE ALSO
  121. The
  122. .I PBS Professional Administrator's Guide,
  123. .br
  124. pbs_server(8B), qstat(8B)