#!/bin/sh

# Copyright C 2002-2012 by Isilon Systems LLC. All rights not expressly
# granted herein are reserved.
# Created in the United States of America.
# 
# This digital media is protected by U.S. and international copyright and
# intellectual property laws. Unless otherwise specified, all information
# and screens appearing as part of this digital medium, including
# software, services, documents, text, images, icons, and logos design;
# the selection, assembly, arrangement, and design thereof; and the code
# that enables its presentation, are the sole property of Isilon Systems,
# Inc.
# 
# Except as otherwise required by applicable law, no part of any
# copyrighted material may be reproduced, modified, translated,
# distributed, published, or transmitted by any means, electronic or
# mechanical, for any purpose, without the prior written consent of Isilon
# Systems. 
#  
# Isilon and Isilon Systems are registered trademarks of Isilon Systems,
# Inc.  Legion is a trademark of Isilon Systems, Inc.  All other
# trademarks and registered trademarks are the property of their
# respective holders.

THROTTLE=1

echo '= uname -a ===================='
uname -a
uname -v
echo '= uptime ===================='
uptime
echo '= sysctls ===================='
sysctl -T $THROTTLE efs
echo 'efs.bam.av.current_work_items:'
sysctl -T $THROTTLE -D efs.bam.av.current_work_items
echo 'efs.bam.av.current_nfs_requests:'
sysctl -T $THROTTLE -D efs.bam.av.current_nfs_requests
sysctl -T $THROTTLE isi
sysctl -T $THROTTLE kern.proc.all_stacks
sysctl -T $THROTTLE vm
sysctl -T $THROTTLE vfs.nfs
sysctl -T $THROTTLE vfs.nfsrv
sysctl -T $THROTTLE hw.disk_event
echo '= ps axlwww ===================='
ps axlwww
echo '= array.xml ========='
cat /etc/ifs/array.xml
echo '= netstat -m ===================='
netstat -m
echo '= ifconfig ===================='
ifconfig
echo '= pings ===================='
isi_net_info
echo '= IB info ===================='
/usr/bin/isi_hwtools/isi_hal_predicate hasInfiniband > /dev/null 2>&1
has_ib=$?
if [ ${has_ib} -eq 1 ]; then
	isi_ib_bug_info
else
	echo '  (infiniband not supported)'
fi
