Skip to main content

Installing software silently on Macs is always a pain; thankfully Automox makes it much easier. Here is a simple script to check and install an uploaded Cisco Umbrella if it’s not found on the machine.



The evaluation simply checks to see if the Cisco Umbrella service is running on the machine.


The remediation utilises the uploaded .zip file needed for Cisco Umbrella installs. The zip is downloadable from the Umbrella dashboard and contains both the install package and registration details.



Evaluation script:





#Checking if Umbrella Service is present



sudo launchctl list | grep -i RoamingClientConfigUpdater



if f $? -eq 0 ]]; then


exit 0


else


exit 1


fi





Remediation:





#Copy attached umbrella zip to temp folder


scp umbrella.zip /tmp



#unzipping zip in temp folder


unzip /tmp/umbrella.zip -d /tmp/umbrella



#Creating folder for Umbrella


sudo mkdir “/Library/Application Support/OpenDNS Roaming Client/”



#Copying license info to Umbrella folder


sudo cp /tmp/umbrella/OrgInfo.plist “/Library/Application Support/OpenDNS Roaming Client/”



#Installing Umbrella package


sudo /usr/sbin/installer -pkg /tmp/umbrella/RoamingClient_MAC_2.1.48.pkg -target /



#Checking if Umbrella Service is present


sudo launchctl list | grep -i RoamingClientConfigUpdater



if / $? -eq 0 ]]; then


exit 0


else


exit 1


fi





Any thoughts, let me know!

Be the first to reply!

Reply