[openib-general] ib_gid lookup

Hal Rosenstock halr at voltaire.com
Tue Jun 20 03:08:32 PDT 2006


Hi Amit,

On Mon, 2006-06-19 at 20:36, Amit Byron wrote:
> hello,
>   i'm trying to find whether i can do a lookup of ib_gid by either
> node name or node's ip address. is this information available from
> the subnet manager?

The SM doesn't know the node name but you might be able to do this by
NodeDescription depending on how the subnet was setup (the
NodeDescriptions would need to be made unique on each node; a script for
this was supplied for mthca; there is also a current standards issue
with the SM detecting that these had changed which is being worked on).
If that were to be done, the SA could be queried by NodeDescription
which would return a NodeRecord which would obtain the NodeInfo which
includes the NodeGUID and PortGUID. Note it also returns the base LID as
well.

The SM does not know the IP addresses unless they are registered by DAPL
(via ServiceRecords) but I'm not sure that is done anymore or whether
DAPL runs in your environment.

-- Hal

> thanks,
> Amit.
> 
> 
> _______________________________________________
> 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
> 





More information about the general mailing list