samba: user ergänzt
This commit is contained in:
parent
abf6ed8ce5
commit
67cad49c97
1 changed files with 13 additions and 0 deletions
13
extern/samba
vendored
13
extern/samba
vendored
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue