[ofa-general] Library routine for enumerating IB cards and GUIDS

Chris Worley worleys at gmail.com
Wed Jul 1 14:42:45 PDT 2009


On Wed, Jul 1, 2009 at 3:23 PM, Hal Rosenstock<hal.rosenstock at gmail.com> wrote:
> On Wed, Jul 1, 2009 at 4:16 PM, Chris Worley<worleys at gmail.com> wrote:
>> I need a programmatic way to enumerate all IB cards in the system,
>> i.e. their port GUIDs.
>>
>> What library/routines might I use, and which docs should I read
>> concerning exposed routines?
>
> Is /sys/class/infiniband/*/ports/*/gids/0 sufficient ? The port GUIDs
> are the low 64 bits. That's one way.

I can definitely write scripts to collect the data... I was looking
for "C" routines, other than "system" calls to scripts.

Thanks,

Chris
>
> -- Hal
>
>> Thanks,
>>
>> Chris
>> _______________________________________________
>> general mailing list
>> general at lists.openfabrics.org
>> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
>>
>> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
>>
>



More information about the general mailing list