Apple MC171Z/A Administration Guide - Page 149

Using systemsetup

Page 149 highlights

flag -setwebproxy networkservice domain portnumber (on | off) [username password] -help description 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 Displays a list of all the commands available in the Network Setup Tool, with explanatory information. 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: Flag -setallowpowerbuttontosleepcomputer (on | off) -setdate mm:dd:yy -setlocalsubnetname name -setnetworktimeserver timeserver -setremoteappleevents ( on | off ) Description Enable or disable whether the power button can sleep the computer. Example: systemsetup -setallowpowerbuttontosleepcomputer on Use this command to set the current month, day, and year. Example: systemsetup -setdate 04:15:02 Set Local Hostname to name. Example: systemsetup -setlocalsubnetname LabMac1 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 Use this command to set whether the server responds to events sent by other computers (such as AppleScripts). Example: systemsetup -setremoreappleevents on Chapter 8 Administering Client Computers 149

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

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