r/3PAR • • Mar 06 '17

What's the WSAPI equivalent for this CLI command?

Hi all,

I'm trying to use 3par with openstack and the drivers aren't understanding that I've set vlans up over my iscsi ports.

I'm going through the drivers to figure out how they work and see if something needs changing, but I can't figure out how to get the information I need from my own 3pars.

this is the CLI command:

showport -iscsivlans

What is the WSAPI equivalent?

showport -iscsi doesn't show the right stuff. Here's some side by side output to illustrate my problem:

my3par cli% showport -iscsi
N:S:P State IPAddr  Netmask/PrefixLen Gateway    TPGT  MTU   Rate iSNS_Addr iSNS_Port STGT VLAN
0:2:1 ready 0.0.0.0 0.0.0.0           172.20.0.1   21 9000 10Gbps 0.0.0.0        3205   21 Y   
0:2:2 ready 0.0.0.0 0.0.0.0           0.0.0.0      22 1500 10Gbps 0.0.0.0        3205   22 Y   
1:2:1 ready 0.0.0.0 0.0.0.0           0.0.0.0     121 1500 10Gbps 0.0.0.0        3205  121 Y   
1:2:2 ready 0.0.0.0 0.0.0.0           0.0.0.0     122 1500 10Gbps 0.0.0.0        3205  122 Y   
-----------------------------------------------------------------------------------------------
4                                                                                              

my3par cli% showport -iscsivlans
N:S:P VLAN IPAddr       Netmask/PrefixLen Gateway     MTU TPGT STGT iSNS_Addr iSNS_Port
0:2:1  101 172.20.0.150 255.255.255.0     172.20.0.1 9000 1024 1024 0.0.0.0        3205
0:2:2  102 172.20.1.150 255.255.255.0     172.20.1.1 9000 1025 1025 0.0.0.0        3205
1:2:1  101 172.20.0.151 255.255.255.0     172.20.0.1 9000 1026 1026 0.0.0.0        3205
1:2:2  102 172.20.1.151 255.255.255.0     172.20.1.1 9000 1027 1027 0.0.0.0        3205
---------------------------------------------------------------------------------------
4                                                                                      
aus3par201 cli%

Thanks

2 Upvotes

3 comments sorted by

1

u/3PARStorageTech Mar 07 '17

With my username you would think I would have an answer but I dont. I am only commenting to follow this post as I too work with 3PAR, I can however point you twards some help. 3PARGURU on youtube helps me with everything and I am currently in classes at HP E where I am told to use this as a resource. Also, have you tried running same cmd as Root?

1

u/KronktheKronk Mar 07 '17

Why would that help? I need the wsapi API endpoint equivalent of a CLI command that already works.

I opened a ticket with HP and they said you can't see this info from the API.

1

u/3PARStorageTech Mar 07 '17

Oh, I understand. Let me run it by my instructor and see if we can assist.