• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to enable Debug Option For CIFS Module in CentOS/RHEL 7 and 8

by admin

Question: How to configure CIFS debug option in Linux servers to provide additional debug information in the client system logs?

1. Take backup of existing debug or to check the default value:

# cp /sys/kernel/debug/dynamic_debug/control /root/backup
# cat /proc/fs/cifs/cifsFYI
# cat /proc/fs/cifs/traceSMB

2. Enable debug chosen options:

# echo 'module cifs +p' > /sys/kernel/debug/dynamic_debug/control
# echo 7 > /proc/fs/cifs/cifsFYI
# echo 1 >/proc/fs/cifs/traceSMB
# dmesg -c (Clear the message log)

3. To disable:

# echo "module cifs -p" >/sys/kernel/debug/dynamic_debug/control
# echo 0 > /proc/fs/cifs/cifsFYI
# echo 0 > /proc/fs/cifs/traceSMB

How to troubleshoot

1. Start the tcpdump capture.

2. Reproduce the issue.

3. Collect the tcpdump to review.

4. Review debug information in /var/log/dmesg or /var/log/messages system logs.

Example for tcpdump capture

# tcpdump -n -vv -s 0 -i {interface} -w /tmp/cifs_not_working.cap host {IP-Of-Windows}'
Note: Depending on the issue we may need to add extra debug options to tcpdump collection or we may need to collect from both ends of the network simultaneously.

Filed Under: CentOS/RHEL, CentOS/RHEL 7, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. virt-manager Command Examples in Linux
  2. Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  3. How to Verify if a Disk/Partition is in Use by Oracle ASM, was used by Oracle ASM or is never used by Oracle ASM
  4. blight Command Examples in Linux
  5. login Command Examples in Linux
  6. How to extract RAR files in CentOS/RHEL 7 and 8
  7. faillock Command Examples in Linux
  8. lslogins Command Examples in Linux
  9. How to allow only specific non-root user(s) to use crontab
  10. join Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright