03-11-2015 12:43 PM
What is the intended way to use UcsHandle.EventSubscribe() ? Wrap it in a while loop? Does it work?
03-12-2015 10:08 PM
Hi Kyle,
To use the eventSubscribe utility exposed by UCS, we have added below APIs under UcsSdk which will enable a better interface to use the eventSubscribe functionality.
AddEventHandler
GetEventHandlers
RemoveEventHandler
Refer python sdk user guide for usage and more details.
https://communities.cisco.com/servlet/JiveServlet/download/36899-13-76836/cisco_ucsm_python_sdk_user_guide.pdf
Kindly revert in case of any issues.
Thanks
Rahul Gupta
03-12-2015 10:22 PM
Yes I saw those in the sdk python samples and they worked very well, however I am not clear on what the EventSubscribe method does and the documentation does not clear it. My attempts ant using it both in a raw xml exchange and via the SDK gave not indication it was doing anything. Providing and in filter in the form of {OrgOrg.Name:"myorg"} threw an xmlWriter error so i am not clear on what the infilter format is. If the answer is simply use the other event methods mentioned in your response I am okay with that.
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