The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to register at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Microsoft Virtualization Discussions

Unexpected error running NetAppDocs script

Reggie

Hi,

 

I get the following error when I am trying to run a collection script for a customer.  Please let me know if you've come across this before and if there's a solution.

 

Below are the commands I entered and the associated error.

 

PS C:\> Get-ExecutionPolicy
RemoteSigned
PS C:\> Import-Module DataONTAP
PS C:\> import-module NetAppDocs

PS C:\> $Credential = Get-Credential

PS C:\>

PS C:\> Get-NtapFilerData -Name filer1,filer2 –Credential $Credential | Export-Clixml ‘C:\Users\Reggie\Documents\Work\EPCO
\7mode-sources.xml’
Get-FilerData : An unexpected error occured. Processing halted.
--------------------------------------------------------------------------------------
As this error is not expected, please consider reporting it on the communities
site. (https://communities.netapp.com/groups/usps-scripts-and-tools)
--------------------------------------------------------------------------------------
Reason: Unable to find API: storage-disk-get-iter
Location: at Get-FilerData, C:\Program Files (x86)\NetApp, Inc\NetAppDocs PowerShell
Module\NetAppDocs\Get-NtapFilerData.ps1: line 580
at Get-NtapFilerData<Process>, C:\Program Files (x86)\NetApp, Inc\NetAppDocs PowerShell
Module\NetAppDocs\Get-NtapFilerData.ps1: line 214
at <ScriptBlock>, <No file>: line 1
At C:\Program Files (x86)\NetApp, Inc\NetAppDocs PowerShell Module\NetAppDocs\Get-NtapFilerData.ps1:214 char:33
+ $ntapData = Get-FilerData -Controller $controller
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-FilerData

PS C:\>

PS C:\> Connect-NaController -Name filer1 -Credential $Credential

Name Address Ontapi Version
---- ------- ------ -------
filer1 x.x.x.x 1.18 NetApp Release 8.0.5 7-Mode: Sun Jan 20 21:53:54 PST 2013


PS C:\> Connect-NaController -Name filer2 -Credential $Credential

Name Address Ontapi Version
---- ------- ------ -------
filer2 x.x.x.x 1.18 NetApp Release 8.0.5 7-Mode: Sun Jan 20 21:53:54 PST 2013

 

 

4 REPLIES 4

billyd

This is a NetApp internal tool.

 

I believe the storage-disk-get-iter API is new as of DOT 8.1.

Reggie

Does anyone have an older version of NetappDocs that doesn't call that API? 

JGPSHNTAP

Since this is internal, I can't see, but let me ask you this.. what are you trying to accomplish and maybe I can assist?

JGPSHNTAP

^^ -

Netappdocs module is something new to me.. Is that something internal?  I've never seen that before so I can't assist with the troubleshooting

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public