26

Viewing, Validating, and Setting the Software

Serial Number

You can use the serversetup command to view or set the server’s software serial number or to validate a server software serial number. The serversetup utility is located in /System/Library/ServerSetup.

To display the server’s software serial number:

$ serversetup -getSerialNumber

To set the server software serial number:

$ sudo serversetup -setSerialNumber serialnumber

Parameter

Description

serialnumber

A valid Mac OS X Server software serial number, as found on the

 

software packaging that comes with the software.

To validate a server software serial number:

$ serversetup -verifySerialNumber serialnumber

Displays 0 if the number is valid, 1 if it isn’t.

Updating Server Software

You can use the softwareupdate command to check for and install software updates over the web from Apple’s website.

To check for available updates:

$ softwareupdate --list

To install an update:

$ softwareupdate --install update-version

Parameter

Description

update-version

The hyphenated product version string that appears in the list of

 

updates when you use the --listoption.

To view command help:

$ softwareupdate --help

Chapter 2 Installing Server Software and Finishing Basic Setup

Page 26
Image 26
Apple oxs manual Viewing, Validating, and Setting the Software Serial Number, Updating Server Software