Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Hi Need Help in PowerShell

$
0
0

I am Trying to read the content from the Tracking log file which is generated once the Jams jobs is completed success or failure....

please find below the demo of log file,

JAMS Version 6.0.523.0 on MSP2-PRDAPP65
Entry 2019 starting at 4/9/2013 9:41:48 AM
Submitted by KYLOU1\Z002049 at 4/9/2013 9:41:48 AM
Executing as z002049
Starting via JAMS Host on MSP2-PRDAPP65
Process ID 4260
------------------------------------------------------------

My output

JAMS Entry number is  2019
Job Name is  Getting_job_info
Submitted by  KYLOU1\Z002049
RON is  3019
Time on  4/9/2013 9:41:48 AM
Time off
Log FileName

------------------------------------------------------------
Final Status Code: 0, Severity: Success
Final Status: The operation completed successfully
------------------------------------------------------------
Job Completed at:      4/9/2013 9:41:50 AM
Elapsed Time:          00:00:01.7316444
Kernel mode CPU Time:  00:00:00.2652017
User mode CPU Time:    00:00:01.2168078
Read operation count:  523
Write operation count: 27
Other operation count: 1767
Read byte count:       1937983
Write byte count:      528
Other byte count:      12417
Total page faults:     27667
Total process count:   0
Peak process memory:   93753344
Peak job memory:       93753344
------------------------------------------------------------

from the above I need the Job Completed Date,ProcessId to be display in "My Output Part",

I am able to find out the start time,user, job name but unable to find the process end date, process id.

So Please help to solve this problem


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images