Rev 673: added bonding info to ctdb_diagnostics in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Mon Oct 29 23:18:53 GMT 2007
------------------------------------------------------------
revno: 673
revision-id: tridge at samba.org-20071029231852-er3lxovzp8dp4tem
parent: tridge at samba.org-20071029024312-raaxbvb1gvmd22b0
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-10-30 10:18:52 +1100
message:
added bonding info to ctdb_diagnostics
modified:
tools/ctdb_diagnostics ctdb_diagnostics-20070905041904-9d9r1qnt1j9qiwiz-1
=== modified file 'tools/ctdb_diagnostics'
--- a/tools/ctdb_diagnostics 2007-10-16 10:13:28 +0000
+++ b/tools/ctdb_diagnostics 2007-10-29 23:18:52 +0000
@@ -29,8 +29,8 @@
fname="$1"
echo " ================================"
echo " File: $fname"
- echo " `ls -l $fname`"
- cat "$fname" | sed 's/^/ /'
+ echo " `ls -l $fname 2>&1`"
+ cat "$fname" 2>&1 | sed 's/^/ /'
echo " ================================"
}
@@ -57,14 +57,14 @@
for f in $CONFIG_FILES; do
[ -r "$f" ] || {
error "$f is missing"
- next;
+ continue;
}
show_file $f
for i in `seq 0 $MAX_NODE`; do
echo "Testing for same config file $f on node $i"
tmpf=/tmp/`basename $f`.node$i
- onnode $i cat $f > $tmpf
- cmp $f $tmpf || {
+ onnode $i cat $f > $tmpf 2>&1
+ cmp $f $tmpf 2>&1 || {
error "File $f is different on node $i"
diff -u $f $tmpf
}
@@ -127,6 +127,7 @@
show_all "/sbin/ip addr list"
show_all "/sbin/route -n"
show_all "netstat -s"
+show_all "free"
show_all "crontab -l"
show_all "sysctl -a"
show_all "/sbin/iptables -L -n"
@@ -144,6 +145,11 @@
[ -x /usr/sbin/getenforce ] && {
show_all "/usr/sbin/getenforce"
}
+[ -d /proc/net/bonding ] && {
+ for f in /proc/net/bonding/*; do
+ show_all "cat $f"
+ done
+}
[ -d /usr/lpp/mmfs ] && {
cat <<EOF
More information about the samba-cvs
mailing list