![]() Using this we can update the progress bar in DEPNotify and accurately show the user how far along their giant download is. Jamf downloads files into /Library/Application Support/JAMF/Downloads when it runs a policy, so all we had to do was calculate the current download from the package size (also passed as a variable). I started with the download portion since I knew how to do that already I decided to borrow some inspiration from the erase-install script and make some functions to handle setting up DEPNofity for various tasks. I had to also make some decisions on how I’m going to complete the download and install will I have the script do it or will I have Jamf do everything? I ended up with using a mixture. I knew how to monitor a download from Jamf, but I didn’t know how to monitor the installation progress. After the download, show the install progress because this can also take a while especially with a post install script to finish things to allow non-admins to launch. The idea is simple when a user wants to install Xcode, I want DEPNotify to open and show the user that it’s downloading. This caused a problem for our users (and in turn, us), they would click the button to start installation and it would start but in Jamf Self Service the little progress circle would just spin and spin and spin causing tickets because people would just assume the install failed. Our internal servers are definitely not as fast or robust as Apple’s CDN which means downloading that 16GB package takes quite a long time. I have tried using Apple’s VPP to deploy Xcode with very mixed results usually ending in failure this unfortunately means that we have to package Xcode, store it, and server it to update and install for our user-base. Xcode is a 10GB download, unxipped it’s 16GB and then installed with the SDKs and sims it’s around 33GB. They need lots of developer tools, most of these tools are pretty small…except for Xcode. ![]() Most of my users at my current job are developers probably somewhere between 50 and 75%. Finally, I like it because it’s just darn easy to script! It was an obvious choice for me. This allows us to keep a consistent user experience for our users, this is quite important. ![]() Another reason is that we use it for other tools our onboarding uses NoMAD Login Notify (which is basically DEPNotify) and we use erase-install for re-deploying and upgrading machines with the DEPNotify flag set. The first and main reason is I know it I’ve used it before and I didn’t need to learn anything new very quickly. If you want to know more about the script and don’t care for the background jump down to this section. I never got around to writing anything because I either didn’t have the time or the desire to do it…until now! If you want to skip right to the code, you can click this link. ![]() ![]() Since I started using it I’ve always said it would be useful for providing feedback for installs for users when using something like Jamf’s Self Service. I’ve written a few times about DEPNotify I really think it’s a great tool for deploying your Macs without much fuss. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |