07-03-2014 03:34 PM - edited 03-01-2019 11:44 AM
Hi,
I'm using powershell with python SDK to get the APIs from the GUI and it looks like for some operations like creating IPMI access policy, create service profile etc.., it bails out with the following error. Are these operations supported by power shell ? Do we have python APIs for these operations ? Do we have python API reference guide just as the XML guide for B series ?
### Please review the generated cmdlets before deployment.
### Script Output is in file < C:\Users\Administrator\Desktop\generation.txt >
Traceback (most recent call last):
File "script.py", line 6, in <module>
ConvertToPython(dumpToFile=True, dumpFilePath=outpath)
File "C:\Python27\lib\site-packages\UcsSdk\WatchUcsGui.py", line 1227, in Conv ertToPython
FindXmlRequestsInFile_test(fileStream, True)
File "C:\Python27\lib\site-packages\UcsSdk\WatchUcsGui.py", line 1126, in Find XmlRequestsInFile_test
ExtractXML(fileStream, line)
File "C:\Python27\lib\site-packages\UcsSdk\WatchUcsGui.py", line 1109, in Extr actXML
GenerateCmdlets(requestString)
File "C:\Python27\lib\site-packages\UcsSdk\WatchUcsGui.py", line 1064, in Gene rateCmdlets
cmdlet = GenerateConfigConfCmdlets(xmlString)
File "C:\Python27\lib\site-packages\UcsSdk\WatchUcsGui.py", line 524, in Gener ateConfigConfCmdlets
node = topNode.getElementsByTagName("inConfig")[0]
IndexError: list index out of range
Thanks,
Naveen
07-09-2014 05:32 AM
Hi Naveen,
I would request you to refer the following url for related information.
https://developer.cisco.com/site/data-center/ucs-system-mgmt/ucs-dev-center/documentation/
Did you had chance to browse this url- Cisco UCS Python SDK
Thanks and Regards,
Geevarghese
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide