Preferences & Crash Reporter

1/
Is there a way to save the complete setup inc. all my users' groups, shares, www setup .. the lot! as a preference or log file in cash the server goes completely and I have to reinstall from scratch?
I know there is an option to do this on the first install, but I can't find the ability to save the whole configuration a few weeks later when I have it perfected.

2/
Is there anywhere to set where to send an email report when the server reboots or crashes?

various, Mac OS X (10.4.8)

Posted on Jan 24, 2007 10:16 AM

Reply
3 replies

Jan 25, 2007 4:17 AM in response to James Rothschild

2/Not sure where it went to but if the system crashes a Reporter window should come up.

1/Copied from Help Menu on the Mac no KB link that I could find. You can search "save setup" Mac OS X Server Help from the Help menu.

Setting Up Servers Automatically Using Data Saved in a File
After server software has been installed on a server, you can set it up automatically using data saved in a file.

Fill out the Mac OS X Server Worksheet.
The worksheet is located on the Mac OS X Server installation disc in the Documentation folder. It's also available for downloading from www.apple.com/server/documentation/.

On an administrator computer, open Server Assistant. It's in /Applications/Server/. You don't need to be an administrator on the administrator computer to use Server Assistant.
In the Welcome pane, select "Save setup information in a file or directory record" to work in offline mode, which doesn't require a server connection.
In the Language pane, specify the language you want to use to administer the target server or servers.
If you want to create a new setup file, use step 6. If you want to work with a setup file that already exists, use step 7.
If you intend to create a generic setup file because you want to use the file to set up more than one server, don't specify network names (computer name and local hostname) and make sure that each network interface (port) is set to be configured "Using DHCP" or "Using BootP."

Click Continue and enter the setup data as you move through the Assistant's panes, following the onscreen instructions.
In the Language pane, choose File > Open Configuration File or File > Open Directory Record to load the saved setup data you want to work with. If the saved setup data is encrypted, type the passphrase when prompted.
Optionally choose View > Jump to Review to review the setup data, then use Go Back as necessary to change it.

In the Network Interfaces pane, click Add to specify network interfaces.
After all the setup data has been specified, review the summary displayed by Server Assistant and optionally click Go Back to change data.
Click Save As, then select "Configuration File."
To encrypt the file, select "Save in Encrypted Format" then enter and verify a passphrase.
You must supply the passphrase before an encrypted setup file can be used by a target server.

Click OK, navigate to the location where you want to save the file, name the file using one of the following options, and click Save; when searching for setup files, target servers search for names in the order listed:
<MAC-address-of-server>.plist (include any leading zeros but omit colons). For example, 0030654dbcef.plist.

<IP-address-of-server>.plist. For example, 10.0.0.4.plist.

<partial-DNS-name-of-server>.plist. For example, myserver.plist.

<built-in-hardware-serial-number-of-server>.plist (first 8 characters only). For example, ABCD1234.plist.

<fully-qualified-DNS-name-of-server>.plist. For example, myserver.example.com.plist.

<partial-IP-address-of-server>.plist. For example, 10.0.plist (matches 10.0.0.4 and 10.0.1.2).

generic.plist (a file that any server will recognize, used to set up servers that need the same setup values).

Place the file in a location where the target server or servers can detect it.
A server can detect a setup file if it resides on a volume mounted locally in /Volumes/*/Auto Server Setup/, where * is any device mounted under /Volumes. The device can be the server's hard drive or an iPod, DVD, CD, FireWire drive, USB drive, or other device plugged into the server.

For example, if you have an iPod named AdminiPod, the path used would be /Volumes/AdminiPod/Auto Server Setup/<setup-file-name>.

If the setup data is encrypted, make the passphrase available to the target server or servers. You can supply the passphrase interactively using Server Assistant, or you can provide it in a text file.
To provide the passphrase in a file, use step 15. To provide it interactively, use step 16.

To provide a passphrase in a file, create a new text file and type the passphrase for the saved setup file on the first line. Save the file using one of the following names; target servers search for names in the order listed:
<MAC-address-of-server>.pass (include any leading zeros but omit colons). For example, 0030654dbcef.pass.

<IP-address-of-server>.pass. For example, 10.0.0.4.pass.

<partial-DNS-name-of-server>.pass. For example, myserver.pass.

<built-in-hardware-serial-number-of-server>.pass (first 8 characters only). For example, ABCD1234.pass.

<fully-qualified-DNS-name-of-server>.pass. For example, myserver.example.com.pass.

<partial-IP-address-of-server>.pass. For example, 10.0.pass (matches 10.0.0.4 and 10.0.1.2).

generic.pass (a file that any server will recognize).

Put the passphrase file on a volume mounted locally on the target server in /Volumes/*/Auto Server Setup/<pass-phrase-file>, where * is any device mounted under /Volumes.

To provide a passphrase interactively, use Server Assistant on an administrator computer that can connect with the target server.
In the Welcome or Destination pane, choose File > Supply Passphrase. In the dialog box, enter the target server's IP address, password, and the passphrase.

Click Send.

If you're using a generic setup file, and the serial number isn't site licensed, after setup you must specify the server's serial number by using Server Admin or the command line. In Server Admin, select the server, click Settings, and click General. Alternatively, in the Terminal application, use ssh to connect with the server and type the serversetup -setServerSerialNumber command.

See the command-line administration guide for a description of the layout of a saved setup file and more information about the serversetup command.

Jan 26, 2007 3:48 PM in response to James Rothschild

Well first you should always be making a regular backup of your LDAP directory. This has all the User info in it. This along with other Preferences can be saved through the Server Admin. In the bottom right hand corner of each SA "service" window under there respective Settings tab you should see a little icon. (Don't forget the Top level Settings tab) If you drag this Icon to a folder or the desktop it saves a file for that service. You only need one file per service "settings" tab, AFP Config.plist, Mail Config.plist, etc.
The most import thing to do is to "archive" the LDAP. Under the Open Directory service there is an Archive tab. It's pretty straight forward in Tiger and a big improvement from the CLI ways of Panther LDAP backups.

As to your other question you could create a startup item that e-mail's you when the system is rebooted. I am not sure if you can make it do it only on a crash but maybe. This is a bit out of my league. Maybe someone could post a script to do this or point us in the right direction for it. the only other way would be to have a third party monitor of some sort. There are lots of server monitors out there. Some open source and some full commercial versions. These work by pinging or other methods to see if the server/service is online or offline. It can then notify you when there is a problem.
Hope this helps.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Preferences & Crash Reporter

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.