If response does not return 200 then attempt to login using default credentials (admin/) If response to step 3 returns code 268, the switch needs a password configured so PUT the password to the switch Here's the code for which that's handled: https://github.com/aruba/pyaoscx/blob/maste...