Apple Xserve Up Mac OS X Server Specifications Page 147

  • Download
  • Add to my manuals
  • Print
  • Page
    / 329
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 146
Chapter 9 Working with File Services 147
Sending a Message to AFP Users
To send a text message to connected AFP users, use the sendMessage command with
the serveradmin tool. Users are specified by session ID.
To send a message:
$ sudo serveradmin command
afp:command = sendMessage
afp:message = "
message-text
"
afp:sessionIDsArray:_array_index:0 =
sessionid1
afp:sessionIDsArray:_array_index:1 =
sessionid2
afp:sessionIDsArray:_array_index:2 =
sessionid3
[...]
Control-D
Disconnecting AFP Users
To disconnect AFP users, use the disconnectUsers command with the serveradmin
tool. You can specify a delay time before a disconnect and include a warning message.
To disconnect users:
$ sudo serveradmin command
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
<serviceType>
Share point the user is accessing.
<sessionID> Integer that identifies the user session.
<state> State of the service.
Value returned by getConnectedUsers
(afp:usersArray:_array_index:<
n
>:) Description
Parameter Description
message-text Message that appears on client computers.
sessionidn Session ID of the user you want to receive the message. To list the
session IDs of connected users, use the
getConnectedUsers
command. See “Viewing Connected Users” on page 146.
Parameter Description
message-text
The message that appears on client computers in the disconnect
announcement dialog.
Page view 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 328 329

Comments to this Manuals

No comments