Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion SMBDiagnostics/smbclientlogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ start_trace() {
echo 7 > /proc/fs/cifs/cifsFYI
CIFS_FYI_ENABLED=1
fi
trace-cmd start -e cifs
echo 1023 > /sys/kernel/tracing/saved_cmdlines_size
trace-cmd start -e smb3_open_* -e smb3_close_* -e smb3_delete_* -e smb3_rename_*
}

dump_os_information() {
Expand Down Expand Up @@ -149,6 +150,8 @@ dump_debug_stats() {
mount -t cifs >> cifs_diag.txt
echo -e "\n======= CIFS TCP Connections =======" >> cifs_diag.txt
ss -t | grep microsoft >> cifs_diag.txt
echo -e "\n======= Capture process information =======" >> cifs_diag.txt
ps -aux >> cifs_diag.txt
}


Expand Down