When running the PSTK cmdlet get-ncnetinterface from version 9.12.1 against an ONTAP 9.12 cluster, it leaves the vserver value null for intercluster LIFs. I'm trying to set the intercluster interfaces to admin down, but set-ncnetinterface requires a value for vserver. When I provide the value manually, taking it from what's displayed on the CLI, I get a rather vague error: " WARNING: Record doesn't exist" for each intercluster LIF.
Here's the cluster output:
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
----------- ---------- ---------- ------------------ ------------- ------- ----
gsdc-aut-ontap912-1
gsdc-aut-ontap912-1-01_inter1
up/up 10.216.51.169/24 gsdc-aut-ontap912-1-01
e0c true
gsdc-aut-ontap912-1-02_inter1
up/up 10.216.51.170/24 gsdc-aut-ontap912-1-02
e0c true
Here's the loop I'm running:
Get-NcNetInterface |% {
if ( $_.ServicePolicy -eq 'default-intercluster' ) {
Set-NcNetInterface -Controller $ClusterConnection -Vserver gsdc-aut-ontap912-1 -Name $_.InterfaceName -AdministrativeStatus down -Confirm:$false
$_.Vserver
}
}
Output for the vserver property is null.
All of this works just fine on ONTAP 9.7 which is before the introduction of the Service Policy property. Regardless of how I run get-ncnetinterface, I get a null vserver property. How can I run set-ncnetinterface without the required vserver parameter? Even if I manually insert the vserver displayed on the command line, I get the error message mentioned above.