Name
scutil
Synopsis
scutil [-v] [-p] scutil [-v] [-d] -r {hostname
|IP_addr
[IP_addr
] } scutil [-v] -wkey
[-ttimeout
] scutil [-v] --get { ComputerName | LocalHostName } scutil [-v] --set { ComputerName | LocalHostName } [hostname
]
Provides control of the System Configuration framework’s dynamic store. It’s used to open an interactive session with configd, in which various commands are available to view and modify System Configuration keys.
As a quick example of interactive use, try this:
Invoke scutil. You will be placed at the scutil prompt.
Enter
open
to open the session with configd.Enter
list
. You will see a set of keys, some of which are provided by the System Configuration framework (such as the keys in theFile
: domain), some of which are obtained from /Library/Preferences/SystemConfiguration/preferences.plist (theSetup
: keys), and some of which are published by the configuration agents (theState
: keys).Enter
show State:/Network/Global/DNS
to display the DNS dictionary. You should see a list of DNS servers and search domains configured on your system.Enter
close
, thenquit
.
Options
- -d
Enable debugging output to standard error.
- --dns
Display DNS configuration.
-
--get
pref
Print the system’s computer name (use pref of LocalHostName) or Bonjour hostname (ComputerName) to standard output.
- -p
Enable a private API with additional commands, including lock, unlock, touch, snapshot, n.file, n.signal, n.wait, and n.callback.
- --proxy
Display proxy configuration.
-
-r
nodename
Determine ...
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.