From 372a951dee5a5dce3bd0124681003b345e3f471d Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 1 Mar 2013 13:50:43 +0000 Subject: [PATCH] adding this new tool from Brian Finley. He put it in trunk git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15340 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/tools/test_hca_state | 161 ++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100755 xCAT-server/share/xcat/tools/test_hca_state diff --git a/xCAT-server/share/xcat/tools/test_hca_state b/xCAT-server/share/xcat/tools/test_hca_state new file mode 100755 index 000000000..5fbe813b5 --- /dev/null +++ b/xCAT-server/share/xcat/tools/test_hca_state @@ -0,0 +1,161 @@ +#!/bin/bash + +# +# 2012.08.19 Brian Elliott Finley +# - created +# 2013.02.17 Brian Elliott Finley +# - added --help output +# + +# +# As per Nate Rini : +# +# The following (Red Hat) rpms include the version of pciutils (aka +# lspci) that can read gen3 correctly. +# +# pciutils-3.1.10-2.el6.x86_64.rpmĀ  +# pciutils-libs-3.1.10-2.el6.x86_64.rpm +# +# This may impact the "PCI:" speed test performed by this script. +# + +NR=$1 + +offer_help() { + + PROGNAME=$(basename $0) + + # At some point, source a file for this info for the whole suite + VERSION=3.2.27 + + cat <