<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: could not login to UCS manager sandbox using UCS Python SDK in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/could-not-login-to-ucs-manager-sandbox-using-ucs-python-sdk/m-p/4396386#M6073</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/352839"&gt;@bigevilbeard&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I uninstalled Python 3.9.4 and installed 3.7.3 and the same script worked on 3.7.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can close the case. Thanks for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
    <pubDate>Sat, 01 May 2021 05:35:27 GMT</pubDate>
    <dc:creator>a11024</dc:creator>
    <dc:date>2021-05-01T05:35:27Z</dc:date>
    <item>
      <title>could not login to UCS manager sandbox using UCS Python SDK</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/could-not-login-to-ucs-manager-sandbox-using-ucs-python-sdk/m-p/4396032#M6069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] I was able to SSH to 10.10.20.110 and 10.10.20.113 (the 2 UCS manager sandbox IP addresses) via Cisco AnyConnect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2] But the following python script does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from ucsmsdk.ucshandle import UcsHandle
HANDLE = UcsHandle("10.10.20.110", "ucspe", "ucspe") or
HANDLE = UcsHandle("10.10.20.110", "admin", "ciscopsdt")

# Login into Cisco UCS Manager
HANDLE.login()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;the error message is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "C:\Users\david.smith\AppData\Local\Programs\Python\Python39\lib\site-packages\ucsmsdk\ucshandle.py", line 135, in login&lt;BR /&gt;return self._login(auto_refresh, force, timeout=timeout)&lt;BR /&gt;File "C:\Users\david.smith\AppData\Local\Programs\Python\Python39\lib\site-packages\ucsmsdk\ucssession.py", line 599, in _login&lt;BR /&gt;response = self.post_elem(elem, timeout=timeout)&lt;BR /&gt;File "C:\Users\david.smith\AppData\Local\Programs\Python\Python39\lib\site-packages\ucsmsdk\ucssession.py", line 318, in post_elem&lt;BR /&gt;response = xc.from_xml_str(response_str, self)&lt;BR /&gt;File "C:\Users\david.smith\AppData\Local\Programs\Python\Python39\lib\site-packages\ucsmsdk\ucsxmlcodec.py", line 98, in from_xml_str&lt;BR /&gt;response.from_xml(root_elem, handle)&lt;BR /&gt;File "C:\Users\david.smith\AppData\Local\Programs\Python\Python39\lib\site-packages\ucsmsdk\ucsmethod.py", line 143, in from_xml&lt;BR /&gt;child_elems = elem.getchildren()&lt;BR /&gt;AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone knows why?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 11:08:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/could-not-login-to-ucs-manager-sandbox-using-ucs-python-sdk/m-p/4396032#M6069</guid>
      <dc:creator>a11024</dc:creator>
      <dc:date>2021-04-30T11:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: could not login to UCS manager sandbox using UCS Python SDK</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/could-not-login-to-ucs-manager-sandbox-using-ucs-python-sdk/m-p/4396079#M6070</link>
      <description>&lt;P data-unlink="true"&gt;Hello, this isn't a fault with the sandbox, this looks like the version of python you are using is not supported (Python 3.9 incompatibilities). I would suggest, trying this with another Python (3.4 is listed as working) version&amp;nbsp;or creating an issue on the repo&amp;nbsp;&lt;A href="https://github.com/CiscoUcs/ucsm_apis" target="_blank"&gt;https://github.com/CiscoUcs/ucsm_apis&lt;/A&gt;&amp;nbsp;- I see there is further support via a slack room, details are here&amp;nbsp;&lt;A href="https://pypi.org/project/ucsmsdk/" target="_blank"&gt;https://pypi.org/project/ucsmsdk/&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 11:57:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/could-not-login-to-ucs-manager-sandbox-using-ucs-python-sdk/m-p/4396079#M6070</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2021-04-30T11:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: could not login to UCS manager sandbox using UCS Python SDK</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/could-not-login-to-ucs-manager-sandbox-using-ucs-python-sdk/m-p/4396386#M6073</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/352839"&gt;@bigevilbeard&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I uninstalled Python 3.9.4 and installed 3.7.3 and the same script worked on 3.7.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can close the case. Thanks for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Sat, 01 May 2021 05:35:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/could-not-login-to-ucs-manager-sandbox-using-ucs-python-sdk/m-p/4396386#M6073</guid>
      <dc:creator>a11024</dc:creator>
      <dc:date>2021-05-01T05:35:27Z</dc:date>
    </item>
  </channel>
</rss>

