]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
expanded ctdb_diagnostics a bit
authorAndrew Tridgell <tridge@samba.org>
Mon, 17 Sep 2007 05:31:33 +0000 (15:31 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 17 Sep 2007 05:31:33 +0000 (15:31 +1000)
(This used to be ctdb commit 70a4bb3dc7e624ad778949dbc874c2617fd532e6)

ctdb/tools/ctdb_diagnostics

index 7186467b7417d3b4de65d9bc38a2294ef4d49ddb..bdf11bd0e079376757111d9e15e441b9fc11bec8 100755 (executable)
@@ -4,7 +4,7 @@
 
 PATH="$PATH:/sbin:/usr/sbin:/usr/lpp/mmfs/bin"
 
-CONFIG_FILES="/etc/krb5.conf /etc/hosts /etc/ctdb/nodes /etc/sysconfig/ctdb /etc/ctdb/public_addresses /etc/resolv.conf /etc/nsswitch.conf /etc/sysctl.conf /etc/samba/smb.conf /etc/fstab"
+CONFIG_FILES="/etc/krb5.conf /etc/hosts /etc/ctdb/nodes /etc/sysconfig/ctdb /etc/ctdb/public_addresses /etc/resolv.conf /etc/nsswitch.conf /etc/sysctl.conf /etc/samba/smb.conf /etc/fstab /etc/multipath.conf /etc/pam.d/system-auth /etc/sysconfig/nfs /etc/exports /etc/vsftpd/vsftpd.conf"
 
 2>&1
 
@@ -114,23 +114,40 @@ cat <<EOF
 Showing system and process status
 EOF
 show_all "df; df -i; mount"
-show_all uptime
+show_all "w"
 show_all "ps axfw"
 show_all "dmesg"
 show_all "/sbin/lspci"
+show_all "cat /proc/partitions"
+show_all "cat /proc/cpuinfo"
+show_all "cat /proc/scsi/scsi"
 show_all "/sbin/ifconfig -a"
 show_all "/sbin/ip addr list"
 show_all "/sbin/route -n"
+show_all "netstat -s"
 show_all "crontab -l"
 show_all "sysctl -a"
 show_all "/sbin/iptables -L -n"
+show_all "/sbin/iptables -L -n -t nat"
+show_all "/usr/sbin/rpcinfo -p"
+show_all "/usr/sbin/showmount -a"
+show_all "/usr/sbin/showmount -e"
+show_all "/usr/sbin/nfsstat -v"
+[ -x /sbin/multipath ] && {
+    show_all "/sbin/multipath -l"
+}
+[ -x /sbin/chkconfig ] && {
+    show_all "/sbin/chkconfig --list"
+}
+[ -x /usr/sbin/getenforce ] && {
+    show_all "/usr/sbin/getenforce"
+}
 
 [ -d /usr/lpp/mmfs ] && {
 cat <<EOF
 --------------------------------------------------------------------
 Showing GPFS status and recent log entries
 EOF
- echo "Showing mmfs.log.latest"
  show_all "tail -100 /var/adm/ras/mmfs.log.latest"
  show_all "/usr/lpp/mmfs/bin/mmlsconfig"
  show_all "/usr/lpp/mmfs/bin/mmlsfs all"