Microsoft Virtualization Discussions

Data ONTAP PowerShell Toolkit ——Discover Filer Error

czheccom
4,646 Views

hi,

After import the module ,I run the Show-Nahelp,it is normal.

And when i run the command Find-NaController ,the log messages were like this:

PS C:\> Find-NaController 192.168.100.212

“DataONTAP.PowerShell.SDK.Cmdlets.Discovery.FindNaController”的类型初始值设定
项引发异常。
所在位置 行:1 字符: 18
+ Find-NaController <<<< 192.168.100.212

    + CategoryInfo          : NotSpecified: (:) [], TypeInitializationExceptio
   n
    + FullyQualifiedErrorId : System.TypeInitializationException

So any body here can help me to resolve the issue?

Thanks.

5 REPLIES 5

cknight
4,646 Views

Hello, czh-eccom.  I think we'll need a little more info, please:

  • What is the locale setting of your PowerShell host?
  • What type of device is at address 192.168.100.212?
  • Does the command work for other addresses in your environment?
  • Does the rest of the Toolkit work OK?
  • Immediately after the error occurs, what are the values of $Error[0], $Error[0].Exception, and $Error[0].Exception.InnerException?
  • Any additional info you can offer might be helpful.

czheccom
4,646 Views

hi,

1,I was installed the KB WindowsXP-KB968930-x86-CHS.exe that cantain the powershell 2.0. After install ,i copyed the DataOntap to C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules and imported the module.

2,the address of 192.168.100.212 is the filer ,

3,i can telnet the filer via this ip address.

4, the rest of the Toolkit is wok normal except the DataOntap module,

5,there is not any other errors,just saied that the initial class type value was not correct.

Thanks for you help.

cknight
4,646 Views

What happens if you use quotes around the address, i.e. Find-NaController "192.168.100.212"

czheccom
4,646 Views

PS C:\WINDOWS\system32\WindowsPowerShell\v1.0>  Find-NaController "192.168.100.2
12"
“DataONTAP.PowerShell.SDK.Cmdlets.Discovery.FindNaController”的类型初始值设定
项引发异常。
所在位置 行:1 字符: 19
+  Find-NaController <<<<  "192.168.100.212"
    + CategoryInfo          : NotSpecified: (:) [], TypeInitializationExceptio
   n
    + FullyQualifiedErrorId : System.TypeInitializationException

fjohn
4,646 Views

On execution a type initialization fails, but which one?  What are the values of $Error[0], $Error[0].Exception, and $Error[0].Exception.InnerException?  Does the Windows application log provide any clues?  Have you tried this on any versions of Windows with languages other than 中文?  That information would be helpful in tracking down the error you are experiencing.

J

Public