Mountain Lion Server – Software Update Server

Update
Software Update Enabler no longer works with Mountain Lion. Following these command still work though.

Using a configuration profile

You can use a configuration profile (such as those created by Profile Manager) to point clients to a Software Update Server. When adding a Software Update payload to the profile, specify a URL such as:

http://su.example.com:8088/index.sucatalog

…substituting your Software Update Server’s fully qualified host name for su.example.com .

Managed Client

To manage access to Software Update servers using Managed Client:

  1. In Workgroup Manager, click Preferences.
  2. Make sure the correct directory is selected and that you are authenticated. To switch directories, click the globe icon. If you are not authenticated, click the lock and enter the name and password of a directory administrator.
  3. Select a computer group.
  4. Click Software Update.
  5. Set the management setting to Always.
  6. Specify a URL such as this (substituting your Software Update Server’s fully qualified host name forsu.example.com):
    http://su.example.com:8088/index.sucatalog
  7. Click Apply Now.

Unmanaged clients

To point unmanaged clients (clients not being managed with a configuration profile or Managed Client) to a Software Update server:

  1. On the unmanaged client, open Terminal.
  2. Enter the following command (substituting your Software Update Server’s fully qualified host name forsu.example.com):
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://su.example.com:8088/index.sucatalog

You can verify your change using the following command:

defaults read /Library/Preferences/com.apple.SoftwareUpdate CatalogURL

To point the unmanaged client computer back to the Apple Software Update server, use the following command:

sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL

VIA: Apple KB

Then you can make each as a executable bash command:

#!/bin/bash
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://su.example.com:8088/index.sucatalog

Save it with any name you want and end the file in .command or .sh.

From the Terminal, run chmod o+x <filename> to make the file executable.

To run the file simply open the terminal.app and ./<filename>

Or Double-Click it to run.

Tagged with: , , , , , , , , ,
Posted in Macintosh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Enter your email address to follow this site and receive notifications of new posts by email.

Join 197 other subscribers
Categories
Archives
Colophon
wordpress com stats plugin
%d bloggers like this: