-
Problem report
-
Resolution: Unresolved
-
Major
-
None
-
6.0.14
-
None
There are a few minor issues with the Get data script in the existing HPE Synergy template for 6.0.14. I've found the following issues as well. With these patches, it is working against OneView 6.6 & 8.0 (api versions: 3800/4600).
Our Synergy Frames are linked to a secondary directory. As such, in the Login function we need to supply the authLoginDomain and loginMsgAck function per the API spec:
response = request.post(Synergy.params.base_url + 'rest/login-sessions', JSON.stringify({ 'authLoginDomain': 'Local', 'loginMsgAck': true, 'userName': Synergy.params.username, 'password': Synergy.params.password
The API spec also calls for the Auth token to be supplied as a header to the logout function so this has been added:
if (Synergy.session_id !== null && Synergy.api_version !== null) { var response, request = new HttpRequest(); request.addHeader('Content-Type: application/json'); request.addHeader('X-API-Version: ' + Synergy.api_version); request.addHeader('Auth: ' + Synergy.session_id); response = request.delete(Synergy.params.base_url + 'rest/login-sessions'); }
Without the logout updated I started getting the following errors:
1. HPE Synergy: Get errors (<hostname>:hpe.synergy.get.errors): Failed to receive data:
auth : Auth request failed with status code 400: {"errorCode":"AUTHN_SESSION_CLIENT_LIMIT_CROSSED","message":"Login denied. The client x.x.x.x has too many active sessions.","details":"The client x.x.x.x has the maximum number of active sessions allowed.","recommendedActions":["Do one of the following: log out of existing sessions. Log in from a different IP address. Contact the administrator to increase the maximum number of sessions per client IP address. Wait 24 hours for idle sessions created by scripts to time out and then retry logging in."],"errorSource":null,"nestedErrors":[],"data":{"clientip":"x.x.x.x"}}