cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1590
Views
1
Helpful
1
Replies

How to call the eventSubscribe method of Cisco IMC on UCS C?

xinwen
Level 1
Level 1

Hi,

I meet the issue to subscribe to Cisco IMC for event on UCS C.

And I did it with below steps by referring to "Cisco UCS Rack-Mount Servers Cisco IMC XML API Programmer Guide 2.0".

Get the token

Send the http request with below data.

<eventSubscribe

cookie="<real_cookie>">

</eventSubscribe>

3. The Cisco IMC return below error after timeout.

<eventSubscribe cookie="1440595732/81b92a7c-1e37-1e37-849e-0ebc24ea72f8" response="yes" errorCode="552" invocationResult="invalid-cookie" errorDescr="Authorization required"> </eventSubscribe>

How can I get this worked?

Appreciated for any response.

Thanks,
Vincent

1 Reply 1

Jeffrey Foster
Cisco Employee
Cisco Employee

Hi Vincent,

You need to use aaaKeepAlive to keep this connection alive, otherwise the connection will be closed automatically by CIMC.  It sounds like this might be the issue you are running into.


Please note the following passage from the XML API Programmers Guide:

“An event channel connection opened by a user will be closed automatically by Cisco IMC after 600 seconds of inactivity associated with the event channel session cookie. To prevent automatic closing of the event channel connection by Cisco IMC, the user must either send the aaaKeepAlive request for the same event channel session cookie within 600 seconds or send any other XML API method to Cisco IMC using the same event channel session cookie.”

https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/c/sw/api/2-0/b_Cisco_IMC_api_2_0.pdf

Jeff

Review Cisco Networking products for a $25 gift card