How to capture elapsed time for a job in PSM.
ITEM: RTA000155119
Q:
Origin item: 05348,998,624
Topic thread:
Printer Systems (PRINT - NA/ATS)
Printing Systems Manager (PSM)
PRINT PSMAIX
E: PSM V 1.2.2 on SP system (AIX 4.2, PSSP 2.4)
Question:
1. is it possible to measure the time that has past since the
job is in the queue ? (TIME_now - TIME_when_job_arrived_in_the_queue) ?
2. is it possible to send a notification if for ex that time measurement
exceeds 30min ? so they are aware when the job stays to long in the
queue without being printed out ?
Thanks for you helpĒ
A:
R1. There isn't an attribute that gives you the elapsed time between
when a job was received on the queue and the current time. You would
need to write a short script that can calculate the difference in the
time stamps. You can get the time the job was submitted and received
on the queue by issuing the command:
pdls -c job -r submission-time JobID
You can get the current time by issuing the command "date". Please
see the man pages for the command "date" for outputing the results in
different formats.
R2. There is also not an event identifier that performs this function.
Again, you would need to write a script for this. It would be easy to
modify the script you wrote in response 1 above, to send a notification
(by whatever notification method you would like), to a user or
administrator.
I hope this helps answer your questions. Thank you for using WWQ&A.
A:
R1. There isn't an attribute that gives you the elapsed time between
when a job was received on the queue and the current time. You would
need to write a short script that can calculate the difference in the
time stamps. You can get the time the job was submitted and received
on the queue by issuing the command:
pdls -c job -r submission-time JobID
You can get the current time by issuing the command "date". Please
see the man pages for the command "date" for outputing the results in
different formats.
R2. There is also not an event identifier that performs this function.
Again, you would need to write a script for this. It would be easy to
modify the script you wrote in response 1 above, to send a notification
(by whatever notification method you would like), to a user or
administrator.
I hope this helps answer your questions. Thank you for using WWQ&A.
Q:
A:
S e a r c h - k e y w o r d s:
capture elaped time psm aix pdls job submission-time script pdpr
WWQA: ITEM: RTA000155119 ITEM: RTA000155119
Dated: 02/1999 Category: PSMAIX
This HTML file was generated 99/06/24~12:43:42
Comments or suggestions?
Contact us