72

Parameter (afp:)

Description

useAppleTalk

Don’t modify. Internal use only.

useHomeDirs

Default = no

List of AFP serveradmin Commands

In addition to the standard start, stop, status, and settings commands, you can use serveradmin to issue the following service-specific AFP commands.

Command (afp:command=) Description

cancelDisconnect

Cancel a pending user disconnect. See “Canceling a User

 

Disconnect” on page 74.

 

 

disconnectUsers

Disconnect AFP users. See “Disconnecting AFP Users” on page 73.

 

 

getConnectedUsers

List settings for connected users. See “Listing Connected Users” on

 

this page.

 

 

getHistory

View a periodic record of file data throughput or number of user

 

connections. See “Listing AFP Service Statistics” on page 75.

 

 

getLogPaths

Display the locations of the AFP service activity and error logs.

 

 

sendMessage

Send a text message to connected AFP users. See “Sending a

 

Message to AFP Users” on page 73.

 

 

syncSharePoints

Update share point information after changing settings.

 

 

writeSettings

Equivalent to the standard serveradmin settings command,

 

but also returns a setting indicating whether the service needs to

 

be restarted. See “Determining Whether a Service Needs to be

 

Restarted” on page 19.

 

 

Listing Connected Users

You can use the serveradmin getConnectedUsers command to retrieve information about connected AFP users. In particular, you can use this command to retrieve the session IDs you need to disconnect or send messages to users.

To list connected users:

$serveradmin command afp:command = getConnectedUsers

Output

The following array of settings is displayed for each connected user:

afp:usersArray:_array_index:i:disconnectID = <disconnectID>

afp:usersArray:_array_index:i:flags = <flags>

afp:usersArray:_array_index:i:ipAddress = <ipAddress>

afp:usersArray:_array_index:i:lastUseElapsedTime = <lastUseElapsed>

afp:usersArray:_array_index:i:loginElapsedTime = <loginElapsedTime>

afp:usersArray:_array_index:i:minsToDisconnect = <minsToDisconnect>

afp:usersArray:_array_index:i:name = <name>

afp:usersArray:_array_index:i:serviceType = <serviceType>

afp:usersArray:_array_index:i:sessionID = <sessionID>

afp:usersArray:_array_index:i:sessionType = <sessionType>

afp:usersArray:_array_index:i:state = <state>

Chapter 8 Working With File Services

Page 72
Image 72
Apple oxs manual List of AFP serveradmin Commands, Listing Connected Users, To list connected users, Output