Parameter

Description

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.

 

See “Listing Connected Users” on page 141.

 

 

The computer will repond with the following output:

afp:command = "disconnectUsers"

afp:messageSent = "<message>"

afp:timeStamp = "<time>"

afp:timerID = <disconnectID>

<user listing> afp:status = <status>

Value

Description

<message>

The message sent to users in the disconnect announcement dialog.

 

 

<time>

The time when the command was executed.

 

 

<disconnectID>

An integer that identifies this particular disconnect. You can use

 

this ID with the cancelDisconnect command to cancel the

 

disconnect.

 

 

<user listing>

A standard array of user settings for each user scheduled for

 

disconnect. For a description of these settings, see “Listing

 

Connected Users” on page 141.

 

 

<status>

A command status code.

 

0 = command successful.

 

 

Canceling a User Disconnect

You can use the cancelDisconnect command with the serveradmin tool to cancel a disconnectUsers command. Users receive an announcement that they’re no longer scheduled to be disconnected.

To cancel a user disconnect:

$ sudo serveradmin command

afp:command = cancelDisconnect

afp:timerID = timerID Control-D

Parameter

Description

timerID

The integer value of the afp:timerID parameter output when

 

you executed the disconnectUsers command.

 

You can also find this number by listing any user scheduled to be

 

disconnected and looking at the value of the disconnectID

 

setting for the user.

 

 

Chapter 9 Working with File Services

143

Page 143
Image 143
Apple Mac OS X Server manual Canceling a User Disconnect, Computer will repond with the following output, Value Description