Posted on 12-17-2014 06:53 AM
How do I setup a policy that will use the Apple software update server to check for software updates AT LOGOUT ?
How do I setup a policy that will use the Apple software update server to check for software updates AUTOMATIC ?
will it automatically point to the Apple SUS ?
why setup internal SUS ?
Solved! Go to Solution.
Posted on 12-17-2014 09:31 AM
@tcandela you only need one policy set to install updates at logout. You do not need to check for updates, because the process of installing them does a check as well.
If you want it to run once a week, then your frequency would be Once a Week.
And no, it is just one policy.
Posted on 12-17-2014 07:07 AM
Are you wanting a policy to only check for software updates at logout, or to install them?
To check: on the Options tab under General, set the Trigger to Logout. On the Options tab under Files and Processes, under Execute Command, put: softwareupdate -l
To install: Set the Trigger the same, but on the Software Updates section of the Options tab, set to Install from Apple's Software Update server.
If you have not set the update server on your machine, then they should automatically be using Apple's servers to check. However you can set a network segment under Network Organization and set a specific software update server.
As I stated, as long as you have not changed the update servers, then your machines *should* default to the Apple SUS servers.
As far as why people use internal SUS servers, it is typically for two reasons: 1) to control which updates are allowed to be installed, and 2) to provide a local repository for updates so that end user machines are not constantly eating up Internet bandwidth.
By using an internal SUS, like the NetSUS appliance or Reposado, you can also create separate update branches. By allowing this, you can setup a test branch and a production branch so that you can test updates on a subset of computers before releasing into the production branch. That's one example of use.
Hope that helps a little.
Posted on 12-17-2014 08:03 AM
You might also consider using OS X Server's Caching service, which removes the ability to control specific OS X updates but automatically caches and deploys iOS updates and content, and doesn't require any reconfiguration of your workstations.
Posted on 12-17-2014 09:24 AM
Hi Stevewood - currently this is for OS X machines (iMacs, MBPro, MacAir) I want a policy to only check for software updates at logout and to install them all in one policy, can this be done ? Policy will run once a week.
what execution frequency would I choose ?
is your explanation instructing to create 2 separate policies ?
software update server has not been set anywhere, computers are configured via casper with baseOS and apps. Now I simply want to create a policy to check/install software updates (once a week check).
Posted on 12-17-2014 09:31 AM
@tcandela you only need one policy set to install updates at logout. You do not need to check for updates, because the process of installing them does a check as well.
If you want it to run once a week, then your frequency would be Once a Week.
And no, it is just one policy.
Posted on 12-17-2014 09:50 AM
Stevewood - so basically I would create the one policy that would check/install updates with the following new policy settings ( the process of installing them does a check as well)
To install: on the Options tab under General, set the Trigger to Logout, but on the Software Updates section of the Options tab, set to Install from Apple's Software Update server. (is the Apple software update server an available option to select or do I have to enter something manually?)
also; what is this 'a logout hook that checks for policies must be configured in the jss for this to work' ? is this already configured ?
Posted on 12-19-2014 10:46 AM
Just as a side not, running un update policy at logout can be tricky. You mentioned laptops and if I user logs out and closes the laptop to leave, the updates may not get installed correctly or at all. This may cause you some problems.
Something to keep an eye on.
Posted on 12-20-2014 09:08 PM
This is my first time setting up a policy for Software Updates, so please bear with me if I repeat myself, or sound stupid, I just want to make sure I am setting it up correctly.
If I want to setup my own SUS I would have to go to the JSS --> Computer Management --> Software Update Server --> New // and fill out the information pointing the SUS I setup? then create the policy to use the SUS by going to the JSS --> Computers --> Policies --> New --> Software Updates --> --> (from drop down list choose) MY SUS ?
If I choose to not create my own SUS and use the Apple Software Update Server would I simply do the following;
JSS --> Computers --> Policies --> New --> Software Updates --> (from the INSTALL SOFTWARE UPDATES FROM drop down list I see 2 choices) do I choose 'Each computers default software update server'
or do i choose 'Apple Software Update Server' ?
set trigger (logout, once a week), scope
Posted on 12-21-2014 05:34 PM
The "Each Computer's Default Software Update Server" would make a device adhere to a designated SUS set with a Managed Preference, or if none is applied with a Managed Preference (or other means) then Apple's servers will be used.
The other two would override a SUS set with a Managed Preference, I believe.
Posted on 01-04-2015 11:52 AM
We update our Macs at logout, but with a few differences.
The above stops any delays in logging out due to updates downloading as the majority should already be downloaded.
Posted on 01-04-2015 01:45 PM
`bentoms - what does your software update policy look like? how are you doing the caching of the updates, where are you pitting the; software -da you using your own SUS or Apples? what is your smart group criteria?
Posted on 01-04-2015 02:06 PM
@tcandela, we actually do a few things a bit differently.. But for the above;
Create a policy that runs once a week with the below in the run command field: softwareupdate -da & tick "Update Inventory" in the policy.
Create a "Smart Group" with the criteria something like: "Available updates not like 0"
Create another policy that is scoped to the smart group created above, & tick the box to install all available updates & run @ logout.
We have 11 internal software update servers, but are moving to caching servers.
Posted on 01-05-2015 12:34 AM
Hey @bentoms
Does that mean you're no longer worrying about restricting Apple Software Updates to end users?
Darren
Posted on 01-05-2015 01:11 AM
@daz_dar, not really.
We have 10 ASUS's cascaded off of a "Master" that pulls down all updates from Apple.
The Master only syncs with Apple every Sunday, the Cascaded servers sync with the Master every Saturday.
Currently we have around 160GB of updates, & tbh a good chunk we don't need.
So, we're looking at caching servers not only to lessen the amount of un-needed updates.. but also to serve updates to our iOS clients.
If a dodgy update comes out, we'll run the below on our clients to stop them from downloading it:
softwareupdate --ignore <update to ignore>
Posted on 01-05-2015 01:13 AM
Cool, thanks for sharing!
I remember your current setup allowed you 6 days to stop the update from cascading and was just wondering the reason for the change.
Darren
Posted on 02-28-2015 05:50 AM
Bentoms - in your comment on 1/4/15, do I need to use the software update payload when I do this?
Will this updating also update the OS if applicable (I don't want it to update OS)?
Posted on 02-28-2015 05:56 AM
@tcandela, I guess you mean the profile?
In short, no. The client just needs an Apple Software Update server, be that a self hosted one or Apple's own.
Posted on 02-28-2015 06:12 AM
When I go to policies, I create 'new' policy , do I use the 'software updates' payload to configure the policy and put the softwareupdate -da command somewhere here, or only use the 'files and processes' payload and put the command there?
Will use apples own
Posted on 02-28-2015 06:16 AM
@tcandela, ah.. files & processes.
Posted on 02-28-2015 06:30 AM
So no need to use the software update payload. I want it to be available in self service when updates are available. Below are the steps you provided 1/4/15, would they be applicable to use as a self service ? Would it run OS Yosemite upgrade or just updates to like iTunes, Safari etc...
Create a policy that runs once a week with the below in the run command field: softwareupdate -da & tick "Update Inventory" in the policy.
Create a "Smart Group" with the criteria something like: "Available updates not like 0"
Create another policy that is scoped to the smart group created above, & tick the box to install all available updates & run @ logout.
Posted on 02-28-2015 06:47 AM
@tcandela the above example would just query the Apple Software Update Servers for any software that is available for the clients OS. Things like:
incremental updates of the Mac OS and its applications, Security Updates, device drivers and firmware updates.(from http://en.wikipedia.org/wiki/Apple_Software_Update)
The -da will download all available updates for the client (https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/softwareupdate....).
So updates & not upgrades to things like the latest OS version.
If you then have a smart group scoped on something like: "Available updates not like 0" you could then have a policy in Self Service to install all updates & restart.
Posted on 02-28-2015 09:58 AM
i just ran softwareupdate --list from the command line on a 10.10.1 system (to see if it matches the 2 items that App Update is showing i need to update, 10.10.2 and iPhoto).
The softwareupdate --list showed only ONE update for 10.10.2. So any updates that are part of apps installed from the app store WILL NOT be included when running this command? iPhoto update will have to be performed manually then i suppose.
So I will just be using the 'General' and 'files and processes' payloads for this policy, no need to use the 'software update' payload since i will just have it use the default update server which is Apple's (unless i want to specifically select Apple software update server from the list).
Posted on 02-28-2015 10:10 AM
@tcandela, that's right. iPhoto is an app delivered by the App Store & has no command line updater.
"Applications" is for the apps that are updated via ASUS, such as those built into the OS.
Posted on 02-28-2015 07:05 PM
i know i should test this on my own but if it use self service instead of installing updates @ logout, willl the user that runs the 'software update' be prompted to 'restart' if necessary? Here is the process I am doing to create the self service policy
A - Create a policy that runs once a week with the below in the run command field: softwareupdate -da & tick "Update Inventory" in the policy.
B - Create a "Smart Group" with the criteria something like: "Available updates not like 0"
C - Create another policy that is scoped to the smart group created above, & tick the box to install all available updates & select 'Self Service'
where is the box that i tick to install all available updates?
Posted on 03-02-2015 09:41 AM
I have created a simple policy that run the software update --download --all command in the execute command section of 'files and processes'
the Maintenance payload has 'update inventory' checked
smart group with criteria set with 'available updates not like' 0
creating a second policy scoped to this smart group (will put it in self-service), where is the box that I check to 'install all available updates' ?
Posted on 03-04-2015 01:24 PM
I think if you add a Software Update policy and tell it to "Install Software Updates From" either the client's default server, or a specific server, it will install all of the updates.
There used to be separate check boxes to Set the Server, and Install All Updates, but this behavior changed, I believe in v9, right @bentoms?
Posted on 03-06-2015 11:40 PM
@RobertHammen You're right.
Just to add though, that Installing All via Software Update will check for updates downloaded (if any are) as well.
So it ties in.
Posted on 03-07-2015 11:08 AM
When I do the softwareupdate -d -a The smart group does not get populated with computers that have gotten updates downloaded.
My smart group = My Smart Group criteria is "Available updates not like 0"
So I just setup a policy using the software update payload running once a week on logout
Posted on 03-07-2015 11:56 AM
@tcandela You need to go into your JSS under Computer Management > Inventory Collection, there is a setting called "Collect available software updates". That needs to be checked. The Smart Group criteria you're using doesn't see items downloaded into the /Library/Updates/ directory.
I know you are a Site admin from your other posts, so you'll likely need to discuss this with your full JSS admin to see if they are OK with turning that function on. Afterwards, when Macs submit inventory, they will query the SUS they are pointed to (Apple one or internal) and pull a list and count of available updates.
If your JSS admin doesn't want to turn that on, and its possible they won't since its a global setting that affects all managed Macs clients, what you can do in the interim is build an Extension Attribute that would provide a count of packages in the /Library/Updates/ folder.
Only thing is, as far as I know, Extension Attribute are also global and so probably your JSS admin would need to add it in, but it would only be running a simple script to get a count of waiting packages in that folder and not querying anything external. I don't believe EAs can be scoped to only a Site, but not 100% sure on that.
Posted on 03-07-2015 06:41 PM
mm2270 - I never knew that, thanks. I'll talk with the Full JSS admin.
currently i created a simple policy using the software update payload, triggered @ logout, once a week, its working with no problems so far. Also used jamfhelper to notify users that a software update check is in progress ...... (just in case they find the grey screen just sitting there to be odd and they get tempted to hold the power button down to shut the computer down.)
Posted on 03-21-2015 10:18 AM
I have the policy triggered to run at logout, looks like shutdown triggers the policy just as well.
Posted on 06-16-2016 03:54 AM
Is it possible to have two ASUS urls?
One pointing to an internal and the other pointing to Apple world's default?
I used to run an onsite ASUS when bandwidth wasn't so "widthy" back in the mid 2000's
The major problem we had (if memory serves) was some users were away for weeks or months on end. Their machines would never update.
My shop now has some uber-duper fibre connection so downloading is a snap to what it used to be. And to have one less administrative thing to do is also nice so I now use Apple's default.
Just curious if this is possible now or if anyone has invented a workaround?
Thanks in advance as always,
-p