Apple oxs Server User Manual


 
44 Chapter 5 Network Preferences
Viewing or Changing SOCKS Firewall Proxy Settings
To view the SOCKS firewall proxy information for a configuration:
$ sudo networksetup -getsocksfirewallproxy "configuration"
To set the SOCKS firewall proxy information for a configuration:
$ sudo networksetup -setsocksfirewallproxy "configuration" domain portnumber
To enable or disable the SOCKS firewall proxy for a configuration:
$ sudo networksetup -setsocksfirewallproxystate "configuration" (on|off)
Viewing or Changing Proxy Bypass Domains
To list the proxy bypass domains for a configuration:
$ sudo networksetup -getproxybypassdomains "configuration"
To set the proxy bypass domains for a configuration:
$ sudo networksetup -setproxybypassdomains "configuration" [domain1] domain2
[...]
AirPort Settings
Viewing or Changing Airport Settings
To see if AirPort power is on or off:
$ sudo networksetup -getairportpower
To turn AirPort power on or off:
$ sudo networksetup -setairportpower (on|off)
To display the name of the current AirPort network:
$ sudo networksetup -getairportnetwork
To join an AirPort network:
$ sudo networksetup -setairportnetwork network [password]
Computer, Host, and Rendezvous Name
Viewing or Changing the Computer Name
To display the server’s computer name:
$ sudo systemsetup -getcomputername
or
$ sudo networksetup -getcomputername
or
$ serversetup -getComputername
LL2354.book Page 44 Monday, October 20, 2003 9:47 AM