Hello, I am a student employee at a university serviced by Aruba, and am working on using your software aruba-switch-ansible to automate our network. I also tried using aruba-ansible modules, but switched after I couldn't get it to work. I am working on a test switch, a 2930M. After aruba-switch-ansible and aruba-ansible-modules had the same problem, I realized that it is probably an issue with a switch setting, not something with the software. The problem that I encountered with both softwares was that it could not navigate to https://x.x.x.x/rest/v4/login-sessions, and I did try different version numbers. Whenver I try to access it via this web browser, I get the same error as the guy who posted the original thread, 400: Bad Request. When I navigate to the switch via https://x.x.x.x , it directs me to an html page: https://x.x.x.x/html/banner.html and after clicking 'continue' on the webpage it directs me to https://x.x.x.x/html/login.html. The first command I have been trying to execute is a POST login command, the one in aruba-switch-ansible playbook, arubaoss_tasks_config_example.
I believe the problem may have to do with my SSL interactions or my web-management settings. In the CLI, I see several things that led me to this conclusion:
1) I get that the SSL port is already in use:
SW-NAME-01(config)# web-management ssl
web-management: The specified TCP/UDP port is in use by another protocol.
2) The management URL is still the default management URL, I didn't know if this needed to be changed to the https://x.x.x.x/rest/v4/login-sessions or how to change it, if this is the problem:
SW-NAME-01(config)# show web-management
Web Management - Server Configuration
HTTP Access : Enabled
HTTPS Access : Enabled
SSL Port : 443
Idle Timeout : 600 seconds
Management URL : http://h17007.www1.hpe.com/device_help
Support URL : https://www.hpe.com/us/en/networking.html
User Interface : Improved
Listen Mode : both
My REST interface settings appear to all be correct based on the Aruba documentation I have seen:
SW-NAME-01# show rest-interface
REST Interface - Server Configuration
REST Interface : Enabled
REST Operational Status : Up
REST Session Idle Timeout : 600 seconds
HTTP Access : Enabled
HTTPS Access : Enabled
SSL Port : 443
I have already tried a few solutions, like switching the body_format in login_switch.yml in aruba-switch-ansible to raw, and form-urlencoded from its default json. This caused status 200 and status -1 errors, but neither could login to the switch. I also tried setting it to raw, and making the text objects that I'm looking for, so that they match those on the page. Eg. "password" to how it was on the page, "Password:". The last thing I tried was just changing the url to https://x.x.x.x/html/login.html, but this also did not work.
I had pretty much the exact same problem with aruba-ansible-modules and could also not figure out how to fix it there. Any support would be appreciated, thank you.
#2930M#2930M