cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

**Deprecated - Cisco UCS Manager Python SDK (BETA version 0.8.3) - Deprecated**

12570
Views
4
Helpful
17
Comments

This version of the UCS Manager Python SDK is **Deprecated**


Please use this version - Cisco UCS Python SDK - ucsmsdk

Cisco UCS Manager Python SDK (BETA version 0.8.3) is available for download.

Cisco UCS Manager Python SDK is a python module which helps automate all aspects of Cisco UCS management including server, network, storage and hypervisor management. The bulk of the Cisco UCS Python SDK work on the UCS Manager’s Management Information Tree (MIT), performing create, modify or delete actions on the Managed Objects (MO) in the tree. The next chapter provides an overview of the Cisco UCS Management Information Model (MIM).  One of the easiest ways to learn UCS configuration through UCS Python SDK is to automatically generate python script, for configuration actions performed with the UCSM GUI, using ConvertToPython API.

Cisco UCS Manager Python SDK release 0.8.3 is licensed under Apache License, Version 2.0

What's new in version 0.8.3?

  • Embedded dynamic import support to enhance memory utilization.
  • XmlParser changed to cElementTree to improve performance.
  • Modified URI method to verify correct port.
  • Modified Login API to decide connection protocol (via http or https) based on both port and noSsl flag
  • Fixed StartGuiSession for jnlpfile variable error and added support to launch GUI in debug mode for java version > 1.7.45
  • Fixed GetJavaInstallation method to display JAVA_HOME path in case of an exception.
  • Modified WatchUcsGui in order to support multiline query via ConvertToPython API

**Note for users who has scripts developed using SDK 0.8.2 or earlier release**

Due to dynamic import support in release 0.8.3, scripts written using earlier versions of SDK need to be modified to make it work with this latest release 0.8.3. Please refer to section 3.6.1 in Cisco UCS SDK release 0.8.3 user guide (cisco_ucs_python_sdk_rel_0.8.3.pdf) for details.

What's new in version 0.8.2?

  • Refreshed with UCSM Schema 2.2(2c)
  • Removed keys() function while iterating dictionary to improve execution speed.
  • Fixed "AttributeError", which happens when configuring an unknown MO.

For any queries/feedback on the Python SDK, please add a discussion to the Cisco Developed Integrations sub-space on Cisco UCS Communities.

Comments
Community Member

I'm having trouble using UcsSdk-0.8.3

My OS centos 7.2

python 2.7.5

I'm runnig (getFaults.py) from the sample folder using this command

python getFaults.py -i 192.168.125.121 -u ucs-ad\username -p $password

I'm getting this error: ( Does any one have an idea why )

Traceback (most recent call last):

  File "getFaults.py", line 72, in <module>

    handle.Logout()

  File "/usr/lib/python2.7/site-packages/UcsSdk/UcsHandle.py", line 416, in Logout

    response = self.AaaLogout(dumpXml)

  File "/usr/lib/python2.7/site-packages/UcsSdk/UcsHandle.py", line 2385, in AaaLogout

    response = self.XmlQuery(method, WriteXmlOption.Dirty, dumpXml)

  File "/usr/lib/python2.7/site-packages/UcsSdk/UcsHandle.py", line 214, in XmlQuery

    f = opener.open(req)

  File "/usr/lib64/python2.7/urllib2.py", line 431, in open

    response = self._open(req, data)

  File "/usr/lib64/python2.7/urllib2.py", line 449, in _open

    '_open', req)

  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain

    result = func(*args)

  File "/usr/lib64/python2.7/urllib2.py", line 1258, in https_open

    context=self._context, check_hostname=self._check_hostname)

  File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open

    raise URLError(err)

urllib2.URLError: <urlopen error [Errno -2] Name or service not known>

Thank you

Cisco Employee

While we look at this issue, if you are just starting out, I'd encourage you to look at GitHub - CiscoUcs/ucsmsdk: Python SDK for Cisco UCSM for the latest and greatest.

-- Arun S

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.