Currently Being ModeratedMay 15, 2012 12:21 PM (in response to lions1855)
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://server.example.com:8088/index-lion-snowleopard-leopard.merged-1.sucatalog
This is the command that you should push to each of your computers if you have a program like Apple Remote Desktop.
If you're using an MCX from workgroup manager, then the address should just be http://server.example.com:8088/index-lion-snowleopard-leopard.merged-1.sucatalog
Hope that helps!
Currently Being ModeratedMay 15, 2012 12:32 PM (in response to gracoat)
Is there a way to force the software update so users do not have to do themselves? Or to have the server to schedule software updates as soon as they come available?
Currently Being ModeratedMay 15, 2012 12:38 PM (in response to lions1855)
If you have Apple Remote Desktop, you can schedule a terminal task to happen on a regular basis.
The command in terminal is:
Note that if a restart is required, terminal will not automatically do so.
Remember to run the command as root. It helps also to schedule your computers to restart every day as well. That way if an update is pushed using the terminal and a restart is required, the computer will do so automatically.
Hope this helps!
Currently Being ModeratedMay 17, 2012 7:49 AM (in response to gracoat)
gracoat - your post was a HUGE help for me - thanks. The suggestion on how to handle required restarts after updates makes sense. How do you do this as an example?
In case anyone else reads this, I was also wondering if anyone might have figured out a way to include a conditional restart "if needed" (or mandatory just for the heck of it) command to tack on to your "softwareupdate -ia" command.
Currently Being ModeratedMay 17, 2012 6:07 PM (in response to lions1855)
Ooh! I like it. A script!
I'd make a script that looked like this:
echo "This script must be run as root"
shutdown -r now
Run this from Remote Desktop and you should be good to go!
Currently Being ModeratedMay 18, 2012 9:07 AM (in response to lions1855)
Mobile users will only be able to update their accounts when they're on the same network as the server, or if they use a VPN connection from a remote location.
The script file is identical to the commands above. I don't like sending scripts that have sudo commands in them. It's just bad manners! ;-)
If you open up text edit and switch to plain text mode then enter in the text as it is above, then save it with a clever name...
Don't forget that it has to end in .sh
for example, a name like autoUpdate.sh will work.
Then from terminal, you'll have to use the following command to run it.
sudo sh autoUpdate.sh
If you want it to be "double clickable" from the finder, then you have to take quite a few more steps. When you create a text document, by default it's permissions are set to non-executable. Also, the file extension of the document will have to be .command instead of .sh
Summary.... Save as autoUpdate.command
In terminal, naviate to the location where your autoUpdate.command file is.
type the following:
chmod 755 autoUpdate.command
If it tells you that you don't have permission (it should work) then you'lll have to type the following immediately after:
This just repeats the last command with sudo in front of it.
Hope it's not too cryptic.