Title: RE: [openib-general] Re: OpenSM & pkeys

Hi Yipee,

A Tcl API for sending and receiving MADs is available under
https://openib.org/svn/gen2/utils/src/linux-user/ibis
(IBIS == IB Inband Services)

If you follow on the autogen.sh && configure && make && make install
you should get /usr/local/bin/ibis executable.

Then you need to basically:

Run ibis from shell. And get the Tcl prompt. Then run:
ibis_init
ibis_get_local_ports_info
# select one of the guids above that are ACTIVE and use in next command <guid>
ibis_set_port <guid>

# set the PKey you want to use
smPkeyTableMad configure -pkey_entry {0xffff 0x1234 0x8555 .... the set of pkeys  }

# Then send it over using directed route or lid
smPkeyTableMad setByDr <dr path> <port num> <block num>
smPkeyTableMad setByLid <lid> <port num> <block num>
# Where:
# dr-path = list of ports the packets has to exit through
#     1,2 will leave the first node through port 1 and the second node through port 2
# lid = the target node lid
# port num = the target port number to set pkey on
# block num = the block of pkeys to set (you should probably use always 0 )

# you can figure out what other capabilities are there by using Tcl command:
# info commands

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: yipee [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 26, 2005 6:01 PM
> To: [email protected]
> Subject: [openib-general] Re: OpenSM & pkeys
>
> Hal Rosenstock <halr <at> voltaire.com> writes:
>
> [cut]
> > The PKey tables can also be obtained by the diagnostic tools: smpdump in
> > particular.
>
> OK, But currently there's no way (at least that I know of) to set PKeys for the
> hosts ports.
>
>
> y
>
>
>
> _______________________________________________
> openib-general mailing list
> [email protected]
> http://openib.org/mailman/listinfo/openib-general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to