After a rather unfortunate upgrade last week, we discovered this command: "allow-unsafe-updates". Vital functions on the switch stopped working because some module was not upgraded. Some switches even crashed and we had to remove the power cable to get them up and running again.
The fix was easy, however it was very manual. We had to log in to each switch, and run the "allow-unsafe-updates" command and restart the switches.
Is it possible to do this through Ansible or API?
And is it a way to check if this is necessary to apply beforehand (through Ansible or API)?
not sure with API => https://community.arubanetworks.com/discussion/aos-cx-allow-unsafe-updates-via-rest-api
do you have search on swagger ?
for Ansible, you can use aruba_cx_config modules (using SSH)
Unfortunately, it doesn't look like there is an API call for this specific CLI command. As @alagoutte mentioned, this may be able to be done through Ansible using the SSH CLI module in the AOS-CX Ansible Collection to run an aoscx_command. You can find some details about it here.
Okay, thank you both.
Would it be a problem to run this command before every switch upgrade?
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.