Posted on 08-22-2022 11:40 AM
I'm pushing out the Cisco Umbrella OrgInfo.json file. It's currently working, but because I have the policy set to Reoccuring and ongoing, the json file copies to user endpoint every 15 minutes. I'm not keen on chaning it to Once Per User or Once Per Computer, I'd rather keep it set to Ongoing.
I've added the following to my installation script
# Check for and install Cisco OrgInfo.json if missing
if [ -e "/opt/cisco/anyconnect/umbrella/OrgInfo.json" ]
then
echo “OrgInfo.json exists’
else
sudo installer -allowUntrusted -verboseR -pkg /Library/Application\ Support/JAMF/Waiting\ Room/OrgInfo.pkg -target /
fi
Anyone have any better ideas? Should I just build another policy just for the installation of this .json file?
Thanks in advance,
08-22-2022 11:51 AM - edited 08-22-2022 11:52 AM
@tlarue64 You should create an EA that checks for the existence of the .json file. Something like this:
#!/bin/sh
result="False"
if [ -e "/opt/cisco/anyconnect/umbrella/OrgInfo.json" ]; then
result="True"
fi
echo "<result>$result</result>"
Then use that EA as the criteria for a Smart Group that indicates the install has already occurred. That Smart Group can then be used as a Scope Exclusion for your deployment policy (be sure to run a recon at the end of the deployment policy so the EA can detect the install)
Posted on 08-22-2022 12:09 PM
EA would work too but we need to wait for devices to submit hardware inventory. I would check if json file is present and OrgID matches with your tenant ID. If values are not as expected then I would go ahead make a change