Apple 3 Personal Computer User Manual


 
Chapter 8 Administering Client Computers 149
Any command in the Mac OS X Server command-line guide which uses networksetup
can be used in Remote Desktop using the Send UNIX Command task.
Using systemsetup
The command-line tool
systemsetup is used to configure other nonnetwork system
settings. You can use it to query or alter time zones, network time servers, sleep
settings, Energy Saver preferences, Remote Login (SSH) preferences, and more. You will
find the command-line syntax, explanations, and example in the tool’s help prompt by
entering the following line in the Terminal:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/
systemsetup -help
A few of the capabilities of systemsetup are listed below:
-setwebproxy
networkservice
domain
portnumber
(on | off)
[username
password]
Set Web proxy for a network service with domain and port number.
Turns proxy on. Optionally, specify on or off to enable and disable
authenticated proxy support. Specify username and password if
you turn authenticated proxy support on. Example:
networksetup -setwebproxy “Built-In Ethernet”
proxy.company.com 80 on bob mypassword
-help
Displays a list of all the commands available in the Network Setup
Tool, with explanatory information.
flag description
Flag Description
-setallowpowerbuttontosleepcomputer
(on | off)
Enable or disable whether the power button can
sleep the computer. Example:
systemsetup
-setallowpowerbuttontosleepcomputer
on
-setdate mm:dd:yy
Use this command to set the current month, day,
and year. Example:
systemsetup -setdate 04:15:02
-setlocalsubnetname name
Set Local Hostname to name. Example:
systemsetup -setlocalsubnetname LabMac1
-setnetworktimeserver timeserver Use this command to designate a network time
server. Enter the IP address or DNS name for the
network time server. Example:
systemsetup -setnetworktimeserver
time.apple.com
-setremoteappleevents ( on | off )
Use this command to set whether the server
responds to events sent by other computers (such
as AppleScripts). Example:
systemsetup -setremoreappleevents on