curl example to troubleshoot exchange monitors?

Does anyone have a curl example to replicate the EAV monitors that come with the Exchange 2013 iApp? It ask for user, password, email account and domain. I have an example here that is fine for user/password but what about the other two variables. ??

curl --user name:password http://www.test.com

I don’t know how to pass all four variables at once.

John,

If you create the iapp and then open up the eav file on the bigip you should see the curl command the monitor is sending and recreate it yourself. This is the one I’ve got:

curl -g -s --ntlm -k -X POST -H ‘Content-Type: text/xml; charset=utf-8’ -d “${XMLFULL}” -u ${DOMAIN}\${USER}:${PASSWORD} http://${NODE}${ADSURI} | grep -i “${RECV}” 2>&1 > /dev/null

You may want to strip it down for your purposes, however.

Hope this helps.

The iApp should create at least two EAVs, one of which is the autodiscover_eav monitor that uses the mail account and password. It’s more than just a cURL statement, but a whole XML POST request. I would recommend reviewing that script.