infiniband-diags: mark duplicate/lower performing scripts as deprecated.
PATCH 1/2 infiniband-diags: mark duplicate/lower performing scripts as deprecated.
I am moving forward with this to get the man pages cleaned up. I don't want to work on man pages for tools I am deprecating.
Inform user of alternatives if available.
Signed-off-by Ira Weiny <[email protected]>
--- man/infiniband-diags.8.in | 2 +- scripts/ibcheckerrors.in | 7 ++++--- scripts/ibcheckerrs.in | 8 ++++++++ scripts/ibchecknet.in | 9 +++++---- scripts/ibchecknode.in | 8 ++++++++ scripts/ibcheckport.in | 8 ++++++++ scripts/ibcheckportstate.in | 8 ++++++++ scripts/ibcheckportwidth.in | 8 ++++++++ scripts/ibcheckstate.in | 6 ++++-- scripts/ibcheckwidth.in | 5 +++-- scripts/ibclearcounters.in | 1 + scripts/ibclearerrors.in | 1 + scripts/ibdatacounters.in | 8 +++++--- scripts/ibdatacounts.in | 8 ++++++++ scripts/ibdiscover.pl | 9 +++++++++ scripts/iblinkinfo.pl.in | 4 +++- scripts/ibprintca.pl | 2 ++ scripts/ibprintrt.pl | 2 ++ scripts/ibprintswitch.pl | 2 ++ scripts/ibqueryerrors.pl.in | 5 +++-- 20 files changed, 93 insertions(+), 18 deletions(-)
man/infiniband-diags.8.in +1 -1
@@ -183,7 +183,7 @@ perform the lookup. .TP \fBLocal HCA info\fR - See: ibstat, ibstatus, + See: ibstat, ibstatus .TP \fBConnectivity check\fR
scripts/ibcheckerrors.in +4 -3
@@ -80,12 +80,12 @@ BEGIN { } function check_node(lid, port) { - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ print "\n# " ntype ": nodeguid 0x" nodeguid " failed" return 1; } - if (system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + if (system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) return 2; return 0; }
@@ -115,7 +115,7 @@ function check_node(lid, port) if (check_node(lid, port) == 2) pcnterr++; } else if (err && - system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) pcnterr++; }
@@ -125,6 +125,7 @@ function check_node(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors\"" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d ports have errors beyond threshold\n", nports, pcnterr exit (ne + pcnterr)
scripts/ibcheckerrs.in +8 -0
@@ -67,6 +67,7 @@ bw="" verbose="" brief="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -96,6 +97,9 @@ while [ "$1" ]; do show_thresholds exit 0 ;; + -S) + suppress_deprecated="yes" + ;; -P | -C | -t | -timeout) case $2 in -*)
@@ -135,6 +139,10 @@ else portname=$2 fi +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors\"\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibchecknet.in +5 -4
@@ -74,12 +74,12 @@ BEGIN { } function check_node(lid, port) { - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ print "\n# " ntype ": nodeguid 0x" nodeguid " failed" return 1; } - if (system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + if (system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) return 2; return 0; }
@@ -109,9 +109,9 @@ function check_node(lid, port) if (check_node(lid, port) == 2) pcnterr++; } else if (err && - system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) pcnterr++; - if (system("'$IBPATH'/ibcheckport'"$ca_info"' '$gflags' '$verbose' " lid " " port)) { + if (system("'$IBPATH'/ibcheckport -S '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { if (!'$v' && oldlid != lid) { print "# Checked " ntype ": nodeguid 0x" nodeguid " with failure" oldlid = lid
@@ -126,6 +126,7 @@ function check_node(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors -f\"" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d bad ports found\n", nports, pe printf "## %d ports have errors beyond threshold\n", pcnterr
scripts/ibchecknode.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -56,6 +57,9 @@ while [ "$1" ]; do ca_info="$ca_info $1 $2" shift ;; + -S) + suppress_deprecated="yes" + ;; -*) usage ;;
@@ -70,6 +74,10 @@ if [ -z "$1" ]; then usage fi +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated; Please use \"smpquery nodeinfo\"\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckport.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -56,6 +57,9 @@ while [ "$1" ]; do ca_info="$ca_info $1 $2" shift ;; + -S) + suppress_deprecated="yes" + ;; -*) usage ;;
@@ -72,6 +76,10 @@ fi portnum=$2 +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckportstate.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -44,6 +45,9 @@ while [ "$1" ]; do -v) verbose=yes ;; + -S) + suppress_deprecated="yes" + ;; -P | -C | -t | -timeout) case $2 in -*)
@@ -72,6 +76,10 @@ fi portnum=$2 +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckportwidth.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -44,6 +45,9 @@ while [ "$1" ]; do -v) verbose=yes ;; + -S) + suppress_deprecated="yes" + ;; -P | -C | -t | -timeout) case $2 in -*)
@@ -72,6 +76,10 @@ fi portnum=$2 +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckstate.in +4 -2
@@ -77,13 +77,14 @@ BEGIN { function check_node(lid) { nodechecked=1 - if (system("'$IBPATH'/ibchecknode'"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ badnode=1 return } } + /^Ca/ || /^Switch/ || /^Rt/ { nnodes++ ntype=$1; nodeguid=substr($3, 4, 16); ports=$2
@@ -113,7 +114,7 @@ function check_node(lid) } sub("\\(.*\\)", "", port) gsub("[\\[\\]]", "", port) - if (system("'$IBPATH'/ibcheckportstate'"$ca_info"' '$gflags' '$verbose' " lid " " port)) { + if (system("'$IBPATH'/ibcheckportstate -S '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { if (!'$v' && oldlid != lid) { print "# Checked " ntype ": nodeguid 0x" nodeguid " with failure" oldlid = lid
@@ -128,6 +129,7 @@ function check_node(lid) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated\n" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d ports with bad state found\n", nports, pe }
scripts/ibcheckwidth.in +3 -2
@@ -77,7 +77,7 @@ BEGIN { function check_node(lid) { nodechecked=1 - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ badnode=1 return
@@ -113,7 +113,7 @@ function check_node(lid) } sub("\\(.*\\)", "", port) gsub("[\\[\\]]", "", port) - if (system("'$IBPATH'/ibcheckportwidth '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { + if (system("'$IBPATH'/ibcheckportwidth -S '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { if (!'$v' && oldlid != lid) { print "# Checked " ntype ": nodeguid 0x" nodeguid " with failure" oldlid = lid
@@ -128,6 +128,7 @@ function check_node(lid) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated\n" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d ports with 1x width in error found\n", nports, pe }
scripts/ibclearcounters.in +1 -0
@@ -101,6 +101,7 @@ function clear_port_counters(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors -K\"\n" printf "\n## Summary: %d nodes cleared %d errors\n", nnodes, nodeerr } '
scripts/ibclearerrors.in +1 -0
@@ -105,6 +105,7 @@ function clear_errors(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors -k\"\n" printf "\n## Summary: %d nodes cleared %d errors\n", nnodes, nodeerr } '
scripts/ibdatacounters.in +5 -3
@@ -80,12 +80,12 @@ BEGIN { } function check_node(lid, port) { - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ print "\n# " ntype ": nodeguid 0x" nodeguid " failed" return 1; } - return system("'$IBPATH'/ibdatacounts '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); + return system("'$IBPATH'/ibdatacounts -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); } /^Ca/ || /^Switch/ || /^Rt/ {
@@ -112,7 +112,7 @@ function check_node(lid, port) lid = substr(lid, 1, index(lid, " ") - 1) check_node(lid, port) } else if (err) - system("'$IBPATH'/ibdatacounts '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); + system("'$IBPATH'/ibdatacounts -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); } /^ib/ {print $0; next}
@@ -121,9 +121,11 @@ function check_node(lid, port) /iberror:/ {print $0} END { + printf "*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors --counters\n" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked\n", nports exit (ne ) } ' + exit $rv
scripts/ibdatacounts.in +8 -0
@@ -34,6 +34,7 @@ bw="" verbose="" brief="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -63,6 +64,9 @@ while [ "$1" ]; do ca_info="$ca_info $1 $2" shift ;; + -S) + suppress_deprecated="yes" + ;; -*) usage ;;
@@ -108,6 +112,10 @@ fi nodename=`$IBPATH/smpquery $ca_info nodedesc $lid | sed -e "s/^Node Description:\.*\(.*\)/\1/"` +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors --counters\"\n\n" 1>&2 +fi + text="`eval $IBPATH/perfquery $ca_info $lid $portnum`" rv=$? if echo "$text" | awk -v mono=$bw -v brief=$brief -F '[.:]*' '
scripts/ibdiscover.pl +9 -0
@@ -1,5 +1,9 @@ #!/usr/bin/perl +printf (STDERR "*** WARNING ***; this command is deprecated;\n"); +printf (STDERR " see ibnetdiscover cache features\n"); +printf (STDERR " and/or iblinkinfo \"check\" features\n\n"); + # # Read mapfile #
@@ -84,3 +88,8 @@ foreach $el (keys %topo) { $val{$lg}, $val{$rg}); } } + +printf (STDERR "*** WARNING ***; this command is deprecated;\n"); +printf (STDERR " see ibnetdiscover cache features\n"); +printf (STDERR " and/or iblinkinfo \"check\" features\n\n"); +
scripts/iblinkinfo.pl.in +3 -1
@@ -37,4 +37,6 @@ # this is now just a wrapper for the C based utility $str = join " ",@ARGV; -exec "@IBSCRIPTPATH@/iblinkinfo $str"; +system "@IBSCRIPTPATH@/iblinkinfo $str"; +printf (STDERR "\n*** WARNING ***: this command has been replaced by iblinkinfo\n\n"); +
scripts/ibprintca.pl +2 -0
@@ -40,6 +40,8 @@ use strict; use Getopt::Std; use IBswcountlimits; +printf (STDERR "*** WARNING ***: this command is deprecated; Please use \"ibhosts\"\n\n"); + # ========================================================================= # sub usage_and_exit
scripts/ibprintrt.pl +2 -0
@@ -40,6 +40,8 @@ use strict; use Getopt::Std; use IBswcountlimits; +printf (STDERR "*** WARNING ***: this command is deprecated; Please use \"ibrouters\"\n\n"); + # ========================================================================= # sub usage_and_exit
scripts/ibprintswitch.pl +2 -0
@@ -40,6 +40,8 @@ use strict; use Getopt::Std; use IBswcountlimits; +printf (STDERR "*** WARNING ***: this command is deprecated; Please use \"ibswitches\"\n\n"); + # ========================================================================= # sub usage_and_exit
scripts/ibqueryerrors.pl.in +3 -2
@@ -34,7 +34,8 @@ # SOFTWARE. # - # this is now just a wrapper for the C based utility $str = join " ",@ARGV; -exec "@IBSCRIPTPATH@/ibqueryerrors $str"; +system "@IBSCRIPTPATH@/ibqueryerrors $str"; +printf (STDERR "\n*** WARNING ***: this command has been replaced by ibqueryerrors\n\n"); +
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 1/2 infiniband-diags: mark duplicate/lower performing scripts as deprecated.
In reply to a message not in the archiveInform user of alternatives if available.
Changes since V1:
Add set_nodedesc.sh
Signed-off-by Ira Weiny <[email protected]>
--- man/infiniband-diags.8.in | 2 +- scripts/ibcheckerrors.in | 7 ++++--- scripts/ibcheckerrs.in | 8 ++++++++ scripts/ibchecknet.in | 9 +++++---- scripts/ibchecknode.in | 8 ++++++++ scripts/ibcheckport.in | 8 ++++++++ scripts/ibcheckportstate.in | 8 ++++++++ scripts/ibcheckportwidth.in | 8 ++++++++ scripts/ibcheckstate.in | 6 ++++-- scripts/ibcheckwidth.in | 5 +++-- scripts/ibclearcounters.in | 1 + scripts/ibclearerrors.in | 1 + scripts/ibdatacounters.in | 8 +++++--- scripts/ibdatacounts.in | 8 ++++++++ scripts/ibdiscover.pl | 9 +++++++++ scripts/iblinkinfo.pl.in | 4 +++- scripts/ibprintca.pl | 2 ++ scripts/ibprintrt.pl | 2 ++ scripts/ibprintswitch.pl | 2 ++ scripts/ibqueryerrors.pl.in | 5 +++-- scripts/set_nodedesc.sh | 3 +++ 21 files changed, 96 insertions(+), 18 deletions(-)
man/infiniband-diags.8.in +1 -1
@@ -183,7 +183,7 @@ perform the lookup. .TP \fBLocal HCA info\fR - See: ibstat, ibstatus, + See: ibstat, ibstatus .TP \fBConnectivity check\fR
scripts/ibcheckerrors.in +4 -3
@@ -80,12 +80,12 @@ BEGIN { } function check_node(lid, port) { - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ print "\n# " ntype ": nodeguid 0x" nodeguid " failed" return 1; } - if (system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + if (system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) return 2; return 0; }
@@ -115,7 +115,7 @@ function check_node(lid, port) if (check_node(lid, port) == 2) pcnterr++; } else if (err && - system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) pcnterr++; }
@@ -125,6 +125,7 @@ function check_node(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors\"" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d ports have errors beyond threshold\n", nports, pcnterr exit (ne + pcnterr)
scripts/ibcheckerrs.in +8 -0
@@ -67,6 +67,7 @@ bw="" verbose="" brief="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -96,6 +97,9 @@ while [ "$1" ]; do show_thresholds exit 0 ;; + -S) + suppress_deprecated="yes" + ;; -P | -C | -t | -timeout) case $2 in -*)
@@ -135,6 +139,10 @@ else portname=$2 fi +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors\"\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibchecknet.in +5 -4
@@ -74,12 +74,12 @@ BEGIN { } function check_node(lid, port) { - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ print "\n# " ntype ": nodeguid 0x" nodeguid " failed" return 1; } - if (system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + if (system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) return 2; return 0; }
@@ -109,9 +109,9 @@ function check_node(lid, port) if (check_node(lid, port) == 2) pcnterr++; } else if (err && - system("'$IBPATH'/ibcheckerrs '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) + system("'$IBPATH'/ibcheckerrs -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port)) pcnterr++; - if (system("'$IBPATH'/ibcheckport'"$ca_info"' '$gflags' '$verbose' " lid " " port)) { + if (system("'$IBPATH'/ibcheckport -S '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { if (!'$v' && oldlid != lid) { print "# Checked " ntype ": nodeguid 0x" nodeguid " with failure" oldlid = lid
@@ -126,6 +126,7 @@ function check_node(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors -f\"" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d bad ports found\n", nports, pe printf "## %d ports have errors beyond threshold\n", pcnterr
scripts/ibchecknode.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -56,6 +57,9 @@ while [ "$1" ]; do ca_info="$ca_info $1 $2" shift ;; + -S) + suppress_deprecated="yes" + ;; -*) usage ;;
@@ -70,6 +74,10 @@ if [ -z "$1" ]; then usage fi +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated; Please use \"smpquery nodeinfo\"\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckport.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -56,6 +57,9 @@ while [ "$1" ]; do ca_info="$ca_info $1 $2" shift ;; + -S) + suppress_deprecated="yes" + ;; -*) usage ;;
@@ -72,6 +76,10 @@ fi portnum=$2 +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckportstate.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -44,6 +45,9 @@ while [ "$1" ]; do -v) verbose=yes ;; + -S) + suppress_deprecated="yes" + ;; -P | -C | -t | -timeout) case $2 in -*)
@@ -72,6 +76,10 @@ fi portnum=$2 +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckportwidth.in +8 -0
@@ -32,6 +32,7 @@ guid_addr="" bw="" verbose="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -44,6 +45,9 @@ while [ "$1" ]; do -v) verbose=yes ;; + -S) + suppress_deprecated="yes" + ;; -P | -C | -t | -timeout) case $2 in -*)
@@ -72,6 +76,10 @@ fi portnum=$2 +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated\n\n" 1>&2 +fi + if [ "$guid_addr" ]; then if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then echo -n "guid $1 address resolution: "
scripts/ibcheckstate.in +4 -2
@@ -77,13 +77,14 @@ BEGIN { function check_node(lid) { nodechecked=1 - if (system("'$IBPATH'/ibchecknode'"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ badnode=1 return } } + /^Ca/ || /^Switch/ || /^Rt/ { nnodes++ ntype=$1; nodeguid=substr($3, 4, 16); ports=$2
@@ -113,7 +114,7 @@ function check_node(lid) } sub("\\(.*\\)", "", port) gsub("[\\[\\]]", "", port) - if (system("'$IBPATH'/ibcheckportstate'"$ca_info"' '$gflags' '$verbose' " lid " " port)) { + if (system("'$IBPATH'/ibcheckportstate -S '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { if (!'$v' && oldlid != lid) { print "# Checked " ntype ": nodeguid 0x" nodeguid " with failure" oldlid = lid
@@ -128,6 +129,7 @@ function check_node(lid) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated\n" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d ports with bad state found\n", nports, pe }
scripts/ibcheckwidth.in +3 -2
@@ -77,7 +77,7 @@ BEGIN { function check_node(lid) { nodechecked=1 - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ badnode=1 return
@@ -113,7 +113,7 @@ function check_node(lid) } sub("\\(.*\\)", "", port) gsub("[\\[\\]]", "", port) - if (system("'$IBPATH'/ibcheckportwidth '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { + if (system("'$IBPATH'/ibcheckportwidth -S '"$ca_info"' '$gflags' '$verbose' " lid " " port)) { if (!'$v' && oldlid != lid) { print "# Checked " ntype ": nodeguid 0x" nodeguid " with failure" oldlid = lid
@@ -128,6 +128,7 @@ function check_node(lid) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated\n" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked, %d ports with 1x width in error found\n", nports, pe }
scripts/ibclearcounters.in +1 -0
@@ -101,6 +101,7 @@ function clear_port_counters(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors -K\"\n" printf "\n## Summary: %d nodes cleared %d errors\n", nnodes, nodeerr } '
scripts/ibclearerrors.in +1 -0
@@ -105,6 +105,7 @@ function clear_errors(lid, port) /iberror:/ {print $0} END { + printf "\n*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors -k\"\n" printf "\n## Summary: %d nodes cleared %d errors\n", nnodes, nodeerr } '
scripts/ibdatacounters.in +5 -3
@@ -80,12 +80,12 @@ BEGIN { } function check_node(lid, port) { - if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags' '$verbose' " lid)) { + if (system("'$IBPATH'/ibchecknode -S '"$ca_info"' '$gflags' '$verbose' " lid)) { ne++ print "\n# " ntype ": nodeguid 0x" nodeguid " failed" return 1; } - return system("'$IBPATH'/ibdatacounts '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); + return system("'$IBPATH'/ibdatacounts -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); } /^Ca/ || /^Switch/ || /^Rt/ {
@@ -112,7 +112,7 @@ function check_node(lid, port) lid = substr(lid, 1, index(lid, " ") - 1) check_node(lid, port) } else if (err) - system("'$IBPATH'/ibdatacounts '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); + system("'$IBPATH'/ibdatacounts -S '"$ca_info"' '$gflags' '$verbose' '$brief' " lid " " port); } /^ib/ {print $0; next}
@@ -121,9 +121,11 @@ function check_node(lid, port) /iberror:/ {print $0} END { + printf "*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors --counters\n" printf "\n## Summary: %d nodes checked, %d bad nodes found\n", nnodes, ne printf "## %d ports checked\n", nports exit (ne ) } ' + exit $rv
scripts/ibdatacounts.in +8 -0
@@ -34,6 +34,7 @@ bw="" verbose="" brief="" ca_info="" +suppress_deprecated="no" while [ "$1" ]; do case $1 in
@@ -63,6 +64,9 @@ while [ "$1" ]; do ca_info="$ca_info $1 $2" shift ;; + -S) + suppress_deprecated="yes" + ;; -*) usage ;;
@@ -108,6 +112,10 @@ fi nodename=`$IBPATH/smpquery $ca_info nodedesc $lid | sed -e "s/^Node Description:\.*\(.*\)/\1/"` +if [ "$suppress_deprecated" = "no" ]; then +echo "*** WARNING ***: this command is deprecated; Please use \"ibqueryerrors --counters\"\n\n" 1>&2 +fi + text="`eval $IBPATH/perfquery $ca_info $lid $portnum`" rv=$? if echo "$text" | awk -v mono=$bw -v brief=$brief -F '[.:]*' '
scripts/ibdiscover.pl +9 -0
@@ -1,5 +1,9 @@ #!/usr/bin/perl +printf (STDERR "*** WARNING ***; this command is deprecated;\n"); +printf (STDERR " see ibnetdiscover cache features\n"); +printf (STDERR " and/or iblinkinfo \"check\" features\n\n"); + # # Read mapfile #
@@ -84,3 +88,8 @@ foreach $el (keys %topo) { $val{$lg}, $val{$rg}); } } + +printf (STDERR "*** WARNING ***; this command is deprecated;\n"); +printf (STDERR " see ibnetdiscover cache features\n"); +printf (STDERR " and/or iblinkinfo \"check\" features\n\n"); +
scripts/iblinkinfo.pl.in +3 -1
@@ -37,4 +37,6 @@ # this is now just a wrapper for the C based utility $str = join " ",@ARGV; -exec "@IBSCRIPTPATH@/iblinkinfo $str"; +system "@IBSCRIPTPATH@/iblinkinfo $str"; +printf (STDERR "\n*** WARNING ***: this command has been replaced by iblinkinfo\n\n"); +
scripts/ibprintca.pl +2 -0
@@ -40,6 +40,8 @@ use strict; use Getopt::Std; use IBswcountlimits; +printf (STDERR "*** WARNING ***: this command is deprecated; Please use \"ibhosts\"\n\n"); + # ========================================================================= # sub usage_and_exit
scripts/ibprintrt.pl +2 -0
@@ -40,6 +40,8 @@ use strict; use Getopt::Std; use IBswcountlimits; +printf (STDERR "*** WARNING ***: this command is deprecated; Please use \"ibrouters\"\n\n"); + # ========================================================================= # sub usage_and_exit
scripts/ibprintswitch.pl +2 -0
@@ -40,6 +40,8 @@ use strict; use Getopt::Std; use IBswcountlimits; +printf (STDERR "*** WARNING ***: this command is deprecated; Please use \"ibswitches\"\n\n"); + # ========================================================================= # sub usage_and_exit
scripts/ibqueryerrors.pl.in +3 -2
@@ -34,7 +34,8 @@ # SOFTWARE. # - # this is now just a wrapper for the C based utility $str = join " ",@ARGV; -exec "@IBSCRIPTPATH@/ibqueryerrors $str"; +system "@IBSCRIPTPATH@/ibqueryerrors $str"; +printf (STDERR "\n*** WARNING ***: this command has been replaced by ibqueryerrors\n\n"); +
scripts/set_nodedesc.sh +3 -0
@@ -7,6 +7,9 @@ fi ib_sysfs="/sys/class/infiniband" newname="$HOSTNAME" +echo "" +echo "*** WARNING ***: this command is deprecated." +echo "" function usage {
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html