AsBuiltReport / AsBuiltReport.NetApp.ONTAP

A PowerShell module to generate an as built report on the configuration of NetApp ONTAP storage arrays.
MIT License
15 stars 3 forks source link

A parameter issue is showing about HTTPS error #35

Closed JGANetapp closed 1 year ago

JGANetapp commented 1 year ago

While running the command in generating the asbuilt report I got this one.

Screenshot 2023-08-04 131625

Can anyone help me how to solve this issue?

rebelinux commented 1 year ago

Wha version of Ontap are you using?

JGANetapp commented 1 year ago

I am using Ontap 9.12

rebelinux commented 1 year ago

Unfortunately, I don't have access to Ontap 9.11+ versions to be able to carry out the tests.

varunrai commented 1 year ago

It seems to be a compatibility issue between 9.13.x and 9.12.x ONTAP dependencies.

Connect-NcController does not seem to accept the parameter -HTTPS in 9.13.x. https://github.com/AsBuiltReport/AsBuiltReport.NetApp.ONTAP/blob/fbac2a937e2a6fce2b402eb9ad93d9085b2647bb/Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1#L61C3-L61C3

The workaround is to uninstall the powershell module NetApp.ONTAP from 9.13.x and install 9.12.x which seems to be working fine.

rebelinux commented 1 year ago

Removed the -HTTPS from the connection code. Please update to v0.6.6 and test it again.

Update-Module -Name AsBuiltReport.NetApp.ONTAP -Force
Import-Module AsBuiltReport.NetApp.ONTAP -Force