MacOS – Where does scutil store its information

command linemacosterminal

I don't usually dig around with the terminal, but I have been puzzled with the local host behavior on my Mac for a long time. It works in some conditions and doesn't in others. My question isn't about the localhost, but about scutil.

I tried this out scutil but it seems like a blackbox to me. It sets and gets the data I ask it to, but where does it store the information? What does scutil mean?

Best Answer

scutil talks to the System Configuration daemon, configd. Some of the info it deals with isn't stored anywhere (except in RAM), because it relates to the live state of the computer. The part that does get stored is (at least mostly) in the /Library/Preferences/SystemConfiguration/ directory, especially the preferences.plist and NetworkInterfaces.plist files. man scutil and man configd both have relevant (if superficial) info.

The format of the information in the configuration database is rather cryptic, both when viewed directly in the files and via scutil. For most network configuration tasks, networksetup is much easier to work with. I don't really recommend using scutil except for its --set and --get options (which set and get the Mac's various network names). What are you actually trying to do?