Create cookie jar for the URL login
curl -k --cookie-jar cjar --output /dev/null \
                     https://IPADDR/login
Passing the login credits to the site for fetching the information.
curl -k --cookie cjar --cookie-jar cjar \
                     --data 'username=USERNAME' \
                      --data 'password=PWD' \
                      --data 'form=login' \
                      --data 'action:Login=Login' \
                      --location \
                      --output /tmp/loginresutl.html \
                      https://IPADDR/login
Get the Secure Ironport information using the curl command using the cookie jar.
curl -l --cookie cjar \
                      --output /tmp/ironport_system_status.html \
                      https://IPADDR/monitor/reports/system_status
 
 
No comments:
Post a Comment