In another article here, from 2014 (precambrian issues) - they broke down some of the insides of the device state config backup. One of the commands listed said that I should issue the "save device state" command from the config cli - only - it's no longer there. My script worked brilliantly for pulling the configs down on my Mac - just want to make sure I'm getting valid configs and don't have to do something else to get these accurately. echo "Building list of firewalls to collect from panorama" curl -X GET 'https://panorama/api/?type=op&cmd=<show><devices><all></all></devices></show>&key=Your_API_Key_Here=' -o devices.xml xmllint --format devices.xml | grep -e "<ip-address>" | sed "s/ip-address//g;s/\<//g;s/\>//g;s/\///g;s/ //g" > iplist.txt echo "Pulling device-state backups from all firewalls" filename="iplist.txt" while IFS= read fw; do curl -k -X GET 'https://'$fw'/api/?type=export&category=device-state&key=Your_API_Key_Here=' -o device_state_cfg-$fw.tgz done < "$filename"
... View more