
84
Parameter (smb:) | Description |
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 |
| Corresponds to the Workgroup field in the General pane of the |
| Windows service settings in the Server Admin GUI application. |
|
|
List of SMB serveradmin Commands
You can use these commands with the serveradmin tool to manage SMB service.
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. |
|
|
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
Chapter 8 Working With File Services