Microsoft Virtualization Discussions

Unexpected error running NetAppDocs script

Reggie
6,364 Views

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

JGPSHNTAP
6,338 Views

^^ -

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

billyd
6,330 Views

This is a NetApp internal tool.

 

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

Reggie
6,311 Views

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

JGPSHNTAP
6,309 Views

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?

Public