Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
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.
Hello, czh-eccom. I think we'll need a little more info, please:
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.
What happens if you use quotes around the address, i.e. Find-NaController "192.168.100.212"
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
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