Specifications

Chapter 4 Working with AFP Service 85
7 Click Disconnect.
From the command line:
To set up access logging: m
$ sudo serveradmin settings
afp:command = disconnectUsers
afp:message = "message-text"
afp:minutes = minutes-until
afp:sessionIDsArray:_array_index:0 = sessionid1
afp:sessionIDsArray:_array_index:1 = sessionid2
afp:sessionIDsArray:_array_index:2 = sessionid3
Control-D
Parameter Description
message-text
The message that appears on client computers in
the disconnect announcement dialog.
minutes-until
The number of minutes between the time
the command is executed and the users are
disconnected.
sessionidn
The session ID of a user you want to disconnect.
To list the session IDs of connected users, use the
getConnectedUsers command.
For more information about command-line parameters for AFP, see AFP
Parameters” on page 143. For information about serveradmin, see its man page.
For the basics of command-line tool usage, see Introduction to Command-Line
Administration.
Automatically Disconnecting Idle Users from the AFP Server
You can set AFP service to disconnect users who have not used the server for a period
of time.
To set how the server handles idle users:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select AFP.
4 Click Settings, then click Idle Users.
5 To enable client computers to reconnect after sleeping, select Allow clients to sleep
__ hours” and enter the number of hours clients can sleep and still automatically
reconnect to the server.