Apple M9547Z/A Administration Guide - Page 160

For Mac OS X 10.3 clients use the following, A few of the capabilities

Page 160 highlights

 For Mac OS X 10.3 clients use the following: /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/ Support/networksetup -help  For clients with Mac OS X v.10.4 or later, use the following from Send UNIX Command: networksetup -help A few of the capabilities of networksetup are listed below. Flag Description -listallnetworkservices Displays a list of all the network services on the server's hardware ports. An asterisk (*) denotes that a network service is disabled. -setmanual Set the TCP/IP configuration for network service to manual with IP networkservice ip subnet address set to ip, Subnet Mask set to subnet, and Router address router set to router. Example: networksetup -setmanual "Built-in Ethernet" 192.168.100.100 255.255.255.0 192.168.100.1 -setdhcp networkservice [clientid] Use this command to set the TCP/IP configuration for the specified network service to use DHCP. The client ID is optional. Specify "Empty" for [clientid] to clear the DHCP client id. Example: networksetup -setdhcp "Built-in Ethernet" -setbootp networkservice Use this command to set the TCP/IP configuration for the specified network service to use BOOTP. networksetup -setbootp "Built-in Ethernet" -setmanualwithdhcprouter Use this command to specify a manual IP address to use for DHCP networkservice ip for the specified network service. Example: networksetup -setmanualwithdhcprouter "Built-in Ethernet" 192.168.100.120 -setdnsservers networkservice dns1 [dns2] Use this command to specify the IP addresses of servers you want the specified network service to use to resolve domain names. You can list any number of servers (replace dns1, dns2, and so on with the IP addresses of domain name servers). If you want to clear all DNS entries for the specified network service, type "empty" in place of the DNS server names. Example: networksetup -setdnsservers "Built-in Ethernet" 192.168.100.100 192.168.100.12 -setsearchdomains networkservice domain1 [domain2] Use this command to designate the search domain for the specified network service. You can list any number of search domains (replace domain1, domain2, and so on with the name of a local domain). If you want to clear all search domain entries for the specified network service, type "empty" in place of the domain name. Example: networksetup -setsearchdomains "Built-in Ethernet" company.com corp.com 160 Chapter 8 Administering Client Computers

  • 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
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203

160
Chapter 8
Administering Client Computers
Â
For Mac OS X 10.3 clients use the following:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/
Support/networksetup -help
Â
For clients with Mac OS X v.10.4 or later, use the following from Send UNIX Command:
networksetup -help
A few of the capabilities of
networksetup
are listed below.
Flag
Description
-listallnetworkservices
Displays a list of all the network services on the server’s hardware
ports. An asterisk (*) denotes that a network service is disabled.
-setmanual
networkservice
ip
subnet
router
Set the TCP/IP configuration for network service to manual with IP
address set to ip, Subnet Mask set to subnet, and Router address
set to router. Example:
networksetup -setmanual "Built-in Ethernet"
192.168.100.100 255.255.255.0 192.168.100.1
-setdhcp networkservice
[clientid
]
Use this command to set the TCP/IP configuration for the specified
network service to use DHCP. The client ID is optional. Specify
“Empty” for [clientid] to clear the DHCP client id. Example:
networksetup -setdhcp "Built-in Ethernet"
-setbootp networkservice
Use this command to set the TCP/IP configuration for the specified
network service to use BOOTP.
networksetup -setbootp "Built-in Ethernet"
-setmanualwithdhcprouter
networkservice
ip
Use this command to specify a manual IP address to use for DHCP
for the specified network service. Example:
networksetup -setmanualwithdhcprouter "Built-in
Ethernet" 192.168.100.120
-setdnsservers
networkservice
dns1
[dns2
]
Use this command to specify the IP addresses of servers you want
the specified network service to use to resolve domain names. You
can list any number of servers (replace dns1, dns2, and so on with
the IP addresses of domain name servers). If you want to clear all
DNS entries for the specified network service, type “empty” in place
of the DNS server names. Example:
networksetup -setdnsservers "Built-in Ethernet"
192.168.100.100 192.168.100.12
-setsearchdomains
networkservice
domain1
[domain2
]
Use this command to designate the search domain for the
specified network service. You can list any number of search
domains (replace domain1, domain2, and so on with the name of a
local domain). If you want to clear all search domain entries for the
specified network service, type “empty” in place of the domain
name. Example:
networksetup -setsearchdomains "Built-in Ethernet"
company.com corp.com