at the scripts section of the UCS forum of developer.cisco.com there are two scripts which subscribe to the eventchannel. Both are written in Perl but it should at least point you in the right direction of generating the required XML.
Learn, share, save
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.