set -showseparator with non-default value show duplicate fields (columns) in network command?
Applies to
ONTAP 9
Answer
- This behavior is intended and applies to fields with alias names when the separator is non-default.
- When
set -showseparatoris used, the output is designed for consumption by scripts. For fields with an alias, the output includes both the field's name and its alias name so scripts looking for either name can find the value. - In this case, the second column for
vserveris calledserver, and the second column forlifis calledvif
::> set -showseparator " ;"
::> network interface show -fields address,home-node
vserver ;server ;lif ;vif ;address ;home-node ;
Vserver Name ;Vserver Name ;Logical Interface Name ;Logical Interface Name ;Network Address ;Home Node ;
clus9x ;clus9x ;clus9x-01_mgmt1 ;clus9x-01_mgmt1 ;192.168.10.10 ;clus9x-01 ;
Additional Information
additionalInformation_text
