UNSOLVED

wpang

updated

10 years ago

W

wpang

6 Posts

0

4320

December 1st, 2016 15:00

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]]

  • prydz

    6 Posts

    2236

    0

    Posted December 6th, 2016 00:00

    Do you have try a newer SDK?

  • wpang

    6 Posts

    2236

    0

    Posted December 6th, 2016 07:00

    Thanks for your reply.

    Do you know what the latest version?

    My version is:

    PS C:\WINDOWS\system32> get-dellstorageapicommandsetversion

    Major Minor Build Revision
    ----- ----- ----- --------
    2         0     1   327

  • prydz

    6 Posts

    2236

    0

    Posted December 6th, 2016 07:00

    Yes i have the Version below:

    Major  Minor  Build  Revision
    -----  -----  -----  --------
    3      1      1      72

    I think this is the latest!

  • wpang

    6 Posts

    2236

    0

    Posted December 6th, 2016 09:00

    I changed to your  version. But still get the same error.

    Does it only support SCv2000/2020/2080 ? Will it support SC8000?

    Thanks

  • prydz

    6 Posts

    2236

    0

    Posted December 7th, 2016 01:00

    We have a SC8000 and it work's!

    Wich Version of EM or SM do you have?

    I have the latest Version of the Storage Manager

  • wpang

    6 Posts

    2236

    0

    Posted December 7th, 2016 12:00

    My management is SM.

    Do you know is that a trigger can enable powershell access?

    Thanks!

  • prydz

    6 Posts

    2236

    0

    Posted December 12th, 2016 01:00

    Not that I know of!

    What does the Support say?

  • wpang

    6 Posts

    2236

    0

    Posted December 12th, 2016 07:00

    The support said they would not support the Powershell case.

  • wpang

    6 Posts

    2236

    0

    Posted January 16th, 2017 08:00

    I finally figured out what is the error message. The powershell just works for Storage Manager or Enterprise Manager. But the IP I tried to access is the virtual management IP of the controllers.