beautypg.com

Working with server identity and startup, Working with date and time preferences, Working with sleep preferences – Apple Mac OS X Server (version 10.2.3 or later) User Manual

Page 601

background image

Tools for Advanced Administrators

601

Working With Server Identity and Startup

You can use systemsetup to set information about a remote server and specify how to handle
its startup:

m To set the computer name, which is used by file sharing and AppleTalk, type “systemsetup

-setcomputername ”.

m To retrieve the current startup disk for the server, type “systemsetup -getstartupdisk”.

Type “systemsetup -liststartupdisks” to list all available disks.

Type “systemsetup -setstartupdisk ” to set the startup disk, specifying the
disk name exactly as formatted in the list.

m Type “systemsetup -setrestartpowerfailure on” to restart the server automatically after a

power failure.

m To restart the server automatically if it freezes, type “systemsetup -setrestartfreeze on”.

m To enable the server to respond to events sent by other computers, such as AppleScript

programs, type “systemsetup -setremoteappleevents on”.

Working With Date and Time Preferences

You can use systemsetup to set up date and time preferences for a remote server:

m To set the current month, day, and year, type “systemsetup -setdate ”.

m To set the current hour, minutes, and seconds, type “systemsetup -settime

”.

m To set the server’s time zone, type “systemsetup -settimezone ”. To

determine which timezone values are valid, type “systemsetup -listtimezones”.

m To designate a network time server, type “systemsetup -setnetworktimeserver

address or dns name>”.

m To turn network time on, type “systemsetup -setusingnetworktime on”.

Working With Sleep Preferences

You can use systemsetup to set when a remote server sleeps and whether the server wakes
for different types of network activity. Remember, however, that while a server is asleep, you
can’t administer it remotely:

m To specify how many minutes the server can be inactive before going to sleep, type

“systemsetup -setsleep ”. If you don’t want the server to sleep, type “0”
or “never”.

m To specify that the server should wake from sleep when modem activity is detected, type

“systemsetup -setwakeonmodemactivity on”.

m To specify that the server should wake from sleep when a network admin packet is sent to

it, type “systemsetup -setwakeonnetworkaccess on”.

LL0395.Book Page 601 Wednesday, November 20, 2002 11:44 AM