Imported Upstream version 2.9.8
Jörg Frings-Fürst
8 years ago
Binary diff not shown
4110 | 4110 | ihpm (ipmiutil hpm) ver 1.09 |
4111 | 4111 | idiscover (ipmiutil discover) ver 1.9 |
4112 | 4112 | ipmi_port (ipmi_port) ver 1.4 |
4113 | ||
4114 | 11/20/2015 ARCress ipmiutil-2.9.8beta changes | |
4115 | util/ipmidir.c - do not close(iofd) in BSD if <0 (fedora#138819) | |
4116 | lib/Makefile.am - fix if no lanplus and openssl missing (Baruch Siach) | |
4117 | configure.ac - fix stack protection check for uClibc (Baruch Siach), | |
4118 | configure.ac - For HP-UX, clean up GNU .NOEXPORT, | |
4119 | Differentiate between FreeBSD 7 and later versions | |
4120 | util/ipmimv.c - fix structure packing for FreeBSD 8 & 9 | |
4121 | scripts/ipmi_port.service - if $IPORTMAP not there in setup, handle cleanly | |
4122 | ||
4123 | 12/30/2015 ARCress ipmiutil-2.9.8 changes | |
4124 | util/isensor.c - show an error message for malformed SDR record | |
4125 | util/ipmicmd.c - show vendor/prod debug message with getdeviceid | |
4126 | util/ifru.c - fix all %f expects double warnings (Felix Janda) | |
4127 | util/imb_api.h - remove extra WCHAR defines, use config.h (Felix Janda) | |
4128 | configure.ac - add AC_CHECK_TYPES(wchar_t) (Felix Janda) | |
4129 | ipmiutil-2.9.8 contains: | |
4130 | ipmiutil (ipmiutil) ver 2.98 | |
4131 | ...(various subcommands) ver 2.98 | |
4132 | ifwum (ipmiutil fwum) ver 1.3 | |
4133 | ihpm (ipmiutil hpm) ver 1.09 | |
4134 | iekanalyzer (ipmiutil ekanalyzer) ver 1.00 | |
4135 | idiscover (ipmiutil discover) ver 1.10 | |
4136 | ipmi_port (ipmi_port) ver 1.4 | |
4137 | ||
4138 |
77 | 77 | /* Define to 1 if you have the `vprintf' function. */ |
78 | 78 | #undef HAVE_VPRINTF |
79 | 79 | |
80 | /* Define to 1 if the system has the type `wchar_t'. */ | |
81 | #undef HAVE_WCHAR_T | |
82 | ||
80 | 83 | /* Define to the sub-directory in which libtool stores uninstalled libraries. |
81 | 84 | */ |
82 | 85 | #undef LT_OBJDIR |
77 | 77 | /* Define to 1 if you have the `vprintf' function. */ |
78 | 78 | #undef HAVE_VPRINTF |
79 | 79 | |
80 | /* Define to 1 if the system has the type `wchar_t'. */ | |
81 | #undef HAVE_WCHAR_T | |
82 | ||
80 | 83 | /* Name of package */ |
81 | 84 | #undef PACKAGE |
82 | 85 |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.63 for ipmiutil 2.9.7. | |
2 | # Generated by GNU Autoconf 2.63 for ipmiutil 2.9.8. | |
3 | 3 | # |
4 | 4 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5 | 5 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
742 | 742 | # Identity of this package. |
743 | 743 | PACKAGE_NAME='ipmiutil' |
744 | 744 | PACKAGE_TARNAME='ipmiutil' |
745 | PACKAGE_VERSION='2.9.7' | |
746 | PACKAGE_STRING='ipmiutil 2.9.7' | |
745 | PACKAGE_VERSION='2.9.8' | |
746 | PACKAGE_STRING='ipmiutil 2.9.8' | |
747 | 747 | PACKAGE_BUGREPORT='' |
748 | 748 | |
749 | 749 | ac_unique_file="util/ipmiutil.c" |
1501 | 1501 | # Omit some internal or obsolete options to make the list less imposing. |
1502 | 1502 | # This message is too long to be a string in the A/UX 3.1 sh. |
1503 | 1503 | cat <<_ACEOF |
1504 | \`configure' configures ipmiutil 2.9.7 to adapt to many kinds of systems. | |
1504 | \`configure' configures ipmiutil 2.9.8 to adapt to many kinds of systems. | |
1505 | 1505 | |
1506 | 1506 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1507 | 1507 | |
1571 | 1571 | |
1572 | 1572 | if test -n "$ac_init_help"; then |
1573 | 1573 | case $ac_init_help in |
1574 | short | recursive ) echo "Configuration of ipmiutil 2.9.7:";; | |
1574 | short | recursive ) echo "Configuration of ipmiutil 2.9.8:";; | |
1575 | 1575 | esac |
1576 | 1576 | cat <<\_ACEOF |
1577 | 1577 | |
1680 | 1680 | test -n "$ac_init_help" && exit $ac_status |
1681 | 1681 | if $ac_init_version; then |
1682 | 1682 | cat <<\_ACEOF |
1683 | ipmiutil configure 2.9.7 | |
1683 | ipmiutil configure 2.9.8 | |
1684 | 1684 | generated by GNU Autoconf 2.63 |
1685 | 1685 | |
1686 | 1686 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1694 | 1694 | This file contains any messages produced by compilers while |
1695 | 1695 | running configure, to aid debugging if configure makes a mistake. |
1696 | 1696 | |
1697 | It was created by ipmiutil $as_me 2.9.7, which was | |
1697 | It was created by ipmiutil $as_me 2.9.8, which was | |
1698 | 1698 | generated by GNU Autoconf 2.63. Invocation command line was |
1699 | 1699 | |
1700 | 1700 | $ $0 $@ |
2548 | 2548 | |
2549 | 2549 | # Define the identity of the package. |
2550 | 2550 | PACKAGE='ipmiutil' |
2551 | VERSION='2.9.7' | |
2551 | VERSION='2.9.8' | |
2552 | 2552 | |
2553 | 2553 | |
2554 | 2554 | cat >>confdefs.h <<_ACEOF |
4995 | 4995 | |
4996 | 4996 | fi |
4997 | 4997 | |
4998 | { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 | |
4999 | $as_echo_n "checking for wchar_t... " >&6; } | |
5000 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
5001 | $as_echo_n "(cached) " >&6 | |
5002 | else | |
5003 | ac_cv_type_wchar_t=no | |
5004 | cat >conftest.$ac_ext <<_ACEOF | |
5005 | /* confdefs.h. */ | |
5006 | _ACEOF | |
5007 | cat confdefs.h >>conftest.$ac_ext | |
5008 | cat >>conftest.$ac_ext <<_ACEOF | |
5009 | /* end confdefs.h. */ | |
5010 | $ac_includes_default | |
5011 | int | |
5012 | main () | |
5013 | { | |
5014 | if (sizeof (wchar_t)) | |
5015 | return 0; | |
5016 | ; | |
5017 | return 0; | |
5018 | } | |
5019 | _ACEOF | |
5020 | rm -f conftest.$ac_objext | |
5021 | if { (ac_try="$ac_compile" | |
5022 | case "(($ac_try" in | |
5023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5024 | *) ac_try_echo=$ac_try;; | |
5025 | esac | |
5026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5027 | $as_echo "$ac_try_echo") >&5 | |
5028 | (eval "$ac_compile") 2>conftest.er1 | |
5029 | ac_status=$? | |
5030 | grep -v '^ *+' conftest.er1 >conftest.err | |
5031 | rm -f conftest.er1 | |
5032 | cat conftest.err >&5 | |
5033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5034 | (exit $ac_status); } && { | |
5035 | test -z "$ac_c_werror_flag" || | |
5036 | test ! -s conftest.err | |
5037 | } && test -s conftest.$ac_objext; then | |
5038 | cat >conftest.$ac_ext <<_ACEOF | |
5039 | /* confdefs.h. */ | |
5040 | _ACEOF | |
5041 | cat confdefs.h >>conftest.$ac_ext | |
5042 | cat >>conftest.$ac_ext <<_ACEOF | |
5043 | /* end confdefs.h. */ | |
5044 | $ac_includes_default | |
5045 | int | |
5046 | main () | |
5047 | { | |
5048 | if (sizeof ((wchar_t))) | |
5049 | return 0; | |
5050 | ; | |
5051 | return 0; | |
5052 | } | |
5053 | _ACEOF | |
5054 | rm -f conftest.$ac_objext | |
5055 | if { (ac_try="$ac_compile" | |
5056 | case "(($ac_try" in | |
5057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5058 | *) ac_try_echo=$ac_try;; | |
5059 | esac | |
5060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5061 | $as_echo "$ac_try_echo") >&5 | |
5062 | (eval "$ac_compile") 2>conftest.er1 | |
5063 | ac_status=$? | |
5064 | grep -v '^ *+' conftest.er1 >conftest.err | |
5065 | rm -f conftest.er1 | |
5066 | cat conftest.err >&5 | |
5067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5068 | (exit $ac_status); } && { | |
5069 | test -z "$ac_c_werror_flag" || | |
5070 | test ! -s conftest.err | |
5071 | } && test -s conftest.$ac_objext; then | |
5072 | : | |
5073 | else | |
5074 | $as_echo "$as_me: failed program was:" >&5 | |
5075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5076 | ||
5077 | ac_cv_type_wchar_t=yes | |
5078 | fi | |
5079 | ||
5080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5081 | else | |
5082 | $as_echo "$as_me: failed program was:" >&5 | |
5083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5084 | ||
5085 | ||
5086 | fi | |
5087 | ||
5088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5089 | fi | |
5090 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
5091 | $as_echo "$ac_cv_type_wchar_t" >&6; } | |
5092 | if test "x$ac_cv_type_wchar_t" = x""yes; then | |
5093 | ||
5094 | cat >>confdefs.h <<_ACEOF | |
5095 | #define HAVE_WCHAR_T 1 | |
5096 | _ACEOF | |
5097 | ||
5098 | ||
5099 | fi | |
5100 | ||
4998 | 5101 | |
4999 | 5102 | if test $ac_cv_c_compiler_gnu = yes; then |
5000 | 5103 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
6530 | 6633 | else |
6531 | 6634 | lt_cv_nm_interface="BSD nm" |
6532 | 6635 | echo "int some_variable = 0;" > conftest.$ac_ext |
6533 | (eval echo "\"\$as_me:6534: $ac_compile\"" >&5) | |
6636 | (eval echo "\"\$as_me:6637: $ac_compile\"" >&5) | |
6534 | 6637 | (eval "$ac_compile" 2>conftest.err) |
6535 | 6638 | cat conftest.err >&5 |
6536 | (eval echo "\"\$as_me:6537: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6639 | (eval echo "\"\$as_me:6640: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6537 | 6640 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6538 | 6641 | cat conftest.err >&5 |
6539 | (eval echo "\"\$as_me:6540: output\"" >&5) | |
6642 | (eval echo "\"\$as_me:6643: output\"" >&5) | |
6540 | 6643 | cat conftest.out >&5 |
6541 | 6644 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
6542 | 6645 | lt_cv_nm_interface="MS dumpbin" |
7730 | 7833 | ;; |
7731 | 7834 | *-*-irix6*) |
7732 | 7835 | # Find out which ABI we are using. |
7733 | echo '#line 7734 "configure"' > conftest.$ac_ext | |
7836 | echo '#line 7837 "configure"' > conftest.$ac_ext | |
7734 | 7837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7735 | 7838 | (eval $ac_compile) 2>&5 |
7736 | 7839 | ac_status=$? |
9095 | 9198 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9096 | 9199 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9097 | 9200 | -e 's:$: $lt_compiler_flag:'` |
9098 | (eval echo "\"\$as_me:9099: $lt_compile\"" >&5) | |
9201 | (eval echo "\"\$as_me:9202: $lt_compile\"" >&5) | |
9099 | 9202 | (eval "$lt_compile" 2>conftest.err) |
9100 | 9203 | ac_status=$? |
9101 | 9204 | cat conftest.err >&5 |
9102 | echo "$as_me:9103: \$? = $ac_status" >&5 | |
9205 | echo "$as_me:9206: \$? = $ac_status" >&5 | |
9103 | 9206 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9104 | 9207 | # The compiler can only warn and ignore the option if not recognized |
9105 | 9208 | # So say no if there are warnings other than the usual output. |
9434 | 9537 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9435 | 9538 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9436 | 9539 | -e 's:$: $lt_compiler_flag:'` |
9437 | (eval echo "\"\$as_me:9438: $lt_compile\"" >&5) | |
9540 | (eval echo "\"\$as_me:9541: $lt_compile\"" >&5) | |
9438 | 9541 | (eval "$lt_compile" 2>conftest.err) |
9439 | 9542 | ac_status=$? |
9440 | 9543 | cat conftest.err >&5 |
9441 | echo "$as_me:9442: \$? = $ac_status" >&5 | |
9544 | echo "$as_me:9545: \$? = $ac_status" >&5 | |
9442 | 9545 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9443 | 9546 | # The compiler can only warn and ignore the option if not recognized |
9444 | 9547 | # So say no if there are warnings other than the usual output. |
9539 | 9642 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9540 | 9643 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9541 | 9644 | -e 's:$: $lt_compiler_flag:'` |
9542 | (eval echo "\"\$as_me:9543: $lt_compile\"" >&5) | |
9645 | (eval echo "\"\$as_me:9646: $lt_compile\"" >&5) | |
9543 | 9646 | (eval "$lt_compile" 2>out/conftest.err) |
9544 | 9647 | ac_status=$? |
9545 | 9648 | cat out/conftest.err >&5 |
9546 | echo "$as_me:9547: \$? = $ac_status" >&5 | |
9649 | echo "$as_me:9650: \$? = $ac_status" >&5 | |
9547 | 9650 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9548 | 9651 | then |
9549 | 9652 | # The compiler can only warn and ignore the option if not recognized |
9594 | 9697 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9595 | 9698 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9596 | 9699 | -e 's:$: $lt_compiler_flag:'` |
9597 | (eval echo "\"\$as_me:9598: $lt_compile\"" >&5) | |
9700 | (eval echo "\"\$as_me:9701: $lt_compile\"" >&5) | |
9598 | 9701 | (eval "$lt_compile" 2>out/conftest.err) |
9599 | 9702 | ac_status=$? |
9600 | 9703 | cat out/conftest.err >&5 |
9601 | echo "$as_me:9602: \$? = $ac_status" >&5 | |
9704 | echo "$as_me:9705: \$? = $ac_status" >&5 | |
9602 | 9705 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9603 | 9706 | then |
9604 | 9707 | # The compiler can only warn and ignore the option if not recognized |
12397 | 12500 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12398 | 12501 | lt_status=$lt_dlunknown |
12399 | 12502 | cat > conftest.$ac_ext <<_LT_EOF |
12400 | #line 12401 "configure" | |
12503 | #line 12504 "configure" | |
12401 | 12504 | #include "confdefs.h" |
12402 | 12505 | |
12403 | 12506 | #if HAVE_DLFCN_H |
12493 | 12596 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12494 | 12597 | lt_status=$lt_dlunknown |
12495 | 12598 | cat > conftest.$ac_ext <<_LT_EOF |
12496 | #line 12497 "configure" | |
12599 | #line 12600 "configure" | |
12497 | 12600 | #include "confdefs.h" |
12498 | 12601 | |
12499 | 12602 | #if HAVE_DLFCN_H |
13187 | 13290 | else |
13188 | 13291 | echo "ok, suppress excess warnings" |
13189 | 13292 | fi |
13190 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
13293 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
13191 | 13294 | echo $ECHO_N "checking compile fortify flags ... $ECHO_C" |
13192 | 13295 | cfhard="-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" |
13193 | echo "int main() { return(1); }" >$tmpc | |
13296 | echo "int main() { alloca(100); return(1); }" >$tmpc | |
13194 | 13297 | $CC -o $tmpo $cfhard $tmpc >/dev/null 2>&1 |
13195 | 13298 | if test $? -ne 0 ; then |
13196 | 13299 | cfhard= |
13198 | 13301 | else |
13199 | 13302 | echo "ok, add" |
13200 | 13303 | fi |
13201 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
13304 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
13202 | 13305 | if test -f "/etc/debian_version"; then |
13203 | 13306 | echo "Detected Debian Linux" |
13204 | 13307 | os=debian |
13288 | 13391 | SHR_LINK="" |
13289 | 13392 | else |
13290 | 13393 | if test $bsd -eq 0; then |
13291 | echo "Detected BSD" | |
13394 | # FreeBSD uname -K shows 903000 for 9.3 | |
13292 | 13395 | os=bsd |
13293 | OS_CFLAGS="-DBSD -fPIC" | |
13396 | osver=`uname -K |cut -c1` | |
13397 | echo "Detected BSD $osver" | |
13398 | if $osver -eq 7 ; then | |
13399 | OS_CFLAGS="-DBSD7 -DBSD -fPIC" | |
13400 | else | |
13401 | OS_CFLAGS="-DBSD -fPIC" | |
13402 | fi | |
13294 | 13403 | OS_LFLAGS="" |
13295 | 13404 | OS_DRIVERS="ipmimv.c ipmidir.c" |
13296 | 13405 | drivers="open direct" |
13809 | 13918 | # report actual input values of CONFIG_FILES etc. instead of their |
13810 | 13919 | # values after options handling. |
13811 | 13920 | ac_log=" |
13812 | This file was extended by ipmiutil $as_me 2.9.7, which was | |
13921 | This file was extended by ipmiutil $as_me 2.9.8, which was | |
13813 | 13922 | generated by GNU Autoconf 2.63. Invocation command line was |
13814 | 13923 | |
13815 | 13924 | CONFIG_FILES = $CONFIG_FILES |
13872 | 13981 | _ACEOF |
13873 | 13982 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13874 | 13983 | ac_cs_version="\\ |
13875 | ipmiutil config.status 2.9.7 | |
13984 | ipmiutil config.status 2.9.8 | |
13876 | 13985 | configured by $0, generated by GNU Autoconf 2.63, |
13877 | 13986 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
13878 | 13987 | |
15733 | 15842 | cp -f /tmp/make util/Makefile |
15734 | 15843 | fi |
15735 | 15844 | if test "x$os" = "xhpux" ; then |
15736 | sed -e 's/^.NOEXPORT:/#.NOEXPORT:/' util/Makefile >/tmp/make | |
15737 | cp -f /tmp/make util/Makefile | |
15845 | for mk in Makefile util/Makefile lib/Makefile lib/libipmiutil.pc lib/lanplus/Makefile doc/Makefile scripts/Makefile | |
15846 | do | |
15847 | sed -e 's/^.NOEXPORT:/#.NOEXPORT:/' $mk >/tmp/make | |
15848 | cp -f /tmp/make $mk | |
15849 | done | |
15738 | 15850 | fi |
15739 | 15851 | |
15740 | 15852 | { $as_echo "$as_me:$LINENO: result: " >&5 |
0 | 0 | dnl Process this file with autoconf to produce a configure script. |
1 | AC_INIT(ipmiutil,2.9.7) | |
1 | AC_INIT(ipmiutil,2.9.8) | |
2 | 2 | AC_CONFIG_SRCDIR(util/ipmiutil.c) |
3 | 3 | echo "ipmiutil version ${PACKAGE_VERSION}" |
4 | 4 | AM_CONFIG_HEADER(config.h) |
25 | 25 | AC_TYPE_OFF_T |
26 | 26 | AC_HEADER_TIME |
27 | 27 | AC_STRUCT_TM |
28 | AC_CHECK_TYPES(wchar_t) | |
28 | 29 | |
29 | 30 | dnl Checks for library functions. |
30 | 31 | AC_PROG_GCC_TRADITIONAL |
330 | 331 | else |
331 | 332 | echo "ok, suppress excess warnings" |
332 | 333 | fi |
333 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
334 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
334 | 335 | echo $ECHO_N "checking compile fortify flags ... $ECHO_C" |
335 | 336 | cfhard="-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" |
336 | echo "int main() { return(1); }" >$tmpc | |
337 | echo "int main() { alloca(100); return(1); }" >$tmpc | |
337 | 338 | $CC -o $tmpo $cfhard $tmpc >/dev/null 2>&1 |
338 | 339 | if test $? -ne 0 ; then |
339 | 340 | cfhard= |
341 | 342 | else |
342 | 343 | echo "ok, add" |
343 | 344 | fi |
344 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
345 | rm -f $tmpc $tmpo >/dev/null 2>&1 | |
345 | 346 | if test -f "/etc/debian_version"; then |
346 | 347 | echo "Detected Debian Linux" |
347 | 348 | os=debian |
431 | 432 | SHR_LINK="" |
432 | 433 | else |
433 | 434 | if test $bsd -eq 0; then |
434 | echo "Detected BSD" | |
435 | # FreeBSD uname -K shows 903000 for 9.3 | |
435 | 436 | os=bsd |
436 | OS_CFLAGS="-DBSD -fPIC" | |
437 | osver=`uname -K |cut -c1` | |
438 | echo "Detected BSD $osver" | |
439 | if [ $osver -eq 7 ]; then | |
440 | OS_CFLAGS="-DBSD7 -DBSD -fPIC" | |
441 | else | |
442 | OS_CFLAGS="-DBSD -fPIC" | |
443 | fi | |
437 | 444 | OS_LFLAGS="" |
438 | 445 | OS_DRIVERS="ipmimv.c ipmidir.c" |
439 | 446 | drivers="open direct" |
511 | 518 | cp -f /tmp/make util/Makefile |
512 | 519 | fi |
513 | 520 | if test "x$os" = "xhpux" ; then |
514 | sed -e 's/^.NOEXPORT:/#.NOEXPORT:/' util/Makefile >/tmp/make | |
515 | cp -f /tmp/make util/Makefile | |
521 | for mk in Makefile util/Makefile lib/Makefile lib/libipmiutil.pc lib/lanplus/Makefile doc/Makefile scripts/Makefile | |
522 | do | |
523 | sed -e 's/^.NOEXPORT:/#.NOEXPORT:/' $mk >/tmp/make | |
524 | cp -f /tmp/make $mk | |
525 | done | |
516 | 526 | fi |
517 | 527 | |
518 | 528 | AC_MSG_RESULT([]) |
0 | ipmiutil (2.9.8-1) unstable; urgency=low | |
1 | ||
2 | * New upstream version. | |
3 | ||
4 | -- Andy Cress <arcress@users.sourceforge.net> Thu, 12 Nov 2015 10:20:17 -0500 | |
5 | ||
0 | 6 | ipmiutil (2.9.7-1) unstable; urgency=low |
1 | 7 | |
2 | 8 | * New upstream version. |
45 | 45 | SOURCES = |
46 | 46 | DIST_SOURCES = |
47 | 47 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
48 | ACLOCAL = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run aclocal-1.11 | |
49 | AMTAR = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run tar | |
48 | ACLOCAL = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run aclocal-1.11 | |
49 | AMTAR = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run tar | |
50 | 50 | AR = ar |
51 | AUTOCONF = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run autoconf | |
52 | AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run autoheader | |
53 | AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run automake-1.11 | |
51 | AUTOCONF = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run autoconf | |
52 | AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run autoheader | |
53 | AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run automake-1.11 | |
54 | 54 | AWK = gawk |
55 | 55 | CC = gcc |
56 | 56 | CCDEPMODE = depmode=gcc3 |
98 | 98 | LIPO = |
99 | 99 | LN_S = ln -s |
100 | 100 | LTLIBOBJS = |
101 | MAKEINFO = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run makeinfo | |
101 | MAKEINFO = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run makeinfo | |
102 | 102 | MKDIR_P = /bin/mkdir -p |
103 | 103 | NM = /usr/bin/nm -B |
104 | 104 | NMEDIT = |
112 | 112 | PACKAGE = ipmiutil |
113 | 113 | PACKAGE_BUGREPORT = |
114 | 114 | PACKAGE_NAME = ipmiutil |
115 | PACKAGE_STRING = ipmiutil 2.9.7 | |
115 | PACKAGE_STRING = ipmiutil 2.9.8 | |
116 | 116 | PACKAGE_TARNAME = ipmiutil |
117 | PACKAGE_VERSION = 2.9.7 | |
117 | PACKAGE_VERSION = 2.9.8 | |
118 | 118 | PATH_SEPARATOR = : |
119 | 119 | PKG_DIR = /root/rpmbuild |
120 | 120 | RANLIB = ranlib |
126 | 126 | STRIP = strip |
127 | 127 | SUBDIR_S = doc scripts lib util |
128 | 128 | SYSTEMD_DIR = /usr/share/ipmiutil |
129 | VERSION = 2.9.7 | |
130 | abs_builddir = /usr/dev/ipmiutil-2.9.7/doc | |
131 | abs_srcdir = /usr/dev/ipmiutil-2.9.7/doc | |
132 | abs_top_builddir = /usr/dev/ipmiutil-2.9.7 | |
133 | abs_top_srcdir = /usr/dev/ipmiutil-2.9.7 | |
129 | VERSION = 2.9.8 | |
130 | abs_builddir = /usr/dev/ipmiutil-2.9.8/doc | |
131 | abs_srcdir = /usr/dev/ipmiutil-2.9.8/doc | |
132 | abs_top_builddir = /usr/dev/ipmiutil-2.9.8 | |
133 | abs_top_srcdir = /usr/dev/ipmiutil-2.9.8 | |
134 | 134 | ac_ct_CC = gcc |
135 | 135 | ac_ct_DUMPBIN = |
136 | 136 | am__include = include |
158 | 158 | htmldir = ${docdir} |
159 | 159 | includedir = ${prefix}/include |
160 | 160 | infodir = ${datarootdir}/info |
161 | install_sh = ${SHELL} /usr/dev/ipmiutil-2.9.7/install-sh | |
161 | install_sh = ${SHELL} /usr/dev/ipmiutil-2.9.8/install-sh | |
162 | 162 | libdir = ${exec_prefix}/lib |
163 | 163 | libexecdir = ${exec_prefix}/libexec |
164 | 164 | localedir = ${datarootdir}/locale |
0 | 0 | |
1 | 1 | IPMIUTIL USER GUIDE |
2 | VERSION 2.9.7 | |
2 | VERSION 2.9.8 | |
3 | 3 | An easy-to-use IPMI server management utility |
4 | 4 | |
5 | 5 |
2 | 2 | # Copyright (c) 2012 Andy Cress |
3 | 3 | # |
4 | 4 | Name: ipmiutil |
5 | Version: 2.9.7 | |
5 | Version: 2.9.8 | |
6 | 6 | Release: 1%{?dist} |
7 | 7 | Summary: Easy-to-use IPMI server management utilities |
8 | 8 | License: BSD |
46 | 46 | SOURCES = |
47 | 47 | DIST_SOURCES = |
48 | 48 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
49 | ACLOCAL = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run aclocal-1.11 | |
50 | AMTAR = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run tar | |
49 | ACLOCAL = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run aclocal-1.11 | |
50 | AMTAR = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run tar | |
51 | 51 | AR = ar |
52 | AUTOCONF = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run autoconf | |
53 | AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run autoheader | |
54 | AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run automake-1.11 | |
52 | AUTOCONF = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run autoconf | |
53 | AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run autoheader | |
54 | AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run automake-1.11 | |
55 | 55 | AWK = gawk |
56 | 56 | CC = gcc |
57 | 57 | CCDEPMODE = depmode=gcc3 |
100 | 100 | LIPO = |
101 | 101 | LN_S = ln -s |
102 | 102 | LTLIBOBJS = |
103 | MAKEINFO = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run makeinfo | |
103 | MAKEINFO = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run makeinfo | |
104 | 104 | MKDIR_P = /bin/mkdir -p |
105 | 105 | NM = /usr/bin/nm -B |
106 | 106 | NMEDIT = |
114 | 114 | PACKAGE = ipmiutil |
115 | 115 | PACKAGE_BUGREPORT = |
116 | 116 | PACKAGE_NAME = ipmiutil |
117 | PACKAGE_STRING = ipmiutil 2.9.7 | |
117 | PACKAGE_STRING = ipmiutil 2.9.8 | |
118 | 118 | PACKAGE_TARNAME = ipmiutil |
119 | PACKAGE_VERSION = 2.9.7 | |
119 | PACKAGE_VERSION = 2.9.8 | |
120 | 120 | PATH_SEPARATOR = : |
121 | 121 | PKG_DIR = /root/rpmbuild |
122 | 122 | RANLIB = ranlib |
128 | 128 | STRIP = strip |
129 | 129 | SUBDIR_S = doc scripts lib util |
130 | 130 | SYSTEMD_DIR = /usr/share/ipmiutil |
131 | VERSION = 2.9.7 | |
132 | abs_builddir = /usr/dev/ipmiutil-2.9.7/lib | |
133 | abs_srcdir = /usr/dev/ipmiutil-2.9.7/lib | |
134 | abs_top_builddir = /usr/dev/ipmiutil-2.9.7 | |
135 | abs_top_srcdir = /usr/dev/ipmiutil-2.9.7 | |
131 | VERSION = 2.9.8 | |
132 | abs_builddir = /usr/dev/ipmiutil-2.9.8/lib | |
133 | abs_srcdir = /usr/dev/ipmiutil-2.9.8/lib | |
134 | abs_top_builddir = /usr/dev/ipmiutil-2.9.8 | |
135 | abs_top_srcdir = /usr/dev/ipmiutil-2.9.8 | |
136 | 136 | ac_ct_CC = gcc |
137 | 137 | ac_ct_DUMPBIN = |
138 | 138 | am__include = include |
160 | 160 | htmldir = ${docdir} |
161 | 161 | includedir = ${prefix}/include |
162 | 162 | infodir = ${datarootdir}/info |
163 | install_sh = ${SHELL} /usr/dev/ipmiutil-2.9.7/install-sh | |
163 | install_sh = ${SHELL} /usr/dev/ipmiutil-2.9.8/install-sh | |
164 | 164 | libdir = $(iprefix)/lib |
165 | 165 | libexecdir = ${exec_prefix}/libexec |
166 | 166 | localedir = ${datarootdir}/locale |
409 | 409 | cd lanplus; make distclean |
410 | 410 | |
411 | 411 | install: |
412 | $(MKDIR) ${datato} | |
413 | cd lanplus; make install | |
412 | if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \ | |
413 | $(MKDIR) ${datato} ; \ | |
414 | cd lanplus; make install ; \ | |
415 | fi | |
414 | 416 | |
415 | 417 | check: |
416 | 418 |
50 | 50 | cd lanplus; make distclean |
51 | 51 | |
52 | 52 | install: |
53 | $(MKDIR) ${datato} | |
54 | cd lanplus; make install | |
53 | if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \ | |
54 | $(MKDIR) ${datato} ; \ | |
55 | cd lanplus; make install ; \ | |
56 | fi | |
55 | 57 | |
56 | 58 | check: |
57 | 59 |
409 | 409 | cd lanplus; make distclean |
410 | 410 | |
411 | 411 | install: |
412 | $(MKDIR) ${datato} | |
413 | cd lanplus; make install | |
412 | if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \ | |
413 | $(MKDIR) ${datato} ; \ | |
414 | cd lanplus; make install ; \ | |
415 | fi | |
414 | 416 | |
415 | 417 | check: |
416 | 418 |
7 | 7 | |
8 | 8 | Name: libipmiutil |
9 | 9 | Description: Library for ipmiutil |
10 | Version: 2.9.7 | |
10 | Version: 2.9.8 | |
11 | 11 | Libs: -L${libdir} -lipmi_lanplus |
12 | 12 | Cflags: -I${includedir} |
45 | 45 | SOURCES = |
46 | 46 | DIST_SOURCES = |
47 | 47 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
48 | ACLOCAL = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run aclocal-1.11 | |
49 | AMTAR = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run tar | |
48 | ACLOCAL = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run aclocal-1.11 | |
49 | AMTAR = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run tar | |
50 | 50 | AR = ar |
51 | AUTOCONF = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run autoconf | |
52 | AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run autoheader | |
53 | AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run automake-1.11 | |
51 | AUTOCONF = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run autoconf | |
52 | AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run autoheader | |
53 | AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run automake-1.11 | |
54 | 54 | AWK = gawk |
55 | 55 | CC = gcc |
56 | 56 | CCDEPMODE = depmode=gcc3 |
98 | 98 | LIPO = |
99 | 99 | LN_S = ln -s |
100 | 100 | LTLIBOBJS = |
101 | MAKEINFO = ${SHELL} /usr/dev/ipmiutil-2.9.7/missing --run makeinfo | |
101 | MAKEINFO = ${SHELL} /usr/dev/ipmiutil-2.9.8/missing --run makeinfo | |
102 | 102 | MKDIR_P = /bin/mkdir -p |
103 | 103 | NM = /usr/bin/nm -B |
104 | 104 | NMEDIT = |
112 | 112 | PACKAGE = ipmiutil |
113 | 113 | PACKAGE_BUGREPORT = |
114 | 114 | PACKAGE_NAME = ipmiutil |
115 | PACKAGE_STRING = ipmiutil 2.9.7 | |
115 | PACKAGE_STRING = ipmiutil 2.9.8 | |
116 | 116 | PACKAGE_TARNAME = ipmiutil |
117 | PACKAGE_VERSION = 2.9.7 | |
117 | PACKAGE_VERSION = 2.9.8 | |
118 | 118 | PATH_SEPARATOR = : |
119 | 119 | PKG_DIR = /root/rpmbuild |
120 | 120 | RANLIB = ranlib |
126 | 126 | STRIP = strip |
127 | 127 | SUBDIR_S = doc scripts lib util |
128 | 128 | SYSTEMD_DIR = /usr/share/ipmiutil |
129 | VERSION = 2.9.7 | |
130 | abs_builddir = /usr/dev/ipmiutil-2.9.7/scripts | |
131 | abs_srcdir = /usr/dev/ipmiutil-2.9.7/scripts | |
132 | abs_top_builddir = /usr/dev/ipmiutil-2.9.7 | |
133 | abs_top_srcdir = /usr/dev/ipmiutil-2.9.7 | |
129 | VERSION = 2.9.8 | |
130 | abs_builddir = /usr/dev/ipmiutil-2.9.8/scripts | |
131 | abs_srcdir = /usr/dev/ipmiutil-2.9.8/scripts | |
132 | abs_top_builddir = /usr/dev/ipmiutil-2.9.8 | |
133 | abs_top_srcdir = /usr/dev/ipmiutil-2.9.8 | |
134 | 134 | ac_ct_CC = gcc |
135 | 135 | ac_ct_DUMPBIN = |
136 | 136 | am__include = include |
158 | 158 | htmldir = ${docdir} |
159 | 159 | includedir = ${prefix}/include |
160 | 160 | infodir = ${datarootdir}/info |
161 | install_sh = ${SHELL} /usr/dev/ipmiutil-2.9.7/install-sh | |
161 | install_sh = ${SHELL} /usr/dev/ipmiutil-2.9.8/install-sh | |
162 | 162 | libdir = ${exec_prefix}/lib |
163 | 163 | libexecdir = ${exec_prefix}/libexec |
164 | 164 | localedir = ${datarootdir}/locale |
5 | 5 | Type=forking |
6 | 6 | PIDFile=/run/ipmi_port.pid |
7 | 7 | EnvironmentFile=/usr/share/ipmiutil/ipmiutil.env |
8 | ExecStartPre=/usr/share/ipmiutil/ipmiutil.setup | |
9 | ExecStart=/usr/sbin/ipmi_port -b | |
8 | ExecStart=/usr/share/ipmiutil/ipmiutil.setup >/dev/null && /usr/sbin/ipmi_port -b || : | |
10 | 9 | |
11 | 10 | [Install] |
12 | 11 | WantedBy=multi-user.target |
36 | 36 | retval=6 |
37 | 37 | else |
38 | 38 | # portmap may have been replaced by portreserve |
39 | [ -x $IPORTMAP ] || exit 6 | |
40 | retval=0 | |
39 | # only need ipmi_port if portmap exists | |
40 | if [ -x $IPORTMAP ] | |
41 | then | |
42 | retval=0 | |
43 | else | |
44 | retval=6 | |
45 | fi | |
41 | 46 | fi |
42 | 47 | return $retval |
43 | 48 | } |
5 | 5 | # [doinc?] is 'n'. |
6 | 6 | # if [doinc?] is 'r', reverse increment (decrement). |
7 | 7 | # |
8 | ver=2.9.7 | |
8 | ver=2.9.9 | |
9 | 9 | rel=1 |
10 | 10 | tmped=/tmp/edver.tmp |
11 | 11 | tmpspec=/tmp/edspec.tmp |
200 | 200 | ilan.c ireset.c isel.c isensor.c iserial.c isol.c iwdt.c |
201 | 201 | ifruset.c oem_sun.c ipicmg.c ifirewall.c oem_dell.c itsol.c |
202 | 202 | idcmi.c iseltime.c oem_supermicro.c |
203 | iekanalyzer.c ifwum.c ihpm.c idiscover.c" | |
203 | ifwum.c ihpm.c iekanalyzer.c idiscover.c" | |
204 | 204 | |
205 | 205 | if [ $skipinc -ne 1 ] |
206 | 206 | then |
74 | 74 | /* |
75 | 75 | * Global variables |
76 | 76 | */ |
77 | static char * progver = "2.97"; | |
77 | static char * progver = "2.98"; | |
78 | 78 | static char * progname = "ialarms"; |
79 | 79 | static char fdebug = 0; |
80 | 80 | static char fbmctam = 0; |
77 | 77 | /* |
78 | 78 | * Global variables |
79 | 79 | */ |
80 | static char * progver = "2.97"; | |
80 | static char * progver = "2.98"; | |
81 | 81 | static char * progname = "icmd"; |
82 | 82 | static char fdebug = 0; |
83 | 83 | static char fquiet = 0; |
170 | 170 | /* |
171 | 171 | * Global variables |
172 | 172 | */ |
173 | static char * progver = "2.97"; | |
173 | static char * progver = "2.98"; | |
174 | 174 | static char * progname = "iconfig"; |
175 | 175 | static char fdebug = 0; |
176 | 176 | static char fipmilan = 0; |
61 | 61 | #include "idcmi.h" |
62 | 62 | |
63 | 63 | static char * progname = "idcmi"; |
64 | static char * progver = "2.97"; | |
64 | static char * progver = "2.98"; | |
65 | 65 | extern char fdebug; /*from ipmicmd.c*/ |
66 | 66 | static uchar g_bus = PUBLIC_BUS; |
67 | 67 | static uchar g_sa = BMC_SA; |
75 | 75 | #define SELprintf printf |
76 | 76 | #define SMS_SA 0x41 |
77 | 77 | #define SMI_SA 0x21 |
78 | static char *progver = "2.97"; | |
78 | static char *progver = "2.98"; | |
79 | 79 | static char *progname = "ievents"; |
80 | 80 | static char fsensdesc = 0; /* 1= get extended sensor descriptions*/ |
81 | 81 | static char fcanonical = 0; /* 1= show canonical, delimited output*/ |
63 | 63 | |
64 | 64 | /* global variables */ |
65 | 65 | static char * progname = "ifirewall"; |
66 | static char * progver = "2.97"; | |
66 | static char * progver = "2.98"; | |
67 | 67 | static char fdebug = 0; |
68 | 68 | static uchar g_bus = PUBLIC_BUS; |
69 | 69 | static uchar g_sa = BMC_SA; |
115 | 115 | #endif |
116 | 116 | |
117 | 117 | static char *progname = "ifru"; |
118 | static char *progver = "2.97"; | |
118 | static char *progver = "2.98"; | |
119 | 119 | static int vend_id = 0; |
120 | 120 | static int prod_id = 0; |
121 | 121 | static char fdebug = 0; |
735 | 735 | printf("\t Standby power \t%c %s\n", bdelim, |
736 | 736 | (b2 ? "Yes" : "No")); |
737 | 737 | v1 = pdata[1] + (pdata[2] << 8); |
738 | printf("\t Nominal voltage \t%c %.2f V\n", bdelim, v1 / 100); | |
738 | printf("\t Nominal voltage \t%c %.2f V\n", bdelim, (double)v1 / 100); | |
739 | 739 | v2 = pdata[3] + (pdata[4] << 8); |
740 | 740 | v3 = pdata[5] + (pdata[6] << 8); |
741 | 741 | printf("\t Voltage deviation \t%c + %.2f V / - %.2f V\n", |
742 | bdelim, v3/100, v2/100); | |
742 | bdelim, (double)v3/100, (double)v2/100); | |
743 | 743 | v4 = pdata[7] + (pdata[8] << 8); |
744 | 744 | printf("\t Ripple and noise pk-pk \t%c %d mV\n", bdelim, v4); |
745 | 745 | v5 = pdata[9] + (pdata[10] << 8); |
746 | printf("\t Min current draw \t%c %.3f A\n", bdelim, v5/1000); | |
746 | printf("\t Min current draw \t%c %.3f A\n", bdelim, (double)v5/1000); | |
747 | 747 | v6 = pdata[11] + (pdata[12] << 8); |
748 | printf("\t Max current draw \t%c %.3f A\n", bdelim, v6/1000); | |
748 | printf("\t Max current draw \t%c %.3f A\n", bdelim, (double)v6/1000); | |
749 | 749 | break; |
750 | 750 | case 0x02: /*DC Load*/ |
751 | 751 | b1 = pdata[0] & 0x0f; |
752 | 752 | printf("%sDC Load %c number %d\n",mystr,bdelim,b1); |
753 | 753 | v1 = pdata[1] + (pdata[2] << 8); |
754 | printf("\t Nominal voltage \t%c %.2f V\n", bdelim, v1 / 100); | |
754 | printf("\t Nominal voltage \t%c %.2f V\n", bdelim, (double)v1 / 100); | |
755 | 755 | v2 = pdata[3] + (pdata[4] << 8); |
756 | 756 | v3 = pdata[5] + (pdata[6] << 8); |
757 | printf("\t Min voltage allowed \t%c %.2f A\n", bdelim, v2); | |
758 | printf("\t Max voltage allowed \t%c %.2f A\n", bdelim, v3); | |
757 | printf("\t Min voltage allowed \t%c %.2f A\n", bdelim, (double)v2); | |
758 | printf("\t Max voltage allowed \t%c %.2f A\n", bdelim, (double)v3); | |
759 | 759 | v4 = pdata[7] + (pdata[8] << 8); |
760 | 760 | printf("\t Ripple and noise pk-pk \t%c %d mV\n", bdelim, v4); |
761 | 761 | v5 = pdata[9] + (pdata[10] << 8); |
762 | printf("\t Min current load \t%c %.3f A\n", bdelim, v5/1000); | |
762 | printf("\t Min current load \t%c %.3f A\n", bdelim, (double)v5/1000); | |
763 | 763 | v6 = pdata[11] + (pdata[12] << 8); |
764 | printf("\t Max current load \t%c %.3f A\n", bdelim, v6/1000); | |
764 | printf("\t Max current load \t%c %.3f A\n", bdelim, (double)v6/1000); | |
765 | 765 | break; |
766 | 766 | case 0x03: /*Management Access*/ |
767 | 767 | b1 = pdata[0]; |
105 | 105 | #define IPROD_OEM 7 |
106 | 106 | |
107 | 107 | static char *progname = "ifruset"; |
108 | static char *progver = "2.97"; | |
108 | static char *progver = "2.98"; | |
109 | 109 | static char fdebug = 0; |
110 | 110 | static char fpicmg = 0; |
111 | 111 | static char fonlybase = 0; |
168 | 168 | * Global variables |
169 | 169 | */ |
170 | 170 | static char * progname = "igetevent"; |
171 | static char * progver = "2.97"; | |
171 | static char * progver = "2.98"; | |
172 | 172 | static char fdebug = 0; |
173 | 173 | static char fipmilan = 0; |
174 | 174 | static char frunonce = 0; |
81 | 81 | * Global variables |
82 | 82 | */ |
83 | 83 | static char * progname = "ihealth"; |
84 | static char * progver = "2.97"; | |
84 | static char * progver = "2.98"; | |
85 | 85 | static char fdebug = 0; |
86 | 86 | static char fipmilan = 0; |
87 | 87 | static char fcanonical = 0; |
304 | 304 | /* |
305 | 305 | * Global variables |
306 | 306 | */ |
307 | static char * progver = "2.97"; | |
307 | static char * progver = "2.98"; | |
308 | 308 | static char * progname = "ilan"; |
309 | 309 | static char fdebug = 0; |
310 | 310 | static char fipmilan = 0; |
36 | 36 | #ifndef _WINDEFS_H |
37 | 37 | #define _WINDEFS_H |
38 | 38 | |
39 | #ifndef NULL | |
40 | #define NULL 0 | |
41 | #endif | |
42 | #define TRUE 1 | |
43 | #define FALSE 0 | |
44 | ||
45 | 39 | #if defined(WIN32) | defined(BSD) | defined(DOS) |
46 | 40 | /* WIN32 defines wchar_t in stdio.h */ |
47 | 41 | /* BSD defines wchar_t in stdlib.h */ |
48 | 42 | /* DOS defines wchar_t in stdlib.h */ |
49 | #else | |
50 | // defined(LINUX) | defined(SOLARIS) | |
51 | #if !defined(_WCHAR_T) && !defined(__WCHAR_TYPE__) | |
52 | #define _WCHAR_T | |
43 | #else | |
44 | #if defined(LINUX) | |
45 | /* LINUX should define wchar_t in stdlib.h */ | |
46 | #include <stdlib.h> | |
47 | #endif | |
48 | // SOLARIS or MACOS may need wchar_t | |
49 | #include "config.h" | |
50 | #if !HAVE_WCHAR_T | |
53 | 51 | typedef long wchar_t; |
54 | 52 | #endif |
55 | 53 | #endif |
56 | 54 | |
55 | #ifndef NULL | |
56 | #define NULL 0 | |
57 | #endif | |
58 | #define TRUE 1 | |
59 | #define FALSE 0 | |
57 | 60 | #define far |
58 | 61 | #define near |
59 | 62 | #define FAR far |
135 | 138 | typedef ULARGE_INTEGER * PULARGE_INTEGER; |
136 | 139 | typedef UCHAR BOOLEAN; |
137 | 140 | typedef BOOLEAN *PBOOLEAN; |
138 | typedef wchar_t WCHAR; | |
139 | typedef WCHAR *PWCHAR, *PWSTR; | |
140 | typedef CONST WCHAR *LPCWSTR, *PCWSTR; | |
141 | 141 | |
142 | 142 | /* |
143 | 143 | Unicode strings are counted 16-bit character strings. If they are |
146 | 146 | typedef struct _UNICODE_STRING { |
147 | 147 | USHORT Length; |
148 | 148 | USHORT MaximumLength; |
149 | PWSTR Buffer; | |
149 | wchar_t *Buffer; | |
150 | 150 | } UNICODE_STRING; |
151 | 151 | typedef UNICODE_STRING *PUNICODE_STRING; |
152 | #define UNICODE_NULL ((WCHAR)0) /* winnt*/ | |
153 | 152 | #define IN /* */ |
154 | 153 | #define OUT /* */ |
155 | 154 | #define OPTIONAL /* */ |
80 | 80 | |
81 | 81 | /* Global data */ |
82 | 82 | static char * progname = "ipicmg"; |
83 | static char * progver = "2.97"; | |
83 | static char * progver = "2.98"; | |
84 | 84 | static char fdebug = 0; |
85 | 85 | static char fset_mc = 0; |
86 | 86 | static uint8_t g_bus = PUBLIC_BUS; |
1057 | 1057 | i = sresp; |
1058 | 1058 | if (i > sizeof(my_devid)) i = sizeof(my_devid); |
1059 | 1059 | memcpy(my_devid,presp,i); /* save device id for later use */ |
1060 | if (fdebug) { | |
1061 | uchar maj,min,iver; | |
1062 | int vend, prod; | |
1063 | get_devid_ver(&maj,&min,&iver); | |
1064 | get_mfgid(&vend, &prod); | |
1065 | printf("devid: firmware ver %x.%02x, IPMI v%02x, vendor=%d prod=%d\n", | |
1066 | maj,min,iver,vend,prod); | |
1067 | } | |
1060 | 1068 | return(ACCESS_OK); /* success */ |
1061 | 1069 | } |
1062 | 1070 |
472 | 472 | { |
473 | 473 | int status = 0; |
474 | 474 | #if defined(BSD) || defined(MACOS) || defined(HPUX) |
475 | close(iofd); | |
476 | iofd = -1; | |
475 | if (iofd >= 0) { | |
476 | close(iofd); | |
477 | iofd = -1; | |
478 | } | |
477 | 479 | #endif |
478 | 480 | /* clear lock for driverless interface */ |
479 | 481 | status = clear_lock_dir(); |
111 | 111 | #endif |
112 | 112 | |
113 | 113 | int ipmi_timeout_mv = 10; /* 10 seconds, was 5 sec */ |
114 | #if defined(BSD) || defined(MACOS) || defined(HPUX) | |
114 | #if defined(BSD7) | |
115 | 115 | #pragma pack(1) |
116 | 116 | #endif |
117 | 117 | |
152 | 152 | unsigned char netfn; |
153 | 153 | unsigned char cmd; |
154 | 154 | }; |
155 | #if defined(BSD7) | |
156 | #pragma pack() | |
157 | #endif | |
155 | 158 | #if defined(BSD) || defined(MACOS) || defined(HPUX) |
156 | #pragma pack() | |
157 | 159 | /* FreeBSD 7.x ipmi ioctls, use _IOW */ |
158 | 160 | #define IPMI_IOC_MAGIC 'i' |
159 | 161 | #define IPMICTL_RECEIVE_MSG_TRUNC _IOWR(IPMI_IOC_MAGIC, 11, struct ipmi_recv) |
56 | 56 | #include "ipmiutil.h" |
57 | 57 | |
58 | 58 | static char *progname = "ipmiutil"; |
59 | static char *progver = "2.97"; | |
59 | static char *progver = "2.98"; | |
60 | 60 | // static char fdebug = 0; |
61 | 61 | /*int ipmiutil(int argc, char **argv); */ |
62 | 62 |
107 | 107 | /* |
108 | 108 | * Global variables |
109 | 109 | */ |
110 | static char * progver = "2.97"; | |
110 | static char * progver = "2.98"; | |
111 | 111 | static char * progname = "ireset"; |
112 | 112 | static uchar ipmi_maj; |
113 | 113 | static uchar ipmi_min; |
161 | 161 | #define RDATA_OFFSET 13 //byte offset to the record event data |
162 | 162 | |
163 | 163 | static char *progname = "isel"; |
164 | static char *progver = "2.97"; | |
164 | static char *progver = "2.98"; | |
165 | 165 | #ifdef WIN32 |
166 | 166 | #define IDXFILE "sel.idx" |
167 | 167 | static char idxfile[80] = IDXFILE; |
74 | 74 | /* |
75 | 75 | * Global variables |
76 | 76 | */ |
77 | static char * progver = "2.97"; | |
77 | static char * progver = "2.98"; | |
78 | 78 | static char * progname = "iseltime"; |
79 | 79 | static char fdebug = 0; |
80 | 80 | static char fset = 0; |
246 | 246 | * Global Data |
247 | 247 | ************************/ |
248 | 248 | static char *progname = "isensor"; |
249 | static char *progver = "2.97"; | |
249 | static char *progver = "2.98"; | |
250 | 250 | #ifdef WIN32 |
251 | 251 | static char savefile[] = "%ipmiutildir%\\thresholds.cmd"; |
252 | 252 | #else |
1297 | 1297 | if (sresp >= 2) thislen = sresp - 2; |
1298 | 1298 | else thislen = 0; |
1299 | 1299 | reclen = off + thislen; /* truncate, stop reading */ |
1300 | fprintf(stderr,"SDR record %x is malformed, length %d is less than minimum %d\n",sresp,thislen+2); | |
1300 | 1301 | } |
1301 | 1302 | /* successful */ |
1302 | 1303 | memcpy(&resp[off],&respchunk[2],thislen); |
154 | 154 | /* |
155 | 155 | * Global variables |
156 | 156 | */ |
157 | static char * progver = "2.97"; | |
157 | static char * progver = "2.98"; | |
158 | 158 | static char * progname = "iserial"; |
159 | 159 | static int vend_id = 0; |
160 | 160 | static int prod_id = 0; |
164 | 164 | /* |
165 | 165 | * Global variables |
166 | 166 | */ |
167 | static char * progver = "2.97"; | |
167 | static char * progver = "2.98"; | |
168 | 168 | static char * progname = "isol"; |
169 | 169 | static char fdebug = 0; |
170 | 170 | static char fpicmg = 0; |
97 | 97 | extern int verbose; |
98 | 98 | extern char fdebug; /*from ipmicmd.c*/ |
99 | 99 | static char * progname = "itsol"; |
100 | static char * progver = "2.97"; | |
100 | static char * progver = "2.98"; | |
101 | 101 | static uchar g_bus = PUBLIC_BUS; |
102 | 102 | static uchar g_sa = BMC_SA; |
103 | 103 | static uchar g_lun = BMC_LUN; |
99 | 99 | /* |
100 | 100 | * Global variables |
101 | 101 | */ |
102 | static char * progver = "2.97"; | |
102 | static char * progver = "2.98"; | |
103 | 103 | static char * progname = "iwdt"; |
104 | 104 | static char fdebug = 0; |
105 | 105 | static char fdontlog = 0; |
131 | 131 | "shared with failover all loms" |
132 | 132 | }; |
133 | 133 | |
134 | static char * progver = "2.97"; | |
134 | static char * progver = "2.98"; | |
135 | 135 | static char * progname = "idelloem"; |
136 | 136 | static int verbose = 0; |
137 | 137 | static char fdebug = 0; |
108 | 108 | |
109 | 109 | /* global variables */ |
110 | 110 | static char * progname = "isunoem"; |
111 | static char * progver = "2.97"; | |
111 | static char * progver = "2.98"; | |
112 | 112 | static char fdebug = 0; |
113 | 113 | static uchar g_bus = PUBLIC_BUS; |
114 | 114 | static uchar g_sa = BMC_SA; |