[openib-general] [PATCH] ib_sa_query tool

Ira Weiny weiny2 at llnl.gov
Thu Mar 2 15:47:39 PST 2006


On Thu, 02 Mar 2006 18:28:15 -0500
Hal Rosenstock <halr at voltaire.com> wrote:

> Hi Ira,
> 
> On Thu, 2006-03-02 at 18:23, Ira Weiny wrote:
> > 
> > # odev7 /root > ibping `ib_sa_query -L odev3`
> > Pong from odev3.(none) (Lid 0x18): time 0.193 ms
> > Pong from odev3.(none) (Lid 0x18): time 0.110 ms
> > 
> > --- odev3.(none) (Lid 0x18) ibping statistics ---
> > 2 packets transmitted, 2 received, 0% packet loss, time 1809 ms
> > rtt min/avg/max = 0.110/0.151/0.193 ms
> 
> Is this userspace or kernel ibping on the remote side ? Note that
> ibping has not yet been pushed upstream and there is IBTA standards
> work going on which will require changes in it.
> 

This is the kernel space on the remote side...  I chose ibping only as an
example.  As we discussed before finding the LID/GID was a pain in the butt.
This tool makes it easier...

# odev7 /root > ib_sa_query --help
Usage: ib_sa_query [-h -d -P -L -G][<name>]
   Query's node records by default
   -d enable osm debugging
   -P get Pathrecord info
   -L Return just the Lid of the name specified
   -G Return just the Guid of the name specified

ib_sa_query just query's the SA.  The -L option returns the LID found to allow
the use with the other "standard" diags.  The plan was to combine this into the
diags directly but I found it easier to just build a separate tool as I learned
the interfaces.

And of course this depends on something setting up the node descriptions
correctly.  Which I have a script for if anyone is interested.

Ira




More information about the general mailing list