cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1252
Views
0
Helpful
2
Replies

Proper way to Use UcsHandle.EventSubscribe()

kyle.jones11
Level 1
Level 1

What is the intended way to use UcsHandle.EventSubscribe() ?  Wrap it in a while loop? Does it work?

2 Replies 2

ragupta4
Cisco Employee
Cisco Employee

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

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.

Cisco UCS X-Series Energy Efficiency Offer