Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML API error when trying to update CIMC users #212

Closed
SLusenti opened this issue Jun 30, 2020 · 2 comments
Closed

XML API error when trying to update CIMC users #212

SLusenti opened this issue Jun 30, 2020 · 2 comments
Labels

Comments

@SLusenti
Copy link

SLusenti commented Jun 30, 2020

hi,
i'm tying to configure CIMC users with imcsdk,
but when I try to post (update) the modified elem it return an error:

In [106]: h.process_xml_elem(x)                                                                                                                                              
---------------------------------------------------------------------------
ImcException                              Traceback (most recent call last)
<ipython-input-106-9a2334e6b9e1> in <module>
----> 1 h.process_xml_elem(x)

/usr/local/lib/python3.7/site-packages/imcsdk/imchandle.py in process_xml_elem(self, elem, timeout)
    192         response = self.post_elem(elem, timeout=timeout)
    193         if response.error_code != 0:
--> 194             raise ImcException(response.error_code, response.error_descr)
    195 
    196         if hasattr(response, "out_config"):

ImcException: [ErrorCode]: ERR-xml-parse-error[ErrorDescription]: XML PARSING ERROR: No such XML API method by name aaaUser

imcsdk version: 0.9.10
CIMC Version : 4.0(4k)

step to reproduce

#import package
from imcsdk.imchandle import ImcHandle 

#create a client and login
h=ImcHandle(...args)
handle.login() 
#check if output == true; than connection susseded.

#get user-4 XML elem
p=h.query_dn("sys/user-ext/user-4")
x=p.to_xml()

#set some attr
x.set('name', 'test')
x.set('accountStatus', 'active')
x.set('pwd', 'test')

#committing
h.process_xml_elem(x)
@github-actions
Copy link

This issue is stale because it has been open for 60 days with no activity.

@github-actions github-actions bot added the stale label Oct 27, 2023
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant