Python UCSM SDK gives not supported server exception when logging into UCS Manager Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2020 01:55 AM
I'm trying to use the Python uscmsdk library; however it's failing at the login with the error "Not supported on server". The code I'm using is equivalent to:
"from ucsmsdk.ucshandle import UcsHandle
# Create a connection handle
handle = UcsHandle(<host_ip>, <username>, <password>)
# Login to the server
handle.login()
# ERROR: in calling this method the exception ucsmsdk.ucsexception.UcsLoginError is thrown
# Traceback: My code -> uscmsdk.ucshandle.py L135 (in the method 'login') -> ucsmsdk.ucssession.py L607 (in the method '_login')"
I understand this error normally means I should be using the IMC library instead. Except we definitely have UCS Manager installed; if I go to the host in a browser I can log into UCS Manager. Further, if I then check the audit logs I can see that the code using the Python library was also successful at logging in and logging out.
Does any one have any ideas as to why the UCS manager would be throwing this error?
Many thanks,
- Labels:
-
Python SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2020 05:12 AM
Hi @hornseym
Not sure if you resolved the problem meanwhile, but can you share here the full output of the error while you run your script?
Cheers,
Sergiu
