[Open-FCoE] [PATCH] fcoe-utils: Don't filter (grep) the tc filters and dump messages and dmesg

Robert Love robert.w.love at intel.com
Tue Jul 21 16:17:36 UTC 2009


This patch improves the fcoedump.sh debug script in three ways-

1) Don't grep out any of the 'fc filter show dev <ethX>' output.
2) Dump /var/log/messages
3) Dump dmesg
---

 debug/fcoedump.sh |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/debug/fcoedump.sh b/debug/fcoedump.sh
index 972f1cd..c61558a 100755
--- a/debug/fcoedump.sh
+++ b/debug/fcoedump.sh
@@ -46,7 +46,7 @@ dcb_info () {
 	echo -e "\n###DCB INFO"
 	echo -e "#tc config"
 	tc qdisc
-	tc filter show dev $1 | grep -v filter
+	tc filter show dev $1
 	echo -e "#service dcbd status:"
 	service dcbd status
 	echo -e "\n########## Showing dcb for $1"
@@ -102,6 +102,15 @@ sysfs_dump () {
 	find /sys/class/fc_vports/*/ -type f -print -exec cat '{}' \;
 }
 
+logfile_dump() {
+	echo "###LOGFILES"
+	echo "#/var/log/messages"
+	cat /var/log/messages
+	echo
+	echo "#dmesg"
+	dmesg
+}
+
 fcoe_debug () {
 	kernel_info $1
 	system_info $1
@@ -109,6 +118,7 @@ fcoe_debug () {
 	dcb_info $1
 	fcoe_info $1
 	sysfs_dump $1
+	logfile_dump
 }
 
 fcoe_debug $1




More information about the devel mailing list