on 10-18-2013 01:18 PM
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?
**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?
For any queries/feedback on the Python SDK, please add a discussion to the Cisco Developed Integrations sub-space on Cisco UCS Communities.
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
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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: