Apple oxs Server User Manual


 
84 Chapter 8 Working With File Services
List of SMB serveradmin Commands
You can use these commands with the serveradmin tool to manage SMB service.
Listing SMB Users
You can use the serveradmin getConnectedUsers command to retrieve information
about connected SMB users. For example, you can use this command to retrieve the
session IDs you need to disconnect users.
To list connected users:
$serveradmin command smb:command = getConnectedUsers
wins server The name of the WINS server used by the server.
Corresponds to the WINS Registration “Register with WINS
server” selection and field in the Advanced pane of the
Windows service settings in the Server Admin GUI application.
workgroup The server’s workgroup. Can be set to a maximum of 15 bytes
of UTF-8 characters.
Corresponds to the Workgroup field in the General pane of the
Windows service settings in the Server Admin GUI application.
Parameter (smb:) Description
smb:command= Description
disconnectUsers Disconnect SMB users. See “Disconnecting SMB Users” on page 85.
getConnectedUsers List users currently connected to an SMB service. See “Listing SMB
Users” on this page.
getHistory List connection statistics. See “Listing SMB Service Statistics” on
page 86.
getLogPaths Show location of service log files. See “Viewing SMB Service Logs”
on page 87.
syncPrefs Update the service to recognize changes in share points. See
“Updating Share Point Information” on page 86.
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.
LL2354.book Page 84 Monday, October 20, 2003 9:47 AM