PowerAruba / PowerArubaSW

PowerShell module to manage ArubaOS switches
Apache License 2.0
42 stars 9 forks source link

Problem with connect to a switch #67

Closed joydi closed 5 years ago

joydi commented 5 years ago

Hi,

i try to connect to a switch and get the following error message.

$mysecpassword = ConvertTo-SecureString secretpassword -AsPlainText -Verbose -force
PS C:\WINDOWS\system32> Connect-ArubaSW -httpOnly -Server 11.155.245.123 -Username manager -Password $mysecpassword
WARNUNG: The Switch API sends an error message:
WARNUNG: Error description (code): Not Found (404)
WARNUNG: Error details: {
"message": "Error 404: Not Found."
}
Unable to use switch API
In C:\Program Files\WindowsPowerShell\Modules\PowerArubaSW\0.6\Private\Webrequest.ps1:74 Zeichen:13
+             throw "Unable to use switch API"
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Unable to use switch API:String) [], RuntimeException
    + FullyQualifiedErrorId : Unable to use switch API

Can you help me ?

Thanks

alagoutte commented 5 years ago

Hi Joydi,

What your switch model ? and the firmware version ?

joydi commented 5 years ago

Hi,

the switch is an Aruba 2930F and the firmware is WC.16.04.0010.

Thanks in advance

alagoutte commented 5 years ago

Hi,

You need to upgrade to 16.05.x (for get APIv4)

16.04 use APIv3 and PowerArubaSW need APIv4 it is planned to have multi version support but later... (it is complicated...)

joydi commented 5 years ago

Ah,

thank you for the help i will give it a try and will inform you.

alagoutte commented 5 years ago

Hi,

Do you have fix your issue ?

alagoutte commented 5 years ago

Hi, you have always the issue ?