12/29/2023 0 Comments Jamf pro force check in![]() # Once communication is verified, it takes the following actions: ![]() # The LaunchDaemon and accompanying script created by running this script verifies that the Mac can communicate with the Jamf Pro server. # Script for use with Jamf Pro when you want to trigger an update of the management framework, followed by an inventory update. This script is available below and also from GitHub at the following location: Both the script and LaunchDaemon are in the computer’s memory, so it’s possible to delete the files before the script unloads the LaunchDaemon from LaunchD. If the LaunchDaemon is unloaded before the script deletes the LaunchDaemon’s and script’s file, LaunchD will stop the script’s run at the point where the LaunchDaemon unload command occurred. Note: The order for deletion and unloading is important. Runs jamf recon to send an updated inventory to the Jamf Pro server.Runs jamf manage to enforce the management framework using the latest available data from the Jamf Pro server.Once it has been verified that the /var/log/jamf.log file has not been modified for at least the last five minutes, the script runs the following functions:.Checks to see if the /var/log/jamf.log file has been modified in the previous five minutes.Once communication is verified, it takes the following actions: Once triggered to run, the script stored in /var/root verifies that the Mac can communicate with the Jamf Pro server. Creates a script in /var/root which is triggered to run by the LaunchDaemon.I’ve written an example script, which does the following: For more details, please see below the jump. To run these tasks, I’m using a self-destructing LaunchDaemon and script. Send the Jamf Pro server an updated inventory.Enforce the Jamf Pro agent’s management framework.Make sure the Jamf Pro agent hasn’t run anything for at least the last five minutes.To address this, I want to use the following workflow: Don’t interfere with any other processes that Jamf Pro may be running at that time.Update the computer inventory record in Jamf Pro as soon as possible that the OS upgrade has occurred.An example of this would be following an OS upgrade. ![]() Cheers, Peace and good luck.Every so often, I need to have Jamf Pro perform actions where it’s difficult to arrange the timing and task order I want using the options available from the Jamf Pro server’s end. Had I been like most and adhered to the majority in I.T claiming Apple Mac products had no place in corporate America. Embrace all technology and be willing to engage in what others may deem less worthy. With that I would still say, do your due diligence and research and always get a second opinion. With the experience, background as well as familiarity with Apple Mac and cross platform support as I have been blessed with. As there are many familiar with all things MicroSoft & Windows related. I would question ones experience in regards to all things Apple Mac. Although some may disagree with my view or opinion. InTune is not nearly as easy to use in my view. Has been providing MDM solutions for years while Intune may be owned by big money and an even bigger name in MicroSoft. JAMF is far superior if your talking about managing APPLE MAC machines and devices only. In my view there is no comparing the two.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |