
UNSOLVED
Powershell error: Connect-DellApiConnection : MethodNotAvailable
Hi,
I wrote this strip and run it. But come with some errors. How can I have it work?
Import-Module "C:\Users\Coreloth\Desktop\DellStoragePowerShellSDK_v2_0_1_327B\DellStorage.ApiCommandSet.psd1"
$dsm = "10.203.5.50"
$dsm_user = "wpang"
$dsm_psw = Read-Host -AsSecureString -Prompt "Password:"
$connection = Connect-DellApiConnection -HostName $dsm -User $dsm_user -Password $dsm_psw
It returned below errors:
Connect-DellApiConnection : MethodNotAvailable - The Storage Center API request was invalid. The Storage Center log may contain details.
At C:\Users\Coreloth\Desktop\test.ps1:5 char:15
+ $connection = Connect-DellApiConnection -HostName $dsm -User $dsm_user -Password ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (DellStorage.Api...ectionGetCmdlet:ApiConnectionGetCmdlet) [Connect-DellApiConnection], DellStorageApiMethodException
+ FullyQualifiedErrorId : ConnectionFailure,DellStorage.Api.CommandSet.Cmdlets.ApiConnectionGetCmdlet
I checked the log on compellent:
Login session created for userid 9, name wpang from host 10.202.23.103
<11>Dec 1 15:32:44 httpd: [error] [49062]:[80}:authenticate_user:[Basic]:[wpang]:[10.202.23.103]:[OK]
RespXML: Error state:emotion-14:, summary[Method not implemented [Apiconnection::loginMethod]]
Responses (9)
Solutions (0)

prydz
6 Posts
2236
0
Posted December 6th, 2016 00:00
Do you have try a newer SDK?