[GE users] qstat -j -xml output information

Erik Soyez E.Soyez at science-computing.de
Wed May 7 08:11:55 BST 2008


I approve to Mark's request in all points.  Erik Soyez.

On Wed, 7 May 2008, Olesen, Mark wrote:

> I think the following is reasonable:
> 1. Freeze the current non-xml output as is. We can call it 'legacy'
> output it that sounds nicer.
> 2. Ensure that everything available in the legacy output is also
> available in the xml output.
> 3. Add extra information (submissionTime, queue master, etc) into the
> xml output without worrying about updating the legacy output (for now,
> or maybe at all).
> 4. Rationalize the xml output (see my posting on the dev list:
> http://gridengine.sunsource.net/servlets/ReadMsg?list=dev&msgNo=3410)
> 5. Consider adding some form of query mechanism for retrieving the only
> specific parts of the output.
>
>
> To explain points 4 & 5 more closely: Suppose I am quickly trying to
> find the original working directory for all the jobs. With the legacy
> output I could use something like this:
>   qstat -j \* | sed -ne 's/^\(job_number\|sge_o_workdir\): *//p'
>
> To extract something similar from the xml output without using a full
> blown XSLT engine is considerably more difficult. Not impossible, but
> quite difficult. The first thing that would ease the task would be an
> xml output that is structured with a view to the user instead of being
> more or less a dump of the internal cull list.
> Assuming that many people have faced with a similar problem - parsing
> massive xml output and extracting particular bits of information - why
> not invert the problem? If the user could simply query the bits of
> information required, a large amount of repetitive parsing could be
> eliminated. It should also help reduce bandwidth between client and
> qmaster. The "ps -o ..." interface could be a suitable model as could
> some XPath type of query.
>
> I realize that these last two points are beyond the scope of the current
> discussion, but nonetheless worth mentioning (I hope).


--

-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list