To create a new PKEY on the switch:
[root@ibswitch-ibs ~]# getmaster
Local SM enabled and running, state MASTER
20170422 18:00:33 Master SubnetManager on sm lid 1 sm guid 0x10e04071a7a0a0 : SUN DCS 36P QDR ibswitch-ibs 172.28.228.133
[root@ibswitch-ibs ~]# smpartition start
[root@ibswitch-ibs ~]# smpartition create -n test -pkey 0x0550 -flag ipoib -m full
To remove PKEY on IB switch:
[root@ibswitch-ibs ~]# smpartition start
[root@ibswitch-ibs ~]# smpartition remove -n test -port 0010E000656432BD-> Read more...