[openib-general] Re: [OpenSM] SA database query tool

Eitan Zahavi eitan at mellanox.co.il
Wed Nov 2 13:05:01 PST 2005


Hi James,

Assuming you ask for a remote access to the data through the IB network
(In-Band):
(but actually this will work also in loopback if run on the same IB port)

If you need the query tool for scripting ibis is your best choice.

A quick example for what you need to do to get all NodeInfoRecor's:

ibis -port_num 1 
sacNodeQuery getTable 0 # the zero is the comp mask.

You could also read the ibis.c and the osm_vendor_sa_api.h to see how one
can implement that in C.

You could use umad directly 

Or decide to re-write the exiting software too.

Eitan Zahavi
Design Technology Director
Mellanox Technologies LTD
Tel:+972-4-9097208
Fax:+972-4-9593245
P.O. Box 586 Yokneam 20692 ISRAEL


> -----Original Message-----
> From: Hal Rosenstock [mailto:halr at voltaire.com]
> Sent: Wednesday, November 02, 2005 9:02 PM
> To: James Lentini
> Cc: openib-general
> Subject: [openib-general] Re: [OpenSM] SA database query tool
> 
> On Wed, 2005-11-02 at 13:51, James Lentini wrote:
> > Hal,
> >
> > Is there an existing OpenIB tool that can query an SA's database using
> > MADs? Specifically, I want to retrieve all of the SA's service
> > records.
> 
> The only current way is via ibis.
> 
> > If such a tool doesn't exist, where would you start writing one?
> > Would you layer it on top of libibmad?
> 
> There are two approaches I can think of off the top of my head:
> 
> 1. Support for this and other SA searches in the SM console
> 2. Be able to obtain these remotely via building on top of umad in some
> form (a real userspace SA client will likely be done in the not too
> distant future).
> 
> What is the timeframe for this need ? How formal do you need something
> in the interim ?
> 
> -- Hal
> 
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit
http://openib.org/mailman/listinfo/openib-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20051102/45f92bb0/attachment.html>


More information about the general mailing list