]> git.saurik.com Git - apple/configd.git/blame - scutil.tproj/scutil.8
configd-130.tar.gz
[apple/configd.git] / scutil.tproj / scutil.8
CommitLineData
dbf6a266
A
1.\"
2.\" @(#)scutil.8
3.\"
4.Dd November 4, 2003
5.Dt SCUTIL 8
6.Os Mac OS X
7.Sh NAME
8.Nm scutil
9.Nd Manage system configuration parameters
10.Sh SYNOPSIS
11.Nm
12.Br
13.Nm
14.Fl r Bro "" Ar nodename | Ar address | Ar local-address remote-address "" Brc
15.Br
16.Nm
17.Fl w Ar dynamic-store-key Op Fl t Ar timeout
18.Br
19.Nm
20.Fl -get Ar pref
21.Br
22.Nm
23.Fl -set Ar pref Op Ar newval
24.\".Br
25.\".Nm
26.\".Fl -net
27.Sh DESCRIPTION
28Invoked with no options,
29.Nm
30provides a command line interface to the
31.Qq dynamic store
32data maintained by
33.Xr configd 8 .
34Interaction with this data (using the SystemConfiguration.framework
35SCDynamicStore APIs) is handled with a set of commands read from
36standard input.
37A list of the available commands is available by entering the
38.Ar help
39directive.
40.Pp
41The
42.Fl r
43option provides a means of checking the network reachability of a host, an IP
44address, or a pair of local and remote IP addresses.
45Network
46.Qq reachability
47is a term that indicates whether network communication is possible between
48the current host and the specified host.
49.Pp
50The
51.Fl w
52option provides a means of checking for (and optionally waiting for the
53creation of) a dynamic store key.
54.Pp
55The
56.Fl -get
57and
58.Fl -set
59options provide a means of reporting and updating a select group of
60persistent system preferences.
61.\".Pp
62.\"Lastly, the
63.\".Fl -net
64.\"option provides a means of managing the system's network configuration.
65.Sh OPTIONS
66.Bl -tag -width xx
67.It Fl r Bro "" Ar nodename | Ar address | Ar local-address remote-address "" Brc
68Check the network reachability of the specified host name, IP address, or a
69pair of local and remote IP addresses.
70One or more of the following strings will be reported to standard output.
71.Pp
72.Bl -tag -width "Transient Connection"
73.It Not Reachable
74The specified nodename/address cannot be reached using the current network
75configuration.
76.It Reachable
77The specified nodename/address can be reached using the current network
78configuration.
79.It Transient Connection
80The specified nodename/address can be reached via a transient (e.g. PPP)
81connection.
82.It Connection Required
83The specified nodename/address can be reached using the current network
84configuration but a connection must first be established.
85As an example, this status would be returned for a dialup connection
86that was not currently active but could handle network traffic for the
87target system.
88.It Connection Automatic
89The specified nodename/address can be reached using the current network
90configuration but a connection must first be established.
91Any traffic directed to the specified name/address will initiate the
92connection.
93.It Local Address
94The specified nodename/address is one associated with a network interface
95on the system.
96.It Directly Reachable Addresss
97Network traffic to the specified nodename/address will not go through a
98gateway but is routed directly to one of the interfaces on the system.
99.El
100.Pp
101A zero exit status will be returned when the reachability status is reported correctly.
102A non-zero exit status will be returned if errors are detected with an error reported to standard error.
103.It Fl w Ar dynamic-store-key Op Fl t Ar timeout
104Check if the specified key exists in the
105.Qq dynamic store
106data maintained by
107.Xr configd 8 .
108If present,
109.Nm
110will return with a zero exit status.
111If not present,
112.Nm
113will wait for the specified time for the key to be established.
114A non-zero exit status will be returned if the key was not created within the specified time.
115.Pp
116.Nm
117will wait indefinitely if a timeout of 0 seconds is specified.
118The default timeout is 15 seconds.
119.It Fl -get Ar pref
120Retrieves the specified preference. The current value will be reported on standard output.
121.Pp
122Supported preferences include:
123ComputerName
124LocalHostName
125.It Fl -set Ar pref Op Ar newval
126Updates the specified preference with the new value.
127If the new value is not specified on the command line then it will be read from standard input.
128.Pp
129Supported preferences include:
130ComputerName
131LocalHostName
132.Pp
133The
134.Fl -set
135option requires super-user access.
136.\".It Fl -net
137.\"Provides a command line interface to the
138.\".Qq network configuration .
139.\"Interaction with this data (using the SystemConfiguration.framework
140.\"SCNetworkConfiguration APIs) is handled with a set of commands read
141.\"from standard input. A list of the available commands is available
142.\"by entering the help directive.
143.\".Pp
144.\"The
145.\".Fl -net
146.\"option requires super-user access.
147.El
148.Sh SEE ALSO
149.Xr configd 8
150.Sh HISTORY
151The
152.Nm
153command appeared in Mac OS X Public Beta.