I am new to Mac administration and struggling somewhat on how to programatically report in the settings in the Sharing Preference panel (10.7 and 10.8). Basically - I want to report in which settings are on and off. I have imagined writing a script to be able to report this status back.
I can see that for some of the settings I can use 'systemsetup' (remote login, remote Apple Events) but for others I am at a loss to where to go check to see if the following options are enabled:
- DVD and CD Sharing
- Screen Sharing
- File Sharing (both for AFP and SMB)
- Printer Sharing
- Scanner Sharing
- Remote Management
- Internet Sharing
- Bluetooth Sharing
I am less concerned about if the service is active (i.e. currently in use by someone) but initially want to just report if the options are checked on.