Working with date and time preferences, Working with sleep preferences, Networksetup – Apple Mac OS X Server (Administrator’s Guide) User Manual
Page 562

562
Chapter 17
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 <mm:dd:yy>”.
m To set the current hour, minutes, and seconds, type “systemsetup -settime
<hh:mm:ss>”.
m To set the server’s time zone, type “systemsetup -settimezone <timezone>”. To
determine which timezone values are valid, type “systemsetup -listtimezones”.
m To designate a network time server, type “systemsetup -setnetworktimeserver <ip
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 <minutes>”. 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”.
networksetup
Use networksetup to configure network services on a remote Mac OS X Server. A network
service is a complete collection of settings for a specific network hardware port. “Built-in
Ethernet” is an example of a network service.
You may have one or several network services for a given hardware port. With networksetup
you can
m enable or disable network services