
148
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/ networksetup
ÂFor Mac OS X v.10.4 clients use the following from Send UNIX Command:
networksetup
A few of the capabilities of networksetup are listed below.
flag | description |
|
Displays a list of all the network services on the server’s hardware | ||
| ports. An asterisk (*) denotes that a network service is disabled. | |
|
| |
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 | |
| 192.168.100.100 255.255.255.0 | 192.168.100.1 |
|
| |
Use this command to set the TCP/IP configuration for the specified | ||
[clientid] | network service to use DHCP. The client ID is optional. Specify | |
| “Empty” for [clientid] to clear the DHCP client id. Example: | |
| networksetup | |
|
| |
Use this command to set the TCP/IP configuration for the specified | ||
| network service to use BOOTP. |
|
| networksetup | |
|
| |
Use this command to specify a manual IP address to use for DHCP | ||
networkservice ip | for the specified network service. Example: | |
| networksetup | |
| Ethernet” 192.168.100.120 |
|
|
| |
Use this command to specify the IP addresses of servers you want | ||
networkservice dns1 | the specified network service to use to resolve domain names. You | |
[dns2] | 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 | |
| 192.168.100.100 192.168.100.12 |
|
|
| |
Use this command to designate the search domain for the | ||
networkservice domain1 | specified network service. You can list any number of search | |
[domain2] | 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
Chapter 8 Administering Client Computers