ONTAP Rest API Discussions

ONTAP REST API issues, issue with these two cmdlets: Get-NcSystemImage & Get-NcNetInterface

sneppef
535 Views

Hi,

 

I am observing the following two issues when running some Powershell cmdlets against 9.12.1P8.

This is with version 9.13.1.2306 of the Powershell toolkit, but I believe the issue is with the REST API of ONTAP 9.12.1P8 and not with the Powershell toolkit. This is because when I run the same cmdlets against an ONTAP 9.8P18 cluster, they behave as expected.

 

First cmdlet: Get-NcSystemImage

 

Against ONTAP 9.12.1P8:

 

[DBG]: PS C:\Users\FiSneppe\Downloads\ONTAP-audit-scripts>> Get-NcSystemImage

Node Image IsCurrent IsDefault InstallTimeDT Version
---- ----- --------- --------- ------------- -------
9.10.1P15
9.12.1P8
9.8P18

 

[DBG]: PS C:\Users\FiSneppe\Downloads\ONTAP-audit-scripts>> Get-NcSystemImage -ONTAPI

Node Image IsCurrent IsDefault InstallTimeDT Version
---- ----- --------- --------- ------------- -------
AFF220-XXX-01 image1 False False 16/11/2023 13:50:48 9.10.1P15
AFF220-XXX-01 image2 True True 16/11/2023 14:50:20 9.12.1P8
AFF220-XXX-02 image1 False False 16/11/2023 13:51:16 9.10.1P15
AFF220-XXX-02 image2 True True 16/11/2023 14:50:46 9.12.1P8

 

I believe the ONTAPI output is correct, effectively returning the equivalent of the output of the "system image show" CLI command.

 

Second cmdlet: Nc-GetNetInterface

 

[DBG]: PS C:\Users\FiSneppe\Downloads\ONTAP-audit-scripts>> Get-NcNetInterface

InterfaceName OpStatus DataProtocols FirewallPolicy Vserver Address
------------- -------- ------------- -------------- ------- -------
intercluster_ic1 up {intercluster_cor... x.y.195.58
AFF220-XXX-02_clus1 up {cluster_core} 169.254.104.126
AFF220-XXX-02_clus2 up {cluster_core} 169.254.164.3
AFF220-XXX-02_mgmt1 up {management_core,... x.y.195.83
AFF220-XXX-01_isc... up {data_core, data_... iSCSI x.y.198.198
intercluster_ic2 up {intercluster_cor... x.y.195.59
cluster_mgmt up {management_core,... x.y.195.43
fc-xxx-standalone... up {data_core, manag... fc-xxx-standalone x.y.195.204
AFF220-XXX-02_isc... up {data_core, data_... iSCSI x.y.198.199
AFF220-XXX-01_clus1 up {cluster_core} 169.254.14.81
AFF220-XXX-01_clus2 up {cluster_core} 169.254.180.175
AFF220-XXX-01_mgmt1 up {management_core,... x.y.195.81
lif_openstack_cin... up {data_core, manag... openstack-cinder-ldg x.y.195.14

Problem: Vserver info is missing for "Cluster" and cluster SVMs. Not all LIFs are listed.

Compared to:

 

[DBG]: PS C:\Users\FiSneppe\Downloads\ONTAP-audit-scripts>> Get-NcNetInterface -ONTAPI

InterfaceName OpStatus DataProtocols FirewallPolicy Vserver Address
------------- -------- ------------- -------------- ------- -------
AFF220-XXX-01_clus1 up {none} Cluster 169.254.14.81
AFF220-XXX-01_clus2 up {none} Cluster 169.254.180.175
AFF220-XXX-02_clus1 up {none} Cluster 169.254.104.126
AFF220-XXX-02_clus2 up {none} Cluster 169.254.164.3
AFF220-XXX-01_mgmt1 up {none} mgmt ClusterXXX-standa... x.y.195.81
AFF220-XXX-02_mgmt1 up {none} mgmt ClusterXXX-standa... x.y.195.83
cluster_mgmt up {none} mgmt ClusterXXX-standa... x.y.195.43
intercluster_ic1 up {none} intercluster ClusterXXX-standa... x.x.195.58
intercluster_ic2 up {none} intercluster ClusterXXX-standa... x.y.195.59
fc-xxx-standalone... up {none} mgmt fc-xxx-standalone x.y.195.204
fcp_01_zone01 up {fcp} fc-xxx-standalone
fcp_01_zone02 up {fcp} fc-xxx-standalone
fcp_02_zone01 up {fcp} fc-xxx-standalone
fcp_02_zone02 up {fcp} fc-xxx-standalone
AFF220-XXX-01_isc... up {iscsi} data iSCSI x.y.198.198
AFF220-XXX-02_isc... up {iscsi} data iSCSI x.y.198.199
lif_openstack_cin... up {fcp} openstack-cinder-ldg
lif_openstack_cin... up {fcp} openstack-cinder-ldg
lif_openstack_cin... up {fcp} openstack-cinder-ldg
lif_openstack_cin... up {fcp} openstack-cinder-ldg
lif_openstack_cin... up {none} mgmt openstack-cinder-ldg x.y.195.14

 

Note: I obfuscated some info in the output but the point should be clear.

 

Anyone else noticing this?

0 REPLIES 0
Public