From 67cad49c974a3749bec25033041b6e796ff2e846 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 1 Oct 2021 11:49:45 +0200 Subject: [PATCH] =?UTF-8?q?samba:=20user=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extern/samba | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/extern/samba b/extern/samba index 1831d3f..b632913 100644 --- a/extern/samba +++ b/extern/samba @@ -64,6 +64,7 @@ if [ "$1" = "config" ]; then echo 'proc.label processes' echo 'lock.label locked files' echo 'share.label Open shares' + echo 'user.label Active Users' # Bug pointed out by kozik: there is no max field. # echo 'max.warning 900' # echo 'max.critical 960' @@ -85,3 +86,15 @@ $SMBSTATUS -S 2>/dev/null | awk ' '"$IGNORE"' {lines++} END {print "share.value " lines}' +# mg@fileserver2 11:44 ~ +# > sudo smbstatus +# +# Samba version 4.11.6-Ubuntu +# PID Username Group Machine Protocol Version Encryption Signing +# ---------------------------------------------------------------------------------------------------------------------------------------- +# 3996190 michaelgrote smb_users 192.168.2.180 (ipv4:192.168.2.180:59878) SMB3_11 - partial(AES-128-CMAC) +# 722 pve smb_users 192.168.2.15 (ipv4:192.168.2.15:40512) SMB3_00 - partial(HMAC-SHA256) +# 736 navidrome smb_users 192.168.2.68 (ipv4:192.168.2.68:51130) SMB3_11 - partial(AES-128-CMAC) +# 3048197 photoprism smb_users 192.168.2.35 (ipv4:192.168.2.35:33078) SMB3_11 - partial(AES-128-CMAC) +# sucht nach der Protokolversion +echo user.value "$($SMBSTATUS | grep -c SMB)"