.\" .\" This file and its contents are supplied under the terms of the .\" Common Development and Distribution License ("CDDL"), version 1.0. .\" You may only use this file in accordance with the terms of version .\" 1.0 of the CDDL. .\" .\" A full copy of the text of the CDDL should have accompanied this .\" source. A copy of the CDDL is also available via the Internet at .\" http://www.illumos.org/license/CDDL. .\" .\" .\" Copyright 2014 Nexenta Systems, Inc. .\" .Dd Nov 22, 2013 .Dt SMBSTAT 8 .Os .Sh NAME .Nm smbstat .Nd report SMB server statistics .Sh SYNOPSIS .Nm smbstat .Op Fl ctu .Op Fl r Op Fl anz .Op Ar interval .Sh DESCRIPTION The .Nm command shows statistical information for the SMB server, including any or all of the following four categories: .Sy counters , .Sy throughput , .Sy utilization , .Sy requests . By default, .Nm shows .Sy throughput and .Sy utilization . .Sh OPTIONS .Bl -tag -width Ds .It Fl c Display .Sy counters . The columns shown are: .Bl -tag -width "users" -compact .It Sy nbt NetBIOS connections .It Sy tcp TCP connections .It Sy users logged on users .It Sy trees share connections .It Sy files open files and directories .It Sy pipes open named pipes .El .It Fl r Display .Sy request data, one row for each SMB command. The columns shown are, for each request type: .Bl -tag -width "rt-stddev" -compact .It Pq name command name .It Sy code command code .It Sy % % of requests that fall in this row .It Sy rbytes/s received bytes per second .It Sy tbytes/s transmitted bytes per second .It Sy reqs/s requests per second .It Sy rt-mean response time average .It Sy rt-stddev response time standard deviation .El .It Fl t Display .Sy throughput . The columns shown are: .Bl -tag -width "rbytes/s" -compact .It Sy rbytes/s received bytes per second .It Sy tbytes/s transmitted bytes per second .It Sy reqs/s requests per second .It Sy reads/s number of read requests per second .It Sy writes/s number of write requests per second .El .It Fl u Display .Sy utilization . The columns shown are: .Bl -tag -width "wtime" -compact .It Sy wcnt average number of waiting requests .It Sy rcnt average number of running requests .It Sy wtime average wait time per request .It Sy rtime average run time per request .It Sy w% % of time there were waiting requests .It Sy r% % of time there were running requests .It Sy u% utilization, computed as .Sy rcnt Ns / Ns Sy max_workers .It Sy sat has the server been .Qq saturated .Pq u% at 100 .It Sy usr% % of CPU time in user space .It Sy sys% % of CPU time in kernel .It Sy idle% % of CPU time spent idle .El .El .Pp The .Fl r option supports additional modifiers including: .Bl -tag -width Ds .It Fl a show .Qq all request types .Pq including unsupported ones .It Fl n .Qq name order .Pq sort by request name .It Fl z suppress .Qq zero count rows .Pq types for which none were received .El .Sh OPERANDS .Bl -tag -width Ds .It Ar interval When .Ar interval is specified, .Nm runs in a loop, printing the requested output every .Ar interval seconds. When no .Ar interval is specified, the statistics presented are based on running averages accumulated since the system started. The first output shows the same cumulative statistics one would see without the .Ar interval specified, and subsequent outputs represent the activity in the interval that just finished. .El .Sh INTERFACE STABILITY .Sy Uncommitted . Output format is .Sy Not-an-Interface. .Sh SEE ALSO .Xr sharectl 8 , .Xr sharemgr 8 , .Xr smbadm 8 , .Xr smbd 8