tracejob.8B 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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 tracejob 8B "11 January 2018" Local "PBS Professional"
  37. .SH NAME
  38. .B tracejob
  39. \- extract and print log messages for a PBS job
  40. .SH SYNOPSIS
  41. .B tracejob
  42. [-a] [-c <count>] [-f <filter>] [-l] [-m] [-n <days>]
  43. .RS 9
  44. [-p <path>] [-s] [-v] [-w <cols>] [-z] <job ID>
  45. .RE
  46. .B tracejob
  47. --version
  48. .SH DESCRIPTION
  49. The
  50. .B tracejob
  51. command extracts log messages for a given
  52. .I job ID
  53. and prints them in chronological order.
  54. .LP
  55. The
  56. .B tracejob
  57. command extracts information from the server, scheduler, accounting, and MoM logs.
  58. Server logs contain information such as when a job was queued or modified.
  59. Scheduler logs contain clues as to why a job is not running. Accounting
  60. logs contain accounting records for when a job was queued, started, ended,
  61. or deleted. MoM logs contain information about what happened to a job
  62. while it was running.
  63. .LP
  64. To get MoM log messages for a job,
  65. .B tracejob
  66. must be run on the machine on which the job ran. If the job ran on multiple
  67. hosts, you must run
  68. .B tracejob
  69. on each of those hosts.
  70. .LP
  71. Some log messages appear many times. In order to make the output of
  72. .B tracejob
  73. more readable, messages that appear over a certain number of times (see option
  74. .I -c
  75. below) are restricted to only the most recent message.
  76. .B Using tracejob on Job Arrays
  77. .br
  78. If
  79. .B tracejob
  80. is run on a job array, the information returned is about
  81. the job array itself, and not its subjobs. Job arrays do not have associated
  82. MoM log messages. If
  83. .B tracejob
  84. is run on a subjob, the same types of log
  85. messages are available as for a job. Certain log messages that occur for
  86. a regular job will not occur for a subjob.
  87. .B Required Privilege
  88. .br
  89. All users have access to server, scheduler, and MoM information. Only
  90. Administrator or root can access accounting information.
  91. .LP
  92. .SH Options to tracejob
  93. .IP "-a" 8
  94. Do not report accounting information.
  95. .IP "-c <count>" 8
  96. Set excessive message limit to
  97. .I count.
  98. If a message is logged
  99. at least
  100. .I count
  101. times, only the most recent message is printed.
  102. The default for
  103. .I count
  104. is 15.
  105. .IP "-f <filter>" 8
  106. Do not include log events of type
  107. .I filter.
  108. The
  109. .B -f
  110. option can be used
  111. more than once on the command line.
  112. The following table shows each filter with its hex value and category:
  113. .nf
  114. Filter Hex Value Message Category
  115. ---------------------------------------------------
  116. error 0001 Internal errors
  117. system 0002 System errors
  118. admin 0004 Administrative events
  119. job 0008 Job-related events
  120. job_usage 0010 Job accounting info
  121. security 0020 Security violations
  122. sched 0040 Scheduler events
  123. debug 0080 Common debug messages
  124. debug2 0100 Uncommon debug messages
  125. resv 0200 Reservation debug messages
  126. debug3 0400 Less common than debug2
  127. debug4 0800 Less common than debug3
  128. .fi
  129. .RE
  130. .IP "-l" 8
  131. Do not report scheduler information.
  132. .IP "-m" 8
  133. Do not report MoM information.
  134. .IP "-n <days>" 8
  135. Report information from up to
  136. .I days
  137. days in the past. Default number of days:
  138. .I 1
  139. = today
  140. .IP "-p <path>" 8
  141. Use
  142. .I path
  143. as path to PBS_HOME on machine being queried.
  144. .IP "-s" 8
  145. Do not report server information.
  146. .IP "-w <cols>" 8
  147. Width of current terminal. If
  148. .I cols
  149. is not specified,
  150. .B tracejob
  151. queries OS to get terminal width. If OS doesn't
  152. return anything, defaults to
  153. .I 80.
  154. .IP "-v" 8
  155. Verbose. Report more of
  156. .B tracejob's
  157. errors than default.
  158. .IP "-z" 8
  159. Suppresses printing of duplicate messages.
  160. .RE
  161. .LP
  162. .IP "--version" 8
  163. The
  164. .B tracejob
  165. command returns its PBS version information and exits.
  166. This option can only be used alone.
  167. .SH Operands
  168. The tracejob command accepts one
  169. .I job ID
  170. operand.
  171. .br
  172. For a job, this has the form:
  173. .br
  174. .I <sequence number>[.<server name>][@<server name>]
  175. .br
  176. For a job array, the form is:
  177. .br
  178. .I <sequence number>[][.<server name>][@<server name>]
  179. .br
  180. For a subjob, the form is:
  181. .br
  182. .I <sequence number>[<index>][.<server name>][@<server name>]
  183. .br
  184. Note that some shells require that you enclose a job array identifier in double quotes.
  185. .SH EXIT STATUS
  186. .IP Zero 8
  187. upon successful processing of all options
  188. .IP "Greater than zero" 8
  189. If
  190. .B tracejob
  191. is unable to process any options
  192. .SH SEE ALSO
  193. The
  194. .I PBS Professional Administrator's Guide
  195. .LP
  196. pbs_server(8B), pbs_sched(8B), pbs_mom(8B)