CiscoUcs / ucsmsdk

Python SDK for Cisco UCSM
Other
81 stars 60 forks source link

Error when trying to download rack-server tech support file #102

Closed bingoarun closed 8 years ago

bingoarun commented 8 years ago

I am trying to invoke the following.

get_ucs_tech_support(handle,file_dir='./',file_name='ucsm-rack.tar', rack_server_id = 1 ,rack_adapter_id='all')

But it is failing with the following error

Traceback (most recent call last):
  File "testucs.py", line 11, in <module>
    get_ucs_tech_support(handle,file_dir='./',file_name='ucsm-rack.tar', rack_server_id = 1 ,rack_adapter_id='all')
  File "/usr/local/lib/python2.7/dist-packages/ucsmsdk/utils/ucstechsupport.py", line 229, in get_ucs_tech_support
    handle.commit()
  File "/usr/local/lib/python2.7/dist-packages/ucsmsdk/ucshandle.py", line 707, in commit
    response = self.post_elem(elem)
  File "/usr/local/lib/python2.7/dist-packages/ucsmsdk/ucssession.py", line 262, in post_elem
    response = xc.from_xml_str(response_str, self)
  File "/usr/local/lib/python2.7/dist-packages/ucsmsdk/ucsxmlcodec.py", line 88, in from_xml_str
    raise ex.UcsException(error_code, error_descr)
ucsmsdk.ucsexception.UcsException: [ErrorCode]: ERR-xml-parse-error[ErrorDescription]: XML PARSING ERROR: unknown property value None, name rackServerId, class sysdebugTechSupportCmdOpt [sys/tech-support-files/tech

VERSION : $ pip list | grep ucs ucsmsdk (0.9.1.1)

I am able to download UCSM logs, but I am not able to download rack-server logs.

vvb commented 8 years ago

@bingoarunprasath thanks for reporting this issue. I see that there is indeed an issue with the code. This will be fixed in about a day.

vvb commented 8 years ago

fixed as a part of #105

bingoarun commented 8 years ago

Works like a charm :+1: Thank you

vvb commented 8 years ago

thanks for the update. keep finding issues 👍