Specifications
62 Chapter 3 AFP Service
Limiting Connections
If your server provides a variety of services, you can prevent a flood of users from
affecting the performance of those services by limiting the number of clients and
guests who can connect at the same time.
To set the maximum number of connections:
1 Open Server Admin and select AFP in the Computers & Services list.
2 Click Settings, then click Access and look under “Maximum Connections.”
3 Click the button next to the number field following “Client Connections (Including
Guests)” and type the maximum number of connections you want to allow.
4 Next to “Guest connections,” enable the number field and type the maximum number
of guests you want to allow.
5 Click Save.
The guest connections limit is based on the client connections limit, and guest
connections count against the total connection limit. For example, if you specify
maximums of 400 client connections and 50 guest connections, and 50 guests are
connected, that leaves 350 connections for registered users.
From the Command Line
You can also set the AFP service connections limit using the serveradmin command in
Terminal. For more information, see the file services chapter of the command-line
administration guide.
Keeping an Access Log
The access log can record when a user connects or disconnects, opens a file, or creates
or deletes a file or folder.
To set up access logging:
1 Open Server Admin and select AFP in the Computers & Services list.
2 Click Settings (near the bottom of the window), then click Logging.
3 Select “Enable access log.”
4 Select the events you want to record.
Consider your server’s disk size when choosing events to log. The more events you
choose, the larger the log file.
To view the log, open Server Admin, select AFP, and click Logs. Log files are stored in
/Library/Logs/AppleFileService.
From the Command Line
You can also set the AFP service to record logs using the
serveradmin command in
Terminal. For more information, see the file services chapter of the command-line
administration guide.