9 .Nd Manage system configuration parameters
14 .Fl -prefs Op preference-file
19 .Bro "" Ar nodename | Ar address | Ar local-address remote-address "" Brc
22 .Fl w Ar dynamic-store-key Op Fl t Ar timeout
28 .Fl -set Ar pref Op Ar newval
39 Invoked with no options,
41 provides a command line interface to the
45 Interaction with this data (using the SystemConfiguration.framework
46 SCDynamicStore APIs) is handled with a set of commands read from
48 A list of the available commands is available by entering the
54 option provides a command line interface to the [raw] stored
56 Interaction with this data (using the SystemConfiguration.framework
57 SCPreferences APIs) is handled with a set of commands read from
59 A list of the available commands is availble by entering the
65 option provides a means of checking the network reachability of a host, an IP
66 address, or a pair of local and remote IP addresses.
69 is a term that indicates whether network communication is possible between
70 the current host and the specified host.
74 option provides a means of checking for (and optionally waiting for the
75 creation of or posting of a notification to) a dynamic store key.
81 options provide a means of reporting and updating a select group of
82 persistent system preferences.
86 option reports the current DNS configuration.
89 configuration is considered to be the
94 configurations follow. Those containing a
96 name will be used for queries matching the specified domain.
97 Those without will be used as a
99 configuration in addition to the first listed.
103 option reports the current system proxy configuration.
107 .\"option provides a means of managing the system's network configuration.
110 .It Fl r Oo Fl W Oc Bro "" Ar nodename | Ar address | Ar local-address remote-address "" Brc
111 Check the network reachability of the specified host name, IP address, or a
112 pair of local and remote IP addresses.
113 One or more of the following strings will be reported to standard output.
115 .Bl -tag -width "Transient Connection"
117 The specified nodename/address cannot be reached using the current network
120 The specified nodename/address can be reached using the current network
122 .It Transient Connection
123 The specified nodename/address can be reached via a transient (e.g. PPP)
125 .It Connection Required
126 The specified nodename/address can be reached using the current network
127 configuration but a connection must first be established.
128 As an example, this status would be returned for a dialup connection
129 that was not currently active but could handle network traffic for the
131 .It Connection Automatic
132 The specified nodename/address can be reached using the current network
133 configuration but a connection must first be established.
134 Any traffic directed to the specified name/address will initiate the
137 The specified nodename/address is one associated with a network interface
139 .It Directly Reachable Addresss
140 Network traffic to the specified nodename/address will not go through a
141 gateway but is routed directly to one of the interfaces on the system.
144 The reachability can also be monitored by specifying the
147 This will result in the current status being reported as well as the
148 status when/if the network configuration changes.
150 A zero exit status will be returned when the reachability status is reported correctly.
151 A non-zero exit status will be returned if errors are detected with an error reported to standard error.
152 .It Fl w Ar dynamic-store-key Op Fl t Ar timeout
153 Check if the specified key exists in the
159 will return with a zero exit status.
162 will wait for the specified time for data to be associated with or a notification
163 to be posted using the key.
164 A non-zero exit status will be returned if the key was not created/posted
165 within the specified time.
168 will wait indefinitely if a timeout of 0 seconds is specified.
169 The default timeout is 15 seconds.
171 Retrieves the specified preference. The current value will be reported on standard output.
173 Supported preferences include:
174 .Bl -tag -width "LocalHostName" -offset indent
176 The user-friendly name for the system.
178 The local (Bonjour) host name.
180 The name associated with
185 .It Fl -set Ar pref Op Ar newval
186 Updates the specified preference with the new value.
187 If the new value is not specified on the command line then it will be read from standard input.
189 Supported preferences include:
196 option requires super-user access.
198 Reports the current DNS configuration.
200 Reports the current proxy configuration.
202 .\"Provides a command line interface to the
203 .\".Qq network configuration .
204 .\"Interaction with this data (using the SystemConfiguration.framework
205 .\"SCNetworkConfiguration APIs) is handled with a set of commands read
206 .\"from standard input. A list of the available commands is available
207 .\"by entering the help directive.
211 .\"option requires super-user access.
218 command appeared in Mac OS X Public Beta.