TrueCommand 1.3.1 phantom SMB clients

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Hi all,

TrueCommand shows two active SMB clients for systems with
  • no shares defined
  • SMB disabled
Any ideas? Happens with FreeNAS 11.3 systems as well as TrueNAS Core 12.0.

Kind regards,
Patrick

Bildschirmfoto 2020-08-05 um 13.08.22.png
Bildschirmfoto 2020-08-05 um 13.08.54.png
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Code:
root@freenas02[~]# ps awwux
USER         PID   %CPU %MEM      VSZ     RSS TT  STAT STARTED         TIME COMMAND
root          11 4758.5  0.0        0     768  -  RNL  Thu09   424967:29.21 [idle]
root         128   64.1  0.6  1749212 1623872  -  S    Thu09     2334:49.59 python3.7: middlewared (python3.7)
root        2220    3.0  1.7 16822900 4458824  -  SC   20:25       85:32.71 bhyve: 29_datev (bhyve)
root       32019    0.7  0.6  8407760 1499052  -  SC   16:29       37:36.48 bhyve: 31_truecommand (bhyve)
root          18    0.2  0.0        0      48  -  DL   Thu09       10:42.13 [pagedaemon]
root         198    0.1  0.1   176040  144680  -  S    Thu09       11:46.62 python3.7: middlewared (worker) (python3.7)
root           0    0.0  0.0        0   26816  -  DLs  Thu09      387:53.88 [kernel]
root           1    0.0  0.0     5392    1036  -  ILs  Thu09        0:00.36 /sbin/init --
root           2    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [crypto]
root           3    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [crypto returns]
root           4    0.0  0.0        0     160  -  DL   Thu09        0:00.00 [cam]
root           5    0.0  0.0        0     208  -  DL   Thu09        0:00.22 [ctl]
root           6    0.0  0.0        0      16  -  DL   Thu09        0:00.08 [soaiod1]
root           7    0.0  0.0        0      16  -  DL   Thu09        0:00.07 [soaiod2]
root           8    0.0  0.0        0      16  -  DL   Thu09        0:00.08 [soaiod3]
root           9    0.0  0.0        0      16  -  DL   Thu09        0:00.08 [soaiod4]
root          10    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [audit]
root          12    0.0  0.0        0    3888  -  WL   Thu09       31:58.34 [intr]
root          13    0.0  0.0        0      48  -  DL   Thu09        3:39.67 [geom]
root          14    0.0  0.0        0     320  -  DL   Thu09        0:38.07 [usb]
root          15    0.0  0.0        0     272  -  DL   Thu09       52:47.83 [zfskern]
root          16    0.0  0.0        0      16  -  DL   Thu09        3:51.17 [rand_harvestq]
root          17    0.0  0.0        0      16  -  DL   Thu09       13:39.62 [ipmi0: kcs]
root          19    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [vmdaemon]
root          20    0.0  0.0        0      16  -  DNL  Thu09        0:00.01 [pagezero]
root          21    0.0  0.0        0      16  -  DL   Thu09        0:01.79 [bufdaemon]
root          22    0.0  0.0        0      16  -  DL   Thu09        0:01.67 [bufspacedaemon]
root          23    0.0  0.0        0      16  -  DL   Thu09        1:10.72 [syncer]
root          24    0.0  0.0        0      16  -  DL   Thu09        0:01.97 [vnlru]
root         103    0.0  0.0     6568    2180  -  Is   Thu09        0:00.00 /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid
root         116    0.0  0.0     9160    5540  -  Ss   Thu09        0:04.59 /sbin/devd -q
root         126    0.0  0.0     6348    2028  -  Is   Thu09        0:00.00 daemon: /usr/local/bin/middlewared[128] (daemon)
root         133    0.0  0.0    15936   11532  -  I    Thu09        0:00.05 /usr/local/bin/python3.7 -c from multiprocessing.semaphore_tracker import main;main(12)
root         196    0.0  0.1   178088  146312  -  S    Thu09       11:38.87 python3.7: middlewared (worker) (python3.7)
root         197    0.0  0.1   191016  147776  -  S    Thu09       11:42.23 python3.7: middlewared (worker) (python3.7)
root         199    0.0  0.1   180264  147240  -  S    Thu09       11:42.48 python3.7: middlewared (worker) (python3.7)
root         200    0.0  0.1   178088  146936  -  S    Thu09       11:51.15 python3.7: middlewared (worker) (python3.7)
root         591    0.0  0.0    15936   11528  -  I    Thu09        0:00.05 /usr/local/bin/python3.7 -c from multiprocessing.semaphore_tracker import main;main(19)
root         592    0.0  0.0    15936   11528  -  I    Thu09        0:00.06 /usr/local/bin/python3.7 -c from multiprocessing.semaphore_tracker import main;main(19)
root         593    0.0  0.0    15936   11528  -  I    Thu09        0:00.06 /usr/local/bin/python3.7 -c from multiprocessing.semaphore_tracker import main;main(19)
root         594    0.0  0.0    15936   11528  -  I    Thu09        0:00.06 /usr/local/bin/python3.7 -c from multiprocessing.semaphore_tracker import main;main(19)
root         595    0.0  0.0    15936   11528  -  I    Thu09        0:00.06 /usr/local/bin/python3.7 -c from multiprocessing.semaphore_tracker import main;main(19)
root         602    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [ftcleanup]
root         606    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_mp_kt]
root         731    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_mirror swap0]
root         733    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_mirror swap1]
root         735    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_mirror swap2]
root         737    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[0] mirror/swa]
root         738    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[1] mirror/swa]
root         739    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[2] mirror/swa]
root         740    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[3] mirror/swa]
root         741    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[4] mirror/swa]
root         742    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[5] mirror/swa]
root         743    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[6] mirror/swa]
root         744    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[7] mirror/swa]
root         745    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[8] mirror/swa]
root         746    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[9] mirror/swa]
root         747    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[10] mirror/sw]
root         748    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[11] mirror/sw]
root         749    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[12] mirror/sw]
root         750    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[13] mirror/sw]
root         751    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[14] mirror/sw]
root         752    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[15] mirror/sw]
root         753    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[16] mirror/sw]
root         754    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[17] mirror/sw]
root         755    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[18] mirror/sw]
root         756    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[19] mirror/sw]
root         757    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[20] mirror/sw]
root         758    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[21] mirror/sw]
root         759    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[22] mirror/sw]
root         760    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[23] mirror/sw]
root         761    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[24] mirror/sw]
root         762    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[25] mirror/sw]
root         763    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[26] mirror/sw]
root         764    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[27] mirror/sw]
root         765    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[28] mirror/sw]
root         766    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[29] mirror/sw]
root         767    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[30] mirror/sw]
root         768    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[31] mirror/sw]
root         769    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[32] mirror/sw]
root         770    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[33] mirror/sw]
root         771    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[34] mirror/sw]
root         772    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[35] mirror/sw]
root         773    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[36] mirror/sw]
root         774    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[37] mirror/sw]
root         775    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[38] mirror/sw]
root         776    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[39] mirror/sw]
root         777    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[40] mirror/sw]
root         778    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[41] mirror/sw]
root         779    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[42] mirror/sw]
root         780    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[43] mirror/sw]
root         781    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[44] mirror/sw]
root         782    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[45] mirror/sw]
root         783    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[46] mirror/sw]
root         784    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[47] mirror/sw]
root         787    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[0] mirror/swa]
root         788    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[1] mirror/swa]
root         789    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[2] mirror/swa]
root         790    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[3] mirror/swa]
root         791    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[4] mirror/swa]
root         792    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[5] mirror/swa]
root         793    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[6] mirror/swa]
root         794    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[7] mirror/swa]
root         795    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[8] mirror/swa]
root         796    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[9] mirror/swa]
root         797    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[10] mirror/sw]
root         798    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[11] mirror/sw]
root         799    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[12] mirror/sw]
root         800    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[13] mirror/sw]
root         801    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[14] mirror/sw]
root         802    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[15] mirror/sw]
root         803    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[16] mirror/sw]
root         804    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[17] mirror/sw]
root         805    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[18] mirror/sw]
root         806    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[19] mirror/sw]
root         807    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[20] mirror/sw]
root         808    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[21] mirror/sw]
root         809    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[22] mirror/sw]
root         810    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[23] mirror/sw]
root         811    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[24] mirror/sw]
root         812    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[25] mirror/sw]
root         813    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[26] mirror/sw]
root         814    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[27] mirror/sw]
root         815    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[28] mirror/sw]
root         816    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[29] mirror/sw]
root         817    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[30] mirror/sw]
root         818    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[31] mirror/sw]
root         819    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[32] mirror/sw]
root         820    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[33] mirror/sw]
root         821    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[34] mirror/sw]
root         822    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[35] mirror/sw]
root         823    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[36] mirror/sw]
root         824    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[37] mirror/sw]
root         825    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[38] mirror/sw]
root         826    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[39] mirror/sw]
root         827    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[40] mirror/sw]
root         828    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[41] mirror/sw]
root         829    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[42] mirror/sw]
root         830    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[43] mirror/sw]
root         831    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[44] mirror/sw]
root         832    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[45] mirror/sw]
root         833    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[46] mirror/sw]
root         834    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[47] mirror/sw]
root         837    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[0] mirror/swa]
root         838    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[1] mirror/swa]
root         839    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[2] mirror/swa]
root         840    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[3] mirror/swa]
root         841    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[4] mirror/swa]
root         842    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[5] mirror/swa]
root         843    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[6] mirror/swa]
root         844    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[7] mirror/swa]
root         845    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[8] mirror/swa]
root         846    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[9] mirror/swa]
root         847    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[10] mirror/sw]
root         848    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[11] mirror/sw]
root         849    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[12] mirror/sw]
root         850    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[13] mirror/sw]
root         851    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[14] mirror/sw]
root         852    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[15] mirror/sw]
root         853    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[16] mirror/sw]
root         854    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[17] mirror/sw]
root         855    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[18] mirror/sw]
root         856    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[19] mirror/sw]
root         857    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[20] mirror/sw]
root         858    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[21] mirror/sw]
root         859    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[22] mirror/sw]
root         860    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[23] mirror/sw]
root         861    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[24] mirror/sw]
root         862    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[25] mirror/sw]
root         863    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[26] mirror/sw]
root         864    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[27] mirror/sw]
root         865    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[28] mirror/sw]
root         866    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[29] mirror/sw]
root         867    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[30] mirror/sw]
root         868    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[31] mirror/sw]
root         869    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[32] mirror/sw]
root         870    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[33] mirror/sw]
root         871    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[34] mirror/sw]
root         872    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[35] mirror/sw]
root         873    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[36] mirror/sw]
root         874    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[37] mirror/sw]
root         875    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[38] mirror/sw]
root         876    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[39] mirror/sw]
root         877    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[40] mirror/sw]
root         878    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[41] mirror/sw]
root         879    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[42] mirror/sw]
root         880    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[43] mirror/sw]
root         881    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[44] mirror/sw]
root         882    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[45] mirror/sw]
root         883    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[46] mirror/sw]
root         884    0.0  0.0        0      16  -  DL   Thu09        0:00.00 [g_eli[47] mirror/sw]
root        1135    0.0  0.0    13324    6508  -  I    Thu09        0:00.00 /usr/local/sbin/syslog-ng -p /var/run/syslog.pid
root        1136    0.0  0.0    18752    9392  -  Ss   Thu09        0:02.53 /usr/local/sbin/syslog-ng -p /var/run/syslog.pid
root        1408    0.0  0.0    12480   12576  -  Ss   Thu09        0:15.92 /usr/sbin/ntpd -g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift
root        1441    0.0  0.0    10544    5440  -  Is   Thu09        0:01.00 /usr/local/sbin/smartd -n -i 1800 -c /usr/local/etc/smartd.conf -p /var/run/smartd-daemon.pid
root        1446    0.0  0.0    39644   19588  -  Ss   Thu09        8:02.94 /usr/local/bin/rrdcached -s www -l /var/run/rrdcached.sock -p /var/run/rrdcached.pid -w 3600 -f 7200
root        1454    0.0  0.0    12608    7340  -  Ss   Thu09        0:00.22 /usr/local/sbin/sshd
root        1458    0.0  0.0    28868    7952  -  Is   Thu09        0:00.00 nginx: master process /usr/local/sbin/nginx
www         1459    0.0  0.0    32964   10808  -  S    Thu09        1:06.84 nginx: worker process (nginx)
messagebus  1464    0.0  0.0     7348    3304  -  Is   Thu09        0:00.00 /usr/local/bin/dbus-daemon --system
nobody      1471    0.0  0.0     6868    3164  -  Is   Thu09        0:00.41 /usr/local/sbin/mdnsd
root        1521    0.0  0.0   129704  106628  -  S    Thu09        0:12.37 /usr/local/bin/uwsgi --chdir=/usr/local/www --module=freenasUI.wsgi:application --master --pidfile=/var/run/django.pid --fastcgi-socket=127.0.0.1:9042 -T --threads=15 -L -b 20480 --daemonize=/var/log/uwsgi.log (uwsgi-3.7)
root        1577    0.0  0.0     6348    2148  -  Is   Thu09        0:00.00 daemon: /usr/local/sbin/collectd[1578] (daemon)
root        1578    0.0  0.0    71784   46424  -  S    Thu09       92:08.73 /usr/local/sbin/collectd -f
root        1646    0.0  0.1   180196  138160  -  I    Thu09        0:02.61 /usr/local/bin/uwsgi --chdir=/usr/local/www --module=freenasUI.wsgi:application --master --pidfile=/var/run/django.pid --fastcgi-socket=127.0.0.1:9042 -T --threads=15 -L -b 20480 --daemonize=/var/log/uwsgi.log (uwsgi-3.7)
root        1721    0.0  0.0     9008    5028  -  Ss   Thu09        0:00.77 /usr/sbin/zfsd
root        1731    0.0  0.0     6424    2464  -  Is   Thu09        0:01.14 /usr/sbin/cron -s
root        2237    0.0  0.0    22404   19132  -  S    20:25        0:04.05 /usr/local/bin/python3.7 /usr/local/libexec/novnc/utils/websockify/run --web /usr/local/libexec/novnc/ --wrap-mode=ignore :5829 0.0.0.0:5929
root       21323    0.0  0.0    12920    8020  -  Ss   14:20        0:00.01 sshd: root@pts/0 (sshd)
root       29969    0.0  0.0    95376   65732  -  S    15:55        0:06.23 python3.7: middlewared (zettarepl) (python3.7)
root       31798    0.0  0.1 33606096  388256  -  SC   16:17       15:21.34 bhyve: 30_poudriere (bhyve)
root       82333    0.0  0.0     6272    2272  -  Is   19:19        0:00.03 /usr/sbin/rtsold -a
root        1798    0.0  0.0    71392   63616 u0  Is+  Thu09        0:01.18 /usr/local/bin/python /etc/netcli (python3.7)
root        1790    0.0  0.0    71392   63624 v0  Is+  Thu09        0:01.17 /usr/local/bin/python /etc/netcli (python3.7)
root        1791    0.0  0.0     6368    2204 v1  Is+  Thu09        0:00.00 /usr/libexec/getty Pc ttyv1
root        1792    0.0  0.0     6368    2204 v2  Is+  Thu09        0:00.00 /usr/libexec/getty Pc ttyv2
root        1793    0.0  0.0     6368    2204 v3  Is+  Thu09        0:00.00 /usr/libexec/getty Pc ttyv3
root        1794    0.0  0.0     6368    2204 v4  Is+  Thu09        0:00.00 /usr/libexec/getty Pc ttyv4
root        1795    0.0  0.0     6368    2204 v5  Is+  Thu09        0:00.00 /usr/libexec/getty Pc ttyv5
root        1796    0.0  0.0     6368    2204 v6  Is+  Thu09        0:00.00 /usr/libexec/getty Pc ttyv6
root        1797    0.0  0.0     6368    2204 v7  Is+  Thu09        0:00.00 /usr/libexec/getty Pc ttyv7
root       21328    0.0  0.0     8152    4336  0  Ss   14:20        0:00.01 -zsh (zsh)
root       21352    0.0  0.0     6964    3200  0  R+   14:20        0:00.00 ps awwux
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Obviously you need to at least subtract 2 more lines from the count :wink:

My home NAS with an active connection:
Code:
root@freenas-pmh[~]# smbstatus -b

Samba version 4.12.3
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing            
----------------------------------------------------------------------------------------------------------------------------------------
61912   nobody       nobody       2003:a:d59:3800:7925:6daf:a188:15ac (ipv6:2003:a:d59:3800:7925:6daf:a188:15ac:56536) SMB3_02           -                    -                  


TrueCommand status for that:
Bildschirmfoto 2020-08-05 um 16.41.03.png

HTH,
Patrick
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The screenshots in my initial posting are from two 11.3-U4.1 systems ...
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
@anodos We're using "smbstatus -b" and more or less counting lines of output to calculate the client count. Please let me know if this is too naive an approach.
Well, we do have an API call smb.status that provides JSON output. midclt call smb.status SESSIONS
Actually. This is 12.0+

It supports query-filters and query-options. I haven't looked at the JSON-generating code that I added to SMB status, but I probably need to revisit soon to make changes that upstream samba requested. So let me know if you encounter any bugs with it.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
We also have an AUTH_LOG `info_level` for smb.status:
Code:
root@truenas[/mnt/dozer]# midclt call smb.status AUTH_LOG | jq | less
[
  {
    "timestamp": "2020-05-12T10:27:20.676187-0700",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:127.0.0.1:445",
      "remoteAddress": "ipv4:127.0.0.1:55412",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "HOMEDOM",
      "clientAccount": "smbuser",
      "workstation": "TRUENAS-CORE",
      "becameAccount": "smbuser",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-3999357206-2668534740-3799046826-1010",
      "mappedAccount": "smbuser",
      "mappedDomain": "HOMEDOM",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 9144
    }
  },
 
Top