Apple Xserve Up Mac OS X Server Dokumentacja Strona 146

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 329
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 145
146 Chapter 9 Working with File Services
Viewing Connected Users
To retrieve information about connected AFP users, use the getConnectedUsers
command with the serveradmin tool. You can use this command to retrieve session IDs
you need to disconnect or to send messages to users.
To view connected users:
$ sudo serveradmin command afp:command = getConnectedUsers
The computer responds with the following settings 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>
getLogPaths
Display the locations of the AFP service activity and error logs.
See “Viewing AFP Log Files” on page 149.
sendMessage Send a text message to connected AFP users. See “Sending a
Message to AFP Users” on page 147.
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 “Using the serveradmin Tool” on page 50.
Command (afp:command=) Description
Value returned by getConnectedUsers
(afp:usersArray:_array_index:<
n
>:) Description
<disconnectID> An integer that identifies this disconnect.
This appears after a disconnect is issued.
<flags> Indicates the type of user.
 1-session belongs to the administrator.
 2-session belongs to a guest.
 4-session is sleeping.
<ipAddress> Users IP address.
<lastUseElapsed> Time since the command was last run.
<login-elapsed-time> Elapsed time since the user connected.
<minsToDisconnect> Number of minutes between the time the
command is issued and the user is disconnected.
<name> Users name.
Przeglądanie stron 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 328 329

Komentarze do niniejszej Instrukcji

Brak uwag