HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

log queue jobs?

 
SOLVED
Go to solution
avournas
Occasional Visitor

log queue jobs?

Does anyone know of an way to log information about jobs that are running in queues historically. Information such as the name, cpu, duration, dio, etc. Is there a script available that will log this information to a file or database?
9 REPLIES
labadie_1
Honored Contributor
Solution

Re: log queue jobs?

Hello

At the end of the log, you have some accounting information, like the following

Accounting information:
Buffered I/O count: 73 Peak working set size: 5104
Direct I/O count: 28 Peak virtual size: 173136
Page faults: 474 Mounted volumes: 0
Charged CPU time: 0 00:00:00.07 Elapsed time: 0 00:00:00.07

You can use the accounting

$ show acc
to check if it is enabled, and then
$ acc/fu/since/id=204002B4

You have various collect and monitoring tools , like TDC, Ecp, Amds/Availability Manager...

and the very basic
$ show process/continuous/id=...
Jan van den Ende
Honored Contributor

Re: log queue jobs?

avournas,

To begin with:

WELCOME to the VMS forum!

If you have ACCOUNTNG enabled
( $ HELP SET ACCOUNT )
then
$ ACCOUNT /full/type=batch
will do just about what you ask.

To fine-tune to your specific (or changing...) needs:

$ HELP ACCO

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
avournas
Occasional Visitor

Re: log queue jobs?

Thank you. That is exactly what I was looking for. Do you know of any utilities I can use to export this into an easy format to load into a database for analysis? I see there is a option to export it into a binary format but I would have to write a program for that. I also saw a program called ACC_CONVERT on the freeware cd, but I cannot get it to work.
Jean-François Piéronne
Trusted Contributor

Re: log queue jobs?

avournas,

I have a Python script which read and store processes and images accounting informations in a Rdb database (can be easily change to another backend).

Let me know if you have some interest.


JF
avournas
Occasional Visitor

Re: log queue jobs?

Am I able to run a python script on VMS by default, or is there something I would have to install. If I don't have to install anything, I am interested.
labadie_1
Honored Contributor

Re: log queue jobs?

Hello

In order to use Python, you have 2 options

1) Get Python, download the file python252*.pcsi from
http://vmspython.dyndns.org/anonymous/kits/axp/ for Alpha and
http://vmspython.dyndns.org/anonymous/kits/ia64/
for an Itanium

and install the product, like any other
$ product install...

2) get the LD devices at
http://vmspython.dyndns.org/DownloadAndInstallationPython

at you have a choice, install Python only for your process, or for the system.

This is the recommended method.
Jean-François Piéronne
Trusted Contributor

Re: log queue jobs?

As Gerard mention, download the 2 ld images is the easiest way to has Python running on your system (a couple of minutes). Also you can run it only for your process.

But, no, Python is not provided with OpenVMS.

JF
Ian Miller.
Honored Contributor

Re: log queue jobs?

The format of the accounting file is documented so you can write your own reporting too if the native ACCOUNTING command does not generate what you want.
____________________
Purely Personal Opinion
Jon Pinkley
Honored Contributor

Re: log queue jobs?

As Ian said, the ACCOUNTNG.DAT file is documented. It is described in Appendix C of "OpenVMS System Management Utilities Reference Manual".

However, the accounting utility has the ability to generate a lot of useful summary information. See the following threads for more info about the accounting utility:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1198578

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1201132

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1194995

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1159729
it depends