lsportset
Use the lsportset command to list the currently configured portsets. This list shows the ID, portset name, and the number of IP addresses and hosts associated with each portset along with ownership group information.
Syntax
Parameters
- portset_name | portset_id
- (Optional) Specifies the ID and name of the portset. The name value is an alphanumeric string of
64
characters long and ID value is in decimal of 0 - 71. - -filtervalue attribute=value
- (Optional) Specifies a list of one or more filters. Only objects with a value that matches the filter attribute value are displayed.
- -filtervalue?
- (Optional) Displays the valid filter attributes for the -filtervalue
attribute=value parameter:
- id or portset name
- type
- owner_id or owner_name
- port_type
Description
This table provides the attribute values that can be displayed as output view
data.
Attribute | Description |
---|---|
id | Indicates the ID of the portset. The value can be a decimal number in the range 0 - 71. |
name | Indicates the name of the portset. The value can be an ASCII string in the range 0 - 64 characters. |
type | Indicates the type of portset. The value can be
|
port_count | Indicates the number of ports (IP addresses or WWPNs) associated with the portset. The value can be a number in the range 0 - 255. |
host_count | Indicates the number of host or partnership objects associated with this
portset. Default value is set to 1 for the storage portset. Use
lshost and lspartnership to view the associations of portset
to host and partnership objects. The value can be a number in the range 0 - 2048. |
lossless | Indicates whether all ports (IP addresses or WWPNs) for this portset are lossless. Even if a single IP address is not configured as lossless, the portset is not a lossless portset. Use lsip to view lossless parameter per IP address. |
owner_id | Indicates the ID of the ownership group. |
owner_name | Indicates the name of the ownership group. |
port_type | Indicates the type of ports in portset. Supported values: ethernet or fc. |
is_default | Indicates whether the portset is the default portset for type or port_type combinations. Supported values: yes or no. |
A concise invocation example for lsportset
lsportset
The resulting output
id name type port_count host_count lossless owner_id owner_name port _type is_default
0 portset0 host 0 0 ethe rnet yes
1 portset1 replication 0 0 ethe rnet no
2 portset2 replication 0 0 ethe rnet no
3 portset3 storage 0 0 ethe rnet no
4 ps4 host 4 0 yes fc no
5 ps5 host 2 1 yes fc no
64 portset64 host 12 1 yes fc yes
A detailed invocation example
lsportset 1
The resulting output
id 1
name portset1
type replication
port_count 0
host_count 0
lossless
owner_id
owner_name
port_type ethernet
is_default no
A invocation example of list of all portsets of type host
lsportset -filtervalue type=host (global user view)
The resulting output
id name type port_count host_count lossless owner_id owner_name port_type is_default
0 portset0 host 0 0 ethernet yes
64 portset64 host 8 0 yes fc yes
lsportset -filtervalue type=host (tenant1 user view)
The resulting output
id name type port_count host_count lossless owner_id owner_name port_type is_default
0 portset0 host 0 0 ethernet yes
64 portset64 host 8 0 yes fc yes
List of portsets of owner_name tenant1
lsportset -filtervalue owner_name=tenant1 (global user view)
The resulting output
id name type port_count host_count lossless owner_id owner_name port_type is _default
4 portset4 host 0 0 0 tenant1 ethernet no
5 portset5 host 0 0 yes 0 tenant1 fc no
List of portsets of owner_name tenant1
lsportset -filtervalue owner_name=tenant1 (tenant1 user view)
The resulting output
id name type port_count host_count lossless owner_id owner_name port_type is _default
4 portset4 host 0 0 0 tenant1 ethernet no
5 portset5 host 0 0 yes 0 tenant1 fc no