]> git.saurik.com Git - apple/configd.git/blame - scutil.tproj/scutil.8
configd-293.8.tar.gz
[apple/configd.git] / scutil.tproj / scutil.8
CommitLineData
dbf6a266
A
1.\"
2.\" @(#)scutil.8
3.\"
a40a14f8 4.Dd January 23, 2008
dbf6a266 5.Dt SCUTIL 8
edebe297 6.Os "Mac OS X"
dbf6a266
A
7.Sh NAME
8.Nm scutil
9.Nd Manage system configuration parameters
10.Sh SYNOPSIS
11.Nm
12.Br
13.Nm
edebe297
A
14.Fl -prefs Op preference-file
15.Br
16.Nm
a40a14f8
A
17.Fl r
18.Op Fl W
19.Bro "" Ar nodename | Ar address | Ar local-address remote-address "" Brc
dbf6a266
A
20.Br
21.Nm
22.Fl w Ar dynamic-store-key Op Fl t Ar timeout
23.Br
24.Nm
25.Fl -get Ar pref
26.Br
27.Nm
28.Fl -set Ar pref Op Ar newval
edebe297
A
29.Br
30.Nm
31.Fl -dns
32.Br
33.Nm
34.Fl -proxy
dbf6a266
A
35.\".Br
36.\".Nm
37.\".Fl -net
38.Sh DESCRIPTION
39Invoked with no options,
40.Nm
41provides a command line interface to the
42.Qq dynamic store
43data maintained by
44.Xr configd 8 .
45Interaction with this data (using the SystemConfiguration.framework
46SCDynamicStore APIs) is handled with a set of commands read from
47standard input.
48A list of the available commands is available by entering the
49.Ar help
50directive.
51.Pp
52The
edebe297
A
53.Fl -prefs
54option provides a command line interface to the [raw] stored
55preference data.
56Interaction with this data (using the SystemConfiguration.framework
57SCPreferences APIs) is handled with a set of commands read from
58standard input.
59A list of the available commands is availble by entering the
60.Ar help
61directive.
62.Pp
63The
dbf6a266
A
64.Fl r
65option provides a means of checking the network reachability of a host, an IP
66address, or a pair of local and remote IP addresses.
67Network
68.Qq reachability
69is a term that indicates whether network communication is possible between
70the current host and the specified host.
71.Pp
72The
73.Fl w
74option provides a means of checking for (and optionally waiting for the
a40a14f8 75creation of or posting of a notification to) a dynamic store key.
dbf6a266
A
76.Pp
77The
78.Fl -get
79and
80.Fl -set
81options provide a means of reporting and updating a select group of
82persistent system preferences.
edebe297
A
83.Pp
84The
85.Fl -dns
86option reports the current DNS configuration.
87The first listed
88.Xr resolver 5
89configuration is considered to be the
90.Qq default
91configuration.
92Additional
93.Qq supplemental
94configurations follow. Those containing a
95.Qq domain
96name will be used for queries matching the specified domain.
97Those without will be used as a
98.Qq default
99configuration in addition to the first listed.
100.Pp
101The
102.Fl -proxy
103option reports the current system proxy configuration.
dbf6a266
A
104.\".Pp
105.\"Lastly, the
106.\".Fl -net
107.\"option provides a means of managing the system's network configuration.
108.Sh OPTIONS
109.Bl -tag -width xx
a40a14f8 110.It Fl r Oo Fl W Oc Bro "" Ar nodename | Ar address | Ar local-address remote-address "" Brc
dbf6a266
A
111Check the network reachability of the specified host name, IP address, or a
112pair of local and remote IP addresses.
113One or more of the following strings will be reported to standard output.
114.Pp
115.Bl -tag -width "Transient Connection"
116.It Not Reachable
117The specified nodename/address cannot be reached using the current network
118configuration.
119.It Reachable
120The specified nodename/address can be reached using the current network
121configuration.
122.It Transient Connection
123The specified nodename/address can be reached via a transient (e.g. PPP)
124connection.
125.It Connection Required
126The specified nodename/address can be reached using the current network
127configuration but a connection must first be established.
128As an example, this status would be returned for a dialup connection
129that was not currently active but could handle network traffic for the
130target system.
131.It Connection Automatic
132The specified nodename/address can be reached using the current network
133configuration but a connection must first be established.
134Any traffic directed to the specified name/address will initiate the
135connection.
136.It Local Address
137The specified nodename/address is one associated with a network interface
138on the system.
139.It Directly Reachable Addresss
140Network traffic to the specified nodename/address will not go through a
141gateway but is routed directly to one of the interfaces on the system.
142.El
143.Pp
a40a14f8
A
144The reachability can also be monitored by specifying the
145.Fl W
146(watch) option.
147This will result in the current status being reported as well as the
148status when/if the network configuration changes.
149.Pp
dbf6a266
A
150A zero exit status will be returned when the reachability status is reported correctly.
151A 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
153Check if the specified key exists in the
154.Qq dynamic store
155data maintained by
156.Xr configd 8 .
157If present,
158.Nm
159will return with a zero exit status.
160If not present,
161.Nm
a40a14f8
A
162will wait for the specified time for data to be associated with or a notification
163to be posted using the key.
164A non-zero exit status will be returned if the key was not created/posted
165within the specified time.
dbf6a266
A
166.Pp
167.Nm
168will wait indefinitely if a timeout of 0 seconds is specified.
169The default timeout is 15 seconds.
170.It Fl -get Ar pref
171Retrieves the specified preference. The current value will be reported on standard output.
172.Pp
173Supported preferences include:
edebe297
A
174.Bl -tag -width "LocalHostName" -offset indent
175.It ComputerName
176The user-friendly name for the system.
177.It LocalHostName
178The local (Bonjour) host name.
179.It HostName
180The name associated with
181.Xr hostname 1
182and
183.Xr gethostname 3 .
184.El
dbf6a266
A
185.It Fl -set Ar pref Op Ar newval
186Updates the specified preference with the new value.
187If the new value is not specified on the command line then it will be read from standard input.
188.Pp
189Supported preferences include:
190ComputerName
191LocalHostName
edebe297 192HostName
dbf6a266
A
193.Pp
194The
195.Fl -set
196option requires super-user access.
edebe297
A
197.It Fl -dns
198Reports the current DNS configuration.
199.It Fl -proxy
200Reports the current proxy configuration.
dbf6a266
A
201.\".It Fl -net
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.
208.\".Pp
209.\"The
210.\".Fl -net
211.\"option requires super-user access.
212.El
213.Sh SEE ALSO
214.Xr configd 8
215.Sh HISTORY
216The
217.Nm
218command appeared in Mac OS X Public Beta.