I patch my version Sentinel 7.0.1 to 7.0.2 and I tried to get my events
and correlated events always with my little script :


Code:
--------------------

BASIC_AUTH_VALUE=`echo -n "$USER_NAME_PARAM:$PASSWORD_PARAM" | base64`
BASIC_AUTH_HDR="Authorization : Basic $BASIC_AUTH_VALUE"
# echo "BASIC_AUTH_DIR : $BASIC_AUTH_HDR"

AUTH_RESPONSE=`curl -s -k -XPOST -H "$BASIC_AUTH_HDR" -H "Accept: application/json" "$PROTOCOL_PARAM://$HOST_NAME_PARAM:$PORT_PARAM/SentinelAuthServices/auth/tokens"`
# echo "AUTH_RESPONSE : $AUTH_RESPONSE"

SAML_AUTH_TOKEN=`echo "${AUTH_RESPONSE}" | sed -rn 's/\{"Token":"([^"]+)".+/\1/p'`
# echo "SAML_AUTH_TOKEN : $SAML_AUTH_TOKEN"

SAML_AUTH_HDR="Authorization : X-SAML $SAML_AUTH_TOKEN"
# echo "SAML_AUTH_HDR : $SAML_AUTH_HDR"


curl -k -XGET -H "$SAML_AUTH_HDR" -H "Accept: application/json" "$PROTOCOL_PARAM://$HOST_NAME_PARAM:$PORT_PARAM/SentinelRESTServices/objects/event?page=2&pagesize=1"

--------------------


Nobody can say me why it's doesn't work ? Or how he did to get all event
like in the web application ?


--
chris54
------------------------------------------------------------------------
chris54's Profile: https://forums.netiq.com/member.php?userid=1915
View this thread: https://forums.netiq.com/showthread.php?t=45014