Skip Navigation Links | |
Exit Print View | |
man pages section 1M: System Administration Commands Oracle Solaris 11.1 Information Library |
- show Solaris SMB file server statistics
smbstat [-r [-n [-a | -z]] [-t] [-u] [-c] interval
The smbstat command shows statistical information for the smbd(1M) server. smbstat has a number of options, described below, and a single operand, interval. If interval is specified, the first display captures statistics since the server started, up to the moment the command was entered. Subsequent displays capture statistics for the last interval.
By default, the smbstat command shows all statistics.
The smbstat command includes the following options:
Display counters.
Display the statistics of the requests. You can combine -r with the following options.
Display statistics for all the types of server requests, whether valid or not. Note that there are 256 types of server requests. The -a and -z options are mutually exclusive.
Display in alphabetic order.
Display statistics for requests actually received. The -a and -z options are mutually exclusive.
Display the throughput of the SMB server.
Display the utilization of the SMB server.
The smbstat command displays the headings shown below. The headings displayed for a given command vary according to which option(s) are specified. There are four categories of headings, corresponding to categories of statistics: counters, throughput, utilization, and (server) requests.
Number of SMB NetBIOS-over-TCP (NBT) sessions.
Number of SMB TCP sessions.
Number of users logged in.
Number of trees connected.
Number of open files.
Number of open pipes.
Number of bytes received per second.
Number of bytes transmitted per second.
Number of requests handled per second.
Number of read requests per second. This would be an aggregation of the following requests: SMB_COM_READ, SMB_COM_LOCK_AND_READ, SMB_COM_READ_RAW, and SMB_COM_READ_ANDX.
Number of write requests per second. This would ba an aggregation of the following requests: SMB_COM_WRITE, SMB_COM_WRITE_AND_UNLOCK, SMB_COM_WRITE_RAW, and SMB_COM_WRITE_AND_CLOSE.
Average number of requests received but waiting for an SMB worker thread to execute them.
Average number of requests being simultaneously executed by an SMB worker thread.
Average time a request waits before an SMB worker thread starts executing it.
Average execution time of a request.
Percentage of the time during which at least one request was waiting.
Percentage of the time during which at least one request was being executed.
Percentage of utilization of the SMB server. This number is defined as: rcnt / (max_worker_threads).
Flag indicating if the server has been saturated in the past. Saturation is defined as: u% == 100%.
Percentage of the time the processor(s) spent in user space.
Percentage of the time the processor(s) spent in kernel space.
Percentage of the time the processor(s) was(were) idle.
The following headings are displayed for each type of request.
Code of the request, in hexadecimal.
Percentage of a given type of request.
Number of requests received.
Number of bytes received per second.
Number of bytes received per second.
Number of requests handled per second.
Average response time in seconds.
Standard deviation of the response time.
Example 1 Combining Options
The following command combines the -c, -t, and -u options.
% smbstat -ctu nbt tcp users trees files pipes 0 1 1 2 20 0 rbytes/s tbytes/s reqs/s reads/s writes/s 1.036e+02 1.298e+00 0.000e+00 0.000e+00 0.000e+00 wcnt rcnt wtime rtime w% r% u% sat usr% sys% idle% 4.317e-01 7.410e+00 2.461e-05 4.224e-04 31 100 0 no 0 76 24
The following exit values are returned:
Successful completion.
An error occurred.
See the attributes(5) man page for descriptions of the following attributes:
|