[Moabusers] Fwd: Query resources programmatically

Feiyi Wang fwang2 at gmail.com
Mon Apr 30 09:11:03 MDT 2007


Hi, Chris -

I am aware of XML APIs and it seems to provide the information I want. So it
is possible to read the command output, parse the xml, and build up the data
structure, though I was initially trying to avoid that. The reason being
that anytime the output format changes, I might have to modify the source.
That is why I was looking at mclient.c, which is the source for mdiag for
example,  and see if the API used there make sense. One thing I am hoping to
get clarification is that, is the API used by mclient.c are intended for
internal use only? since they are not really documented anywhere I can find.

Thanks

Feiyi

On 4/30/07, chris <chris at clusterresources.com> wrote:
>
> Hi Feiyi,
>
> Have you looked at our API document
> http://www.clusterresources.com/products/mwm/docs/a.hinterfacing.shtml I
> think the best method of querying moab would be using our xml api.
>
> Please let me know if I can be of further help.
>
> Regards,
>
>
> Feiyi Wang wrote:
> > I am not sure if the following message was sent ... I apologize if you
> > receive it twice.
> >
> > Feiyi
> >
> > ---------- Forwarded message ----------
> > From: *Feiyi Wang * <fwang2 at gmail.com <mailto:fwang2 at gmail.com>>
> > Date: Apr 25, 2007 7:03 PM
> > Subject: Query resources programmatically
> > To: moabusers at supercluster.org <mailto:moabusers at supercluster.org>
> >
> > Hi, folks -
> >
> > Are there Moab API's that allow me to query resources such how many
> > total nodes available and the attributes associated with each node?
> > Information that is similar to the output of "mdiag -n".
> >
> > I have browsed Moab workload manager's C API, the documented API there
> > are mostly job oriented, not really any global resource view that I am
> > looking for. The source code from Moab src/server/sample.c seem
> > provided a way of doing that by calling MCDoCommand(), but I could not
> > get it compiled right, nor can I find any documents about this API.
> >
> > Any information is much appreciated.
> >
> > Feiyi
> >
> > ---
> > Oak Ridge National Lab.
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > moabusers mailing list
> > moabusers at supercluster.org
> > http://www.supercluster.org/mailman/listinfo/moabusers
> >
>
>
> --
> Chris Vaughan
> EMEA Systems Engineer
> Cluster Resources, Ltd.
> Direct - UK Office:  +44 (0)1223 437 132
> US Headquarters:  +1 801 717 3700
> Skype: supercomputer1
> www.clusterresources.co.uk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/moabusers/attachments/20070430/00b47a7f/attachment.html


More information about the moabusers mailing list