USERNAME=admin PASSWORD=admin HOST=192.168.1.1 curl -s -c cookies.txt "http://$HOST/authenticate?username=$USERNAME&password=$PASSWORD" curl -s --cookie cookies.txt "http://$HOST/rest/SI/Wan?_restDepth=-1&_restAttributes=getObject_parameters" -o output.json cat output.json | python -mjson.tool > pp_output.json less pp_output.json