summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 10:22:52 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 10:22:52 +0200
commited721d01939a81a2ebf1b240a029ace82ee953df (patch)
treed5acb063b3dc1d6734b8aa221cf93017a38c22e5
parent7a765f655540e4e254f4aaaf6ea3326a57d76e59 (diff)
parent1d271f6ff272623c990d1cebe531002f22b248bd (diff)
Merge branch 'feature/upstream' into develop
-rw-r--r--ChangeLog13
-rwxr-xr-xconfigure20
-rw-r--r--configure.ac2
-rw-r--r--debian/changelog6
-rw-r--r--debian/files1
-rw-r--r--debpkg/changelog18
-rw-r--r--doc/Makefile28
-rw-r--r--doc/UserGuide2
-rw-r--r--doc/ipmiutil.spec13
-rw-r--r--lib/Makefile28
-rw-r--r--lib/libipmiutil.pc2
-rw-r--r--scripts/Makefile28
-rwxr-xr-xsetver14
-rw-r--r--util/ialarms.c5
-rw-r--r--util/icmd.c5
-rw-r--r--util/iconfig.c5
-rw-r--r--util/idcmi.c7
-rw-r--r--util/ievents.c200
-rw-r--r--util/ievents.h3
-rw-r--r--util/ifirewall.c7
-rw-r--r--util/ifru.c9
-rw-r--r--util/ifruset.c9
-rw-r--r--util/igetevent.c7
-rw-r--r--util/ihealth.c7
-rw-r--r--util/ilan.c7
-rw-r--r--util/ipicmg.c7
-rw-r--r--util/ipmiutil.c6
-rw-r--r--util/ireset.c5
-rw-r--r--util/isel.c19
-rw-r--r--util/iseltime.c5
-rw-r--r--util/isensor.c11
-rw-r--r--util/iserial.c5
-rw-r--r--util/isol.c5
-rw-r--r--util/itsol.c7
-rw-r--r--util/iuser.c7
-rw-r--r--util/iwdt.c5
-rw-r--r--util/mem_if.c2
-rw-r--r--util/oem_asus.c7
-rw-r--r--util/oem_dell.c6
-rw-r--r--util/oem_fujitsu.c5
-rw-r--r--util/oem_hp.c5
-rw-r--r--util/oem_intel.c10
-rw-r--r--util/oem_kontron.c5
-rw-r--r--util/oem_lenovo.c111
-rw-r--r--util/oem_newisys.c5
-rw-r--r--util/oem_quanta.c5
-rw-r--r--util/oem_sun.c7
-rw-r--r--util/oem_supermicro.c13
-rw-r--r--util/subs.c4
49 files changed, 465 insertions, 248 deletions
diff --git a/ChangeLog b/ChangeLog
index 24f10db..798485c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4300,9 +4300,20 @@ wdt.8 iwdt.8 (ipmiutil wdt)
01/08/2018 ARCress ipmiutil-3.0.8 changes (iver 3.08)
configure.ac - add -fno-strict-aliasing flag
doc/ipmiutil.spec - handle if dmidecode is missing,
- fix scr_dir typo (RHBZ# 1531830)
+ fix scr_dir typo (RHBZ# 1531830)
util/iuser.c - default to -V4 admin privilege for lan
util/ilan.c - show & clear GetSOL error if present
util/ipmicmd.c - add decode_rv to ipmi_open errors
lib/lanplus/lanplus_crypt_impl.c - use win_rand_filename not RAND_file_name
+03/26/2018 ARCress ipmiutil-3.0.9 changes (iver 3.09)
+ doc/ipmiutil.spec - handle fc25/fc28 BuildRequires qrencode-libs,
+ include gcc gcc-c++ BuildRequires for all
+ util/ipmiutil.c,ifruset.c,iseltime.c,... - use global progver
+ util/oem_lenovo.c - handle sensor type 0x17 (RSA II, Mem1) for SFBug#31,
+ add get_ibm_event for some IBM OEM events
+ util/ievents.c - fixed (data1 & 0x0f) for BIOS POST events
+
+04/17/2018 ARCress ipmiutil-3.1.0 changes (iver 3.10)
+ util/ievents.c - add decode_mem_default routine for AMI,HP mem events
+ not handled by existing oem routines (SFBug#32)
diff --git a/configure b/configure
index b911329..cdc8287 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for ipmiutil 3.0.8.
+# Generated by GNU Autoconf 2.63 for ipmiutil 3.1.0.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
@@ -743,8 +743,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='ipmiutil'
PACKAGE_TARNAME='ipmiutil'
-PACKAGE_VERSION='3.0.8'
-PACKAGE_STRING='ipmiutil 3.0.8'
+PACKAGE_VERSION='3.1.0'
+PACKAGE_STRING='ipmiutil 3.1.0'
PACKAGE_BUGREPORT=''
ac_unique_file="util/ipmiutil.c"
@@ -1503,7 +1503,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures ipmiutil 3.0.8 to adapt to many kinds of systems.
+\`configure' configures ipmiutil 3.1.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1573,7 +1573,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of ipmiutil 3.0.8:";;
+ short | recursive ) echo "Configuration of ipmiutil 3.1.0:";;
esac
cat <<\_ACEOF
@@ -1683,7 +1683,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-ipmiutil configure 3.0.8
+ipmiutil configure 3.1.0
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1697,7 +1697,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by ipmiutil $as_me 3.0.8, which was
+It was created by ipmiutil $as_me 3.1.0, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -2551,7 +2551,7 @@ fi
# Define the identity of the package.
PACKAGE='ipmiutil'
- VERSION='3.0.8'
+ VERSION='3.1.0'
cat >>confdefs.h <<_ACEOF
@@ -13957,7 +13957,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by ipmiutil $as_me 3.0.8, which was
+This file was extended by ipmiutil $as_me 3.1.0, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -14020,7 +14020,7 @@ Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-ipmiutil config.status 3.0.8
+ipmiutil config.status 3.1.0
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff --git a/configure.ac b/configure.ac
index 480de2d..6b03203 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(ipmiutil,3.0.8)
+AC_INIT(ipmiutil,3.1.0)
AC_CONFIG_SRCDIR(util/ipmiutil.c)
echo "ipmiutil version ${PACKAGE_VERSION}"
AC_CONFIG_HEADERS(config.h)
diff --git a/debian/changelog b/debian/changelog
index 49161ae..777e90b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ipmiutil (3.1.0-1) UNRELEASED; urgency=medium
+
+ * New upstream release.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Tue, 01 May 2018 10:13:26 +0200
+
ipmiutil (3.0.8-1) unstable; urgency=medium
* New upstream release.
diff --git a/debian/files b/debian/files
deleted file mode 100644
index f83d373..0000000
--- a/debian/files
+++ /dev/null
@@ -1 +0,0 @@
-ipmiutil_3.0.8-1_source.buildinfo utils optional
diff --git a/debpkg/changelog b/debpkg/changelog
index 11411a2..c9082cf 100644
--- a/debpkg/changelog
+++ b/debpkg/changelog
@@ -1,3 +1,21 @@
+ipmiutil (3.1.0-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Andy Cress <arcress@users.sourceforge.net> Fri, 06 Apr 2018 17:21:46 -0400
+
+ipmiutil (3.0.9-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Andy Cress <arcress@users.sourceforge.net> Mon, 26 Mar 2018 12:59:18 -0400
+
+ipmiutil (3.0.9-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Andy Cress <arcress@users.sourceforge.net> Sun, 18 Feb 2018 15:37:58 -0500
+
ipmiutil (3.0.8-1) unstable; urgency=low
* New upstream version.
diff --git a/doc/Makefile b/doc/Makefile
index 5b0b4b1..6bedc71 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -46,12 +46,12 @@ CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run aclocal-1.11
-AMTAR = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run tar
+ACLOCAL = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run aclocal-1.11
+AMTAR = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run tar
AR = ar
-AUTOCONF = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run autoconf
-AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run autoheader
-AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run automake-1.11
+AUTOCONF = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run autoconf
+AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run autoheader
+AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run automake-1.11
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
@@ -99,7 +99,7 @@ LIB_DIR = /usr/lib64
LIPO =
LN_S = ln -s
LTLIBOBJS =
-MAKEINFO = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run makeinfo
+MAKEINFO = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NM = /usr/bin/nm -B
NMEDIT =
@@ -113,9 +113,9 @@ OTOOL64 =
PACKAGE = ipmiutil
PACKAGE_BUGREPORT =
PACKAGE_NAME = ipmiutil
-PACKAGE_STRING = ipmiutil 3.0.8
+PACKAGE_STRING = ipmiutil 3.1.0
PACKAGE_TARNAME = ipmiutil
-PACKAGE_VERSION = 3.0.8
+PACKAGE_VERSION = 3.1.0
PATH_SEPARATOR = :
PKG_DIR = /root/rpmbuild
RANLIB = ranlib
@@ -127,11 +127,11 @@ SHR_LINK = libipmiutil.so.1
STRIP = strip
SUBDIR_S = doc scripts lib util
SYSTEMD_DIR = /usr/share/ipmiutil
-VERSION = 3.0.8
-abs_builddir = /usr/dev/ipmiutil-3.0.8/doc
-abs_srcdir = /usr/dev/ipmiutil-3.0.8/doc
-abs_top_builddir = /usr/dev/ipmiutil-3.0.8
-abs_top_srcdir = /usr/dev/ipmiutil-3.0.8
+VERSION = 3.1.0
+abs_builddir = /usr/dev/ipmiutil-3.1.0/doc
+abs_srcdir = /usr/dev/ipmiutil-3.1.0/doc
+abs_top_builddir = /usr/dev/ipmiutil-3.1.0
+abs_top_srcdir = /usr/dev/ipmiutil-3.1.0
ac_ct_CC = gcc
ac_ct_DUMPBIN =
am__include = include
@@ -159,7 +159,7 @@ host_vendor = redhat
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
-install_sh = ${SHELL} /usr/dev/ipmiutil-3.0.8/install-sh
+install_sh = ${SHELL} /usr/dev/ipmiutil-3.1.0/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
diff --git a/doc/UserGuide b/doc/UserGuide
index 105a4bd..d4286f2 100644
--- a/doc/UserGuide
+++ b/doc/UserGuide
@@ -1,6 +1,6 @@
IPMIUTIL USER GUIDE
- VERSION 3.0.8
+ VERSION 3.1.0
An easy-to-use IPMI server management utility
diff --git a/doc/ipmiutil.spec b/doc/ipmiutil.spec
index 7551bb2..cbca232 100644
--- a/doc/ipmiutil.spec
+++ b/doc/ipmiutil.spec
@@ -3,7 +3,7 @@
# Copyright (c) 2012 Andy Cress
#
Name: ipmiutil
-Version: 3.0.8
+Version: 3.1.0
Release: 1%{?dist}
Summary: Easy-to-use IPMI server management utilities
License: BSD
@@ -16,8 +16,8 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%define unit_dir %{_unitdir}
%define init_dir %{_initrddir}
%define systemd_fls %{_datadir}/%{name}
-%define bldreq0 openssl-devel
-%define bldreq_extra gcc gcc-c++ libtool
+%define bldreq0 openssl-devel gcc gcc-c++
+%define bldreq_extra libtool
%if 0%{?fedora} >= 15
%define bldreq_extra systemd autoconf automake systemd-units
Requires: systemd-units
@@ -25,6 +25,9 @@ Group: System Environment/Base
%if 0%{?fedora} == 16
%define unit_dir /lib/systemd/system
%endif
+%if 0%{?fedora} >= 25
+%define bldreq_extra systemd autoconf automake systemd-units qrencode-libs
+%endif
%endif
%if 0%{?rhel} >= 7
%define bldreq_extra autoconf automake systemd-units
@@ -33,7 +36,7 @@ Group: System Environment/Base
%define bldreq0 libopenssl-devel
%endif
%if 0%{?suse_version} >= 1210
-%define bldreq_extra gcc gcc-c++ libtool systemd
+%define bldreq_extra libtool systemd
%define req_systemd 1
%define systemd_fls %{unit_dir}
# Requires: %{?systemd_requires}
@@ -172,7 +175,7 @@ rm -rf %{buildroot}
%files devel
%defattr(-,root,root)
-# %{_datadir}/%{name} is used by both ipmiutil and ipmituil-devel
+# .{_datadir}/.{name} is used by both ipmiutil and ipmiutil-devel
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/ipmi_sample.c
%{_datadir}/%{name}/ipmi_sample_evt.c
diff --git a/lib/Makefile b/lib/Makefile
index f56f858..9f6e3fc 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -47,12 +47,12 @@ CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run aclocal-1.11
-AMTAR = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run tar
+ACLOCAL = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run aclocal-1.11
+AMTAR = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run tar
AR = ar
-AUTOCONF = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run autoconf
-AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run autoheader
-AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run automake-1.11
+AUTOCONF = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run autoconf
+AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run autoheader
+AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run automake-1.11
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
@@ -101,7 +101,7 @@ LIB_DIR = /usr/lib64
LIPO =
LN_S = ln -s
LTLIBOBJS =
-MAKEINFO = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run makeinfo
+MAKEINFO = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NM = /usr/bin/nm -B
NMEDIT =
@@ -115,9 +115,9 @@ OTOOL64 =
PACKAGE = ipmiutil
PACKAGE_BUGREPORT =
PACKAGE_NAME = ipmiutil
-PACKAGE_STRING = ipmiutil 3.0.8
+PACKAGE_STRING = ipmiutil 3.1.0
PACKAGE_TARNAME = ipmiutil
-PACKAGE_VERSION = 3.0.8
+PACKAGE_VERSION = 3.1.0
PATH_SEPARATOR = :
PKG_DIR = /root/rpmbuild
RANLIB = ranlib
@@ -129,11 +129,11 @@ SHR_LINK = libipmiutil.so.1
STRIP = strip
SUBDIR_S = doc scripts lib util
SYSTEMD_DIR = /usr/share/ipmiutil
-VERSION = 3.0.8
-abs_builddir = /usr/dev/ipmiutil-3.0.8/lib
-abs_srcdir = /usr/dev/ipmiutil-3.0.8/lib
-abs_top_builddir = /usr/dev/ipmiutil-3.0.8
-abs_top_srcdir = /usr/dev/ipmiutil-3.0.8
+VERSION = 3.1.0
+abs_builddir = /usr/dev/ipmiutil-3.1.0/lib
+abs_srcdir = /usr/dev/ipmiutil-3.1.0/lib
+abs_top_builddir = /usr/dev/ipmiutil-3.1.0
+abs_top_srcdir = /usr/dev/ipmiutil-3.1.0
ac_ct_CC = gcc
ac_ct_DUMPBIN =
am__include = include
@@ -161,7 +161,7 @@ host_vendor = redhat
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
-install_sh = ${SHELL} /usr/dev/ipmiutil-3.0.8/install-sh
+install_sh = ${SHELL} /usr/dev/ipmiutil-3.1.0/install-sh
libdir = $(iprefix)/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
diff --git a/lib/libipmiutil.pc b/lib/libipmiutil.pc
index 81d8d4e..54373d5 100644
--- a/lib/libipmiutil.pc
+++ b/lib/libipmiutil.pc
@@ -8,6 +8,6 @@ nutuser=@RUN_AS_USER@
Name: libipmiutil
Description: Library for ipmiutil
-Version: 3.0.8
+Version: 3.1.0
Libs: -L${libdir} -lipmi_lanplus
Cflags: -I${includedir}
diff --git a/scripts/Makefile b/scripts/Makefile
index 4f4124a..a2b013c 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -46,12 +46,12 @@ CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run aclocal-1.11
-AMTAR = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run tar
+ACLOCAL = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run aclocal-1.11
+AMTAR = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run tar
AR = ar
-AUTOCONF = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run autoconf
-AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run autoheader
-AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run automake-1.11
+AUTOCONF = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run autoconf
+AUTOHEADER = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run autoheader
+AUTOMAKE = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run automake-1.11
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
@@ -99,7 +99,7 @@ LIB_DIR = /usr/lib64
LIPO =
LN_S = ln -s
LTLIBOBJS =
-MAKEINFO = ${SHELL} /usr/dev/ipmiutil-3.0.8/missing --run makeinfo
+MAKEINFO = ${SHELL} /usr/dev/ipmiutil-3.1.0/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NM = /usr/bin/nm -B
NMEDIT =
@@ -113,9 +113,9 @@ OTOOL64 =
PACKAGE = ipmiutil
PACKAGE_BUGREPORT =
PACKAGE_NAME = ipmiutil
-PACKAGE_STRING = ipmiutil 3.0.8
+PACKAGE_STRING = ipmiutil 3.1.0
PACKAGE_TARNAME = ipmiutil
-PACKAGE_VERSION = 3.0.8
+PACKAGE_VERSION = 3.1.0
PATH_SEPARATOR = :
PKG_DIR = /root/rpmbuild
RANLIB = ranlib
@@ -127,11 +127,11 @@ SHR_LINK = libipmiutil.so.1
STRIP = strip
SUBDIR_S = doc scripts lib util
SYSTEMD_DIR = /usr/share/ipmiutil
-VERSION = 3.0.8
-abs_builddir = /usr/dev/ipmiutil-3.0.8/scripts
-abs_srcdir = /usr/dev/ipmiutil-3.0.8/scripts
-abs_top_builddir = /usr/dev/ipmiutil-3.0.8
-abs_top_srcdir = /usr/dev/ipmiutil-3.0.8
+VERSION = 3.1.0
+abs_builddir = /usr/dev/ipmiutil-3.1.0/scripts
+abs_srcdir = /usr/dev/ipmiutil-3.1.0/scripts
+abs_top_builddir = /usr/dev/ipmiutil-3.1.0
+abs_top_srcdir = /usr/dev/ipmiutil-3.1.0
ac_ct_CC = gcc
ac_ct_DUMPBIN =
am__include = include
@@ -159,7 +159,7 @@ host_vendor = redhat
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
-install_sh = ${SHELL} /usr/dev/ipmiutil-3.0.8/install-sh
+install_sh = ${SHELL} /usr/dev/ipmiutil-3.1.0/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
diff --git a/setver b/setver
index 656235d..aa9c119 100755
--- a/setver
+++ b/setver
@@ -6,7 +6,7 @@
# [doinc?] is 'n'.
# if [doinc?] is 'r', reverse increment (decrement).
#
-ver=3.0.7
+ver=3.1.0
rel=1
tmped=/tmp/edver.tmp
tmpspec=/tmp/edspec.tmp
@@ -197,12 +197,12 @@ q
ed debpkg/changelog <$tmped
fi
-cmdc="ialarms.c icmd.c iconfig.c ievents.c ifru.c igetevent.c ihealth.c
+cmdc="ifruset.c iseltime.c ievents.c idiscover.c ipmiutil.c"
+otherc="ialarms.c icmd.c iconfig.c ievents.c ifru.c igetevent.c ihealth.c
ilan.c ireset.c isel.c isensor.c iserial.c isol.c iwdt.c itsol.c
- ifruset.c ipicmg.c ifirewall.c idcmi.c iuser.c iseltime.c
+ ipicmg.c ifirewall.c idcmi.c iuser.c iekanalyzer.c ifwum.c ihpm.c
oem_intel.c oem_kontron.c oem_dell.c oem_hp.c oem_sun.c oem_asus.c
- oem_fujitsu.c oem_lenovo.c oem_newisys.c oem_quanta.c oem_supermicro.c
- iekanalyzer.c ifwum.c ihpm.c idiscover.c"
+ oem_fujitsu.c oem_lenovo.c oem_newisys.c oem_quanta.c oem_supermicro.c"
if [ $skipinc -ne 1 ]
then
@@ -211,7 +211,7 @@ then
#utilc="ipmiutil.c ialarms.c icmd.c iconfig.c igetevent.c ihealth.c
#ifru.c ilan.c ireset.c isensor.c isel.c iserial.c isol.c iwdt.c
#ievents.c idiscover.c ipmi_port.c"
- utilc="ipmiutil.c $cmdc ipmi_port.c"
+ utilc="$cmdc"
echo $utilc >$cmdf
cd util
@@ -239,8 +239,10 @@ then
alias=ipmi_port
elif [ "$f" = "iseltime.c" ]; then
alias=iseltime
+ do_incr=0
elif [ "$f" = "ifruset.c" ]; then
alias=ifruset
+ do_incr=0
elif [ "$f" = "idiscover.c" ]; then
do_incr=0
elif [ "$f" = "iekanalyzer.c" ]; then
diff --git a/util/ialarms.c b/util/ialarms.c
index d9c6d5e..2fdfb45 100644
--- a/util/ialarms.c
+++ b/util/ialarms.c
@@ -75,8 +75,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil alarms";
+#else
static char * progver = "3.08";
static char * progname = "ialarms";
+#endif
static char fdebug = 0;
static char fbmctam = 0;
static char fpicmg = 0;
diff --git a/util/icmd.c b/util/icmd.c
index ed89004..a116b6f 100644
--- a/util/icmd.c
+++ b/util/icmd.c
@@ -78,8 +78,13 @@ extern void ipmi_lan_set_timeout(int ipmito, int tries, int pingto);
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil cmd";
+#else
static char * progver = "3.08";
static char * progname = "icmd";
+#endif
static char fdebug = 0;
static char fquiet = 0;
static char fset_mc = 0;
diff --git a/util/iconfig.c b/util/iconfig.c
index b9da59b..25e0c67 100644
--- a/util/iconfig.c
+++ b/util/iconfig.c
@@ -172,8 +172,13 @@ typedef struct
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil config";
+#else
static char * progver = "3.08";
static char * progname = "iconfig";
+#endif
static char fdebug = 0;
static char fipmilan = 0;
static FILE * fd_bmc = NULL;
diff --git a/util/idcmi.c b/util/idcmi.c
index f35e711..ec3ec0f 100644
--- a/util/idcmi.c
+++ b/util/idcmi.c
@@ -61,8 +61,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "isensor.h"
#include "idcmi.h"
-static char * progname = "idcmi";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil dcmi";
+#else
static char * progver = "3.08";
+static char * progname = "idcmi";
+#endif
extern char fdebug; /*from ipmicmd.c*/
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
diff --git a/util/ievents.c b/util/ievents.c
index b244b68..d37d5fd 100644
--- a/util/ievents.c
+++ b/util/ievents.c
@@ -76,8 +76,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define SELprintf printf
#define SMS_SA 0x41
#define SMI_SA 0x21
+#ifdef METACOMMAND
+extern char *progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil events";
+#else
static char *progver = "3.08";
static char *progname = "ievents";
+#endif
static char fsensdesc = 0; /* 1= get extended sensor descriptions*/
static char fcanonical = 0; /* 1= show canonical, delimited output*/
static char fgetdevid = 0; /* 1= get device ID */
@@ -86,6 +91,7 @@ static char futc = 0; /* 1= raw UTC time */
static uchar thr_sa = SMS_SA; /* 0x41 (Sms) used by ipmitool PlarformEvents */
static void *sdrcache = NULL;
static int pet_guid = 8; /*bytes in the input data for the GUID*/
+static int iopt = -1; /*iana option*/
static char bcomma = ',';
static char bdelim = BDELIM; /* '|' */
#ifdef ALONE
@@ -593,7 +599,6 @@ uchar entity2sensor_type(uchar ent)
return(stype);
}
-
static char *mem_str(int off)
{
char *pstr;
@@ -604,121 +609,15 @@ static char *mem_str(int off)
case 0x03: pstr = "Memory Scrub Failed"; break;
case 0x04: pstr = "Memory Device Disabled"; break;
case 0x05: pstr = "ECC limit reached" ; break;
- case 0x07: pstr = "SMI Link Lane Fail Over"; break; /*Quanta QSSC_S4R*/
+ case 0x07: pstr = "ConfigError: SMI Link Lane FailOver"; break; /*Quanta QSSC_S4R*/
+ case 0x08: pstr = "Spare"; break; /*uses data3 */
+ case 0x09: pstr = "Memory Automatically Throttled"; break;
+ case 0x0A: pstr = "Critical Overtemperature"; break;
default: pstr = "Other Memory Error"; break;
}
return(pstr);
}
-#ifdef NEW
-#define OEM_CODE_IN_BYTE2 0x80
-#define OEM_CODE_IN_BYTE3 0x20
-static int decode_mem_default(uchar data1, uchar data2, uchar data3,
- char *desc, int *psz)
-{
- char tmpdesc[80];
- int tmpsz = sizeof(tmpdesc);
- int dsz, incr;
- if ((psz == NULL) || (desc == NULL)) return -1;
- dsz = *psz;
- /*
- * Based on the above error, we need to find whcih memory slot or
- * Card has got the Errors/Sel Generated.
- */
- if(data1 & OEM_CODE_IN_BYTE2 ) {
- /* Find the Card Type */
- if((0x0F != (data2 >> 4)) && ((data2 >> 4) < 0x08))
- {
- tmpData = ('A'+ (data2 >> 4));
- if( (sensor_type == SENSOR_TYPE_MEMORY ) && (0x0B == rec->sel_type.standard_type.event_type) )
- {
- snprintf(tmpdesc, tmpsz, "Bad Card %c", tmpData);
- } else {
- snprintf(tmpdesc, tmpsz, "Card %c", tmpData);
- }
- strcat(desc, tmpdesc);
- } /* Find the Bank Number of the DIMM */
- if (0x0F != (data2 & MASK_LOWER_NIBBLE))
- {
- if(0x51 == version)
- {
- snprintf(tmpdesc, tmpsz, "Bank %d", ((data2 & 0x0F)+1));
- strcat(desc, tmpdesc);
- } else {
- incr = (data2 & 0x0f) << 3;
- }
- }
-
- }
- /* Find the DIMM Number of the Memory which has Generated the Fault or Sel */
- if(data1 & OEM_CODE_IN_BYTE3 )
- {
- // Based on the IPMI Spec Need Identify the DIMM Details.
- // For the SPEC 1.5 Only the DIMM Number is Valid.
- if(0x51 == version)
- {
- snprintf(tmpdesc, tmpsz, "DIMM %c", ('A'+ data3));
- strcat(desc, tmpdesc);
- }
- /* For the SPEC 2.0 Decode the DIMM Number as it supports more*/
- else if( ((data2 >> 4) > 0x07) && (0x0F != (data2 >> 4) ))
- {
- strcpy(dimmStr, " DIMM");
- str = desc+strlen(desc);
- dimmsPerNode = 4;
- if(0x09 == (data2 >> 4)) dimmsPerNode = 6;
- else if(0x0A == (data2 >> 4)) dimmsPerNode = 8;
- else if(0x0B == (data2 >> 4)) dimmsPerNode = 9;
- else if(0x0C == (data2 >> 4)) dimmsPerNode = 12;
- else if(0x0D == (data2 >> 4)) dimmsPerNode = 24;
- else if(0x0E == (data2 >> 4)) dimmsPerNode = 3;
- count = 0;
- for (i = 0; i < 8; i++)
- {
- if (BIT(i) & data3)
- {
- if(count)
- {
- strcat(str,",");
- count = 0x00;
- }
- node = (incr + i)/dimmsPerNode;
- dimmNum = ((incr + i)%dimmsPerNode)+1;
- dimmStr[5] = node + 'A';
- sprintf(tmpdesc,"%d",dimmNum);
- for(j = 0; j < strlen(tmpdesc);j++)
- dimmStr[6+j] = tmpdesc[j];
- dimmStr[6+j] = '\0';
- strcat(str,dimmStr); // final DIMM Details.
- count++;
- }
- }
- } else {
- strcpy(dimmStr, " DIMM");
- str = desc+strlen(desc);
- count = 0;
- for (i = 0; i < 8; i++)
- {
- if (BIT(i) & data3)
- {
- // check if more than one DIMM, if so add a comma to the string.
- sprintf(tmpdesc,"%d",(i + incr + 1));
- if(count)
- {
- strcat(str,",");
- count = 0x00;
- }
- for(j = 0; j < strlen(tmpdesc);j++)
- dimmStr[5+j] = tmpdesc[j];
- dimmStr[5+j] = '\0';
- strcat(str, dimmStr);
- count++;
- }
- }
- }
- }
-}
-#endif
#if defined(METACOMMAND)
/* METACOMMAND is defined for ipmiutil meta-command build. */
@@ -751,7 +650,8 @@ static int default_mem_desc(uchar b2, uchar b3, char *desc, int *psz)
else bdata = b3; /* normal case */
array = (bdata & 0xc0) >> 6;
dimm = bdata & 0x3f;
- n = sprintf(desc,"DIMM[%d]",dimm);
+ if (bdata == 0xFF) n = sprintf(desc,DIMM_UNKNOWN);
+ else n = sprintf(desc,DIMM_NUM,dimm);
*psz = n;
return(0);
}
@@ -803,10 +703,13 @@ static int GetSensorType(int snum, uchar *stype, uchar *rtype)
* SMBIOS type 17, and the descriptions vary for each baseboard.
* We'll just show the index here by default.
* Do the SMBIOS lookup if not standalone build. */
+int g_vend_id = VENDOR_INTEL; /*assume a default of Intel*/
int strlen_(const char *s) { return((int)strlen(s)); }
-// char * get_iana_str(int vend) { return(""); } *from subs.c*/
-void set_iana(int vend) { return; }
+char *get_iana_str(int vend) { return(""); } /*from subs.c*/
+void set_iana(int vend) { g_vend_id = vend; return; }
+char is_remote(void) { return(1); } /* act as if remote with standalone */
+
int get_MemDesc(int array, int idimm, char *desc, int *psz)
{
/* standalone, so use the default method for the DIMM index */
@@ -816,11 +719,9 @@ int get_MemDesc(int array, int idimm, char *desc, int *psz)
void get_mfgid(int *vend, int *prod)
{
if ((vend == NULL) || (prod == NULL)) return;
- *vend = VENDOR_INTEL; /*assume a default of Intel*/
+ *vend = g_vend_id; /*assume a default of Intel*/
*prod = 0;
}
-char is_remote(void)
-{ return(1); /* act as if remote with standalone utility */ }
char * decode_rv(int rv)
{
static char mystr[30];
@@ -887,6 +788,38 @@ extern char * decode_rv(int rv); /*from ipmilan.c*/
extern void dump_buf(char *tag, uchar *pbuf, int sz, char fshowascii);
#endif
+static int decode_mem_default(uchar b1, uchar b2, uchar b3, uchar etype, char *desc, int *psz)
+{
+ int cpu, dimm, n;
+ int rv = -1;
+ int offset = 0;
+ uchar bdata;
+
+ if ((desc == NULL) || (psz == NULL)) return -1;
+ offset = (b1 & 0x0F);
+ if ((b1 & 0x20) != 0) { bdata = b3; } /*dimm data in byte 3*/
+ else if (b2 == 0xff) { bdata = b3; } /*ff is reserved*/
+ else { bdata = b2; } /*if here, should also have (b1 & 0x80)*/
+
+ if (bdata == 0xFF) n = sprintf(desc,DIMM_UNKNOWN);
+ else {
+ cpu = (bdata & 0xc0) >> 6;
+ dimm = (bdata & 0x3F);
+ n = sprintf(desc,DIMM_NUM,dimm);
+ /* Use DMI if we get confirmation about cpu/dimm indices. */
+ if (! is_remote()) {
+ fsm_debug = fdebug;
+ rv = get_MemDesc(cpu,dimm,desc,psz);
+ if (rv != 0) n = sprintf(desc,DIMM_NUM,dimm);
+ }
+ }
+ *psz = n;
+ if (fdebug)
+ printf("decode_mem_default: bdata=%02x(%d) %d dimm=%d\n",bdata,bdata,offset,dimm);
+ rv = 0;
+ return(rv);
+} /*end decode_mem_default*/
+
int new_event(uchar *buf, int len)
{
int rlen, rv;
@@ -1335,6 +1268,7 @@ int get_sensor_tag(int isdr, int genid, uchar snum, char *tag,
rv = ERR_NOT_FOUND; /*got tag, but did not get SDR*/
}
}
+ if (rv != 0) strcpy(tag,"na");
if (fdebug) printf("get_sensor_tag(%d): find_sdr(%x,%x) rv=%d tag=/%s/\n",
fsensdesc,snum,genid,rv,tag);
return(rv);
@@ -1537,7 +1471,7 @@ void format_event(ushort id, time_t timestamp, int sevid, ushort genid,
gstr, bdelim, ptype, bdelim,
psens, bdelim, pstr, more );
} else {
- snprintf(outbuf,outsz,"%04x %s %s %s %s #%02x %s%s %s\n",
+ snprintf(outbuf,outsz,"%04x %s %s %s %s #%02x %s %s %s\n",
id, timestr, get_sev_str(sevid),
gstr, ptype, snum, psens, pstr, more);
}
@@ -1589,6 +1523,7 @@ int decode_sel_entry( uchar *pevt, char *outbuf, int szbuf)
uchar *pc;
SEL_RECORD *psel;
uchar fdeassert = 0;
+ uchar etype;
uchar sev = SEV_INFO;
uchar sdr[MAX_BUFFER_SIZE]; /*sdr usu <= 65 bytes*/
int isdr = 0;
@@ -1607,6 +1542,7 @@ int decode_sel_entry( uchar *pevt, char *outbuf, int szbuf)
}
get_mfgid(&vend,&prod); /*saved from ipmi_getdeviceid */
psel = (SEL_RECORD *)pevt;
+ etype = psel->event_trigger;
j = decode_sel_oem(vend,pevt,outbuf,szbuf,fsensdesc,fdebug);
if (j == 0) return(0); /*successful, have the description*/
@@ -1903,6 +1839,7 @@ int decode_sel_entry( uchar *pevt, char *outbuf, int szbuf)
if (i == 0) sev = SEV_MIN; /*correctable ECC*/
else sev = SEV_MAJ;
if (fdebug) printf("DIMM(%d) vend=%x prod=%x\n",j,vend,prod);
+ msz = sizeof(mdesc);
/* For Intel S5500/S2600 see decode_mem_intel */
if (vend == VENDOR_INTEL) {
decode_mem_intel(prod,b2,b3,mdesc,&msz);
@@ -1911,8 +1848,10 @@ int decode_sel_entry( uchar *pevt, char *outbuf, int szbuf)
(vend == VENDOR_SUPERMICROX)) {
decode_mem_supermicro(prod,b2,b3,mdesc,&msz);
sprintf(mystr,"%s%c %s",mem_str(i),bcomma,mdesc);
- } else {
- sprintf(mystr,"%s%c DIMM[%d]",mem_str(i),bcomma,j);
+ } else { /*decode_mem_raw*/
+ decode_mem_default(psel->event_data1,b2,b3,etype,mdesc,&msz);
+ sprintf(mystr,"%s%c %s",mem_str(i),bcomma,mdesc);
+ //old: sprintf(mystr,"%s%c DIMM[%d]",mem_str(i),bcomma,j);
/* DIMM[2] = 3rd one (zero-based index) */
}
}
@@ -1920,7 +1859,7 @@ int decode_sel_entry( uchar *pevt, char *outbuf, int szbuf)
break;
case 0x0F: /*System Firmware events, incl POST Errs*/
sev = SEV_MAJ; /*usu major, but platform-specific*/
- switch (psel->event_data1)
+ switch (psel->event_data1 & 0x0f)
{
case 0x00: /* System firmware errors */
i = psel->event_data2;
@@ -1960,7 +1899,7 @@ int decode_sel_entry( uchar *pevt, char *outbuf, int szbuf)
psel->event_data2,
psel->event_data3, &sev);
if (pstr == NULL)
- pstr = "POST Error"; /*default string*/
+ pstr = "POST Event"; /*default string*/
} /*end switch(data1)*/
break;
case 0x13: /*Crit Int*/
@@ -2400,19 +2339,18 @@ int i_events(int argc, char **argv)
fPET = 1; /*incoming data is in PET format*/
break;
case 'u': futc = 1; break; /*use raw UTC time*/
-#ifndef ALONE
+ case 'M': /* Set manufacturer IANA */
case 'o': /*specify OEM IANA manufacturer id */
if (argc > 1) { /*next argv is IANA number */
- i = atoi(argv[1]);
- printf("setting IANA to %d (%s)\n",i,get_iana_str(i));
- set_iana(i);
+ iopt = atoi(argv[1]);
+ printf("setting IANA to %d (%s)\n",iopt,get_iana_str(iopt));
+ set_iana(iopt);
argc--; argv++;
} else {
- printf("option -%c requires an argument\n",c);
- rv = ERR_BAD_PARAM;
- }
+ printf("option -%c requires an argument\n",c);
+ rv = ERR_BAD_PARAM;
+ }
break;
-#endif
case 't': /*PET format Trap, use all data*/
/* This may be helpful if all bytes are available, or if
* the GUID is relevant. */
@@ -2497,7 +2435,7 @@ int i_events(int argc, char **argv)
default: /*unknown option*/
printf("Unknown option -%c\n",c);
show_usage();
- rv = ERR_USAGE;
+ rv = ERR_USAGE;
goto do_exit;
break;
}
diff --git a/util/ievents.h b/util/ievents.h
index 71bc449..c9a423c 100644
--- a/util/ievents.h
+++ b/util/ievents.h
@@ -45,6 +45,9 @@ int get_sensor_tag(int isdr, int genid, uchar snum, char *tag,
void format_event(ushort id, time_t timestamp, int sevid, ushort genid,
char *ptype, uchar snum, char *psens, char *pstr, char *more,
char *outbuf, int outsz);
+
+#define DIMM_UNKNOWN "DIMM_unknown"
+#define DIMM_NUM "DIMM(%d)"
/*
* set_sel_opts is used to specify options for showing/decoding SEL events.
* sensdesc : 0 = simple, no sensor descriptions
diff --git a/util/ifirewall.c b/util/ifirewall.c
index e410a45..5708492 100644
--- a/util/ifirewall.c
+++ b/util/ifirewall.c
@@ -63,8 +63,13 @@
#include "ifirewall.h"
/* global variables */
-static char * progname = "ifirewall";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil firewall";
+#else
static char * progver = "3.08";
+static char * progname = "ifirewall";
+#endif
static char fdebug = 0;
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
diff --git a/util/ifru.c b/util/ifru.c
index cc866d8..effa9b7 100644
--- a/util/ifru.c
+++ b/util/ifru.c
@@ -113,10 +113,13 @@ extern int get_LastError( void ); /* ipmilan.c */
extern int GetSDRRepositoryInfo(int *nret, int *fdev); /*isensor.h*/
#ifdef METACOMMAND
extern int ipmi_kontronoem_main(void * intf, int argc, char ** argv);
+extern char *progver; /*from ipmiutil.c*/
+static char *progname = "ipmiutil fru";
+#else
+static char *progver = "3.08";
+static char *progname = "ifru";
#endif
-static char *progname = "ifru";
-static char *progver = "3.08";
static int vend_id = 0;
static int prod_id = 0;
static char fdebug = 0;
@@ -1643,7 +1646,7 @@ int i_fru(int argc, char **argv)
char do_reserve = 1;
char devstr[32];
- printf("%s: version %s\n",progname,progver);
+ printf("%s version %s\n",progname,progver);
parse_lan_options('V',"4",0); /*default to admin privilege*/
while ( (c = getopt( argc, argv,"a:bcd:efhkl:m:n:i:p:r:s:t:v:xyzT:V:J:EYF:P:N:R:U:Z:?")) != EOF )
diff --git a/util/ifruset.c b/util/ifruset.c
index 0a9ac00..fbde21e 100644
--- a/util/ifruset.c
+++ b/util/ifruset.c
@@ -105,8 +105,13 @@ extern void fmt_time(time_t etime, char *buf, int bufsz); /*see ievents.c*/
#define IPROD_FRUID 6
#define IPROD_OEM 7
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char *progname = "ipmiutil fruset";
+#else
+static char * progver = "3.08";
static char *progname = "ifruset";
-static char *progver = "3.08";
+#endif
static char fdebug = 0;
static char fpicmg = 0;
static char fonlybase = 0;
@@ -1215,7 +1220,7 @@ main(int argc, char **argv)
char *s1;
FILE *fp;
- printf("%s: version %s\n",progname,progver);
+ printf("%s version %s\n",progname,progver);
parse_lan_options('V',"4",0); /*request admin priv by default*/
while ( (c = getopt( argc, argv,"a:bcd:h:i:f:m:n:o:p:r:s:u:v:xyz:T:V:J:EYF:P:N:R:U:Z:?")) != EOF )
switch(c) {
diff --git a/util/igetevent.c b/util/igetevent.c
index 1cda21c..f4c75d6 100644
--- a/util/igetevent.c
+++ b/util/igetevent.c
@@ -168,8 +168,13 @@ extern void free_sdr_cache(uchar *pret); /*see isensor.c*/
/*
* Global variables
*/
-static char * progname = "igetevent";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil getevent";
+#else
static char * progver = "3.08";
+static char * progname = "igetevent";
+#endif
static char fdebug = 0;
static char fipmilan = 0;
static char frunonce = 0;
diff --git a/util/ihealth.c b/util/ihealth.c
index dd9be29..f985d83 100644
--- a/util/ihealth.c
+++ b/util/ihealth.c
@@ -82,8 +82,13 @@ extern int oem_supermicro_get_firmware_str(char *pstr, int sz); /*oem_supermicro
/*
* Global variables
*/
-static char * progname = "ihealth";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil health";
+#else
static char * progver = "3.08";
+static char * progname = "ihealth";
+#endif
static char fdebug = 0;
static char fipmilan = 0;
static char fcanonical = 0;
diff --git a/util/ilan.c b/util/ilan.c
index a6e91a3..8364c88 100644
--- a/util/ilan.c
+++ b/util/ilan.c
@@ -305,8 +305,13 @@ extern char *get_sensor_type_desc (uchar stype); /*from ievents.c */
/*
* Global variables
*/
-static char * progname = "ilan";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil lan";
+#else
static char * progver = "3.08";
+static char * progname = "ilan";
+#endif
static char fdebug = 0;
static char fipmilan = 0;
static char fIPMI10 = 0; /* =1 if IPMI v1.0 or less */
diff --git a/util/ipicmg.c b/util/ipicmg.c
index 67ce69e..4aaf87d 100644
--- a/util/ipicmg.c
+++ b/util/ipicmg.c
@@ -80,8 +80,13 @@
#define PICMG_EKEY_AMC_MAX_DEVICE 15 /* 4 bits */
/* Global data */
-static char * progname = "ipicmg";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil picmg";
+#else
static char * progver = "3.08";
+static char * progname = "ipicmg";
+#endif
static char fdebug = 0;
static char fset_mc = 0;
static uint8_t g_bus = PUBLIC_BUS;
diff --git a/util/ipmiutil.c b/util/ipmiutil.c
index 3d7d91d..e2a23d4 100644
--- a/util/ipmiutil.c
+++ b/util/ipmiutil.c
@@ -57,7 +57,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ipmiutil.h"
static char *progname = "ipmiutil";
-static char *progver = "3.08";
+char *progver = "3.10";
// static char fdebug = 0;
/*int ipmiutil(int argc, char **argv); */
@@ -136,8 +136,8 @@ main(int argc, char **argv)
int i;
char *psubcmd = "";
- printf("%s ver %s\n", progname,progver);
if (argc < 2) {
+ printf("%s ver %s\n", progname,progver);
show_usage();
ret = ERR_USAGE;
goto do_exit;
@@ -168,7 +168,7 @@ main(int argc, char **argv)
for (i = 0; i < NSUBCMDS; i++)
{
if (strcmp(argv[1],subcmds[i].tag) == 0) {
- psubcmd = argv[1];
+ psubcmd = argv[1];
argc--;
argv++;
ret = subcmds[i].rtn(argc,argv);
diff --git a/util/ireset.c b/util/ireset.c
index 3853569..c668996 100644
--- a/util/ireset.c
+++ b/util/ireset.c
@@ -108,8 +108,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil reset";
+#else
static char * progver = "3.08";
static char * progname = "ireset";
+#endif
static uchar ipmi_maj;
static uchar ipmi_min;
static uchar sms_sa = 0x81;
diff --git a/util/isel.c b/util/isel.c
index ede4d52..63a1d42 100644
--- a/util/isel.c
+++ b/util/isel.c
@@ -161,8 +161,13 @@ typedef struct
#define RET_OFFSET 12 //byte offset to the record event trigger
#define RDATA_OFFSET 13 //byte offset to the record event data
-static char *progname = "isel";
-static char *progver = "3.08";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil sel";
+#else
+static char * progver = "3.08";
+static char * progname = "isel";
+#endif
#ifdef WIN32
#define IDXFILE "sel.idx"
static char idxfile[80] = IDXFILE;
@@ -649,9 +654,10 @@ int i_sel(int argc, char **argv)
char DevRecord[16];
int c;
char *s1;
+ char *vend_param = NULL;
- printf("%s: version %s\n",progname,progver);
- while ((c = getopt(argc,argv,"a:b:cdef:h:i:l:m:np:rs:uwvxT:V:J:EYF:P:N:U:R:Z:?")) != EOF)
+ printf("%s version %s\n",progname,progver);
+ while ((c = getopt(argc,argv,"a:b:cdef:h:i:l:m:np:rs:uwvxM:T:V:J:EYF:P:N:U:R:Z:?")) != EOF)
switch(c) {
case 'a': faddsel = 1; /*undocumented option, to prevent misuse*/
addstr = optarg; /*text string, max 13 bytes, no date*/
@@ -696,6 +702,8 @@ int i_sel(int argc, char **argv)
case 'v': fonlyver = 1; break;
case 'w': fwritesel = 1; break;
case 'x': fdebug = 1; break;
+ case 'M': /* Manufacturing VendorId */
+ vend_param = optarg; break;
case 'p': /* port */
case 'N': /* nodename */
case 'U': /* remote username */
@@ -857,12 +865,13 @@ int i_sel(int argc, char **argv)
prod_id = DevRecord[9] + (DevRecord[10] << 8);
vend_id = DevRecord[6] + (DevRecord[7] << 8) + (DevRecord[8] << 16);
if (vend_id == VENDOR_INTEL) {
- if (prod_id == 0x003E) /*Urbanna NSN2U or CG2100*/
+ if (prod_id == 0x003E) /*Urbanna NSN2U or CG2100*/
set_max_kcs_loops(URNLOOPS); /*longer KCS timeout*/
}
} else {
goto do_exit;
}
+ if (vend_param != NULL) set_iana(atoi(vend_param));
ret = ReadSELinfo();
if (ret == 0 && !fonlyver) {
diff --git a/util/iseltime.c b/util/iseltime.c
index 41f628b..ee2144e 100644
--- a/util/iseltime.c
+++ b/util/iseltime.c
@@ -78,8 +78,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil seltime";
+#else
static char * progver = "3.08";
static char * progname = "iseltime";
+#endif
static char fdebug = 0;
static char fset = 0;
static uchar ipmi_maj = 0;
diff --git a/util/isensor.c b/util/isensor.c
index 286b19d..f140cdc 100644
--- a/util/isensor.c
+++ b/util/isensor.c
@@ -254,8 +254,13 @@ char *decode_entity_id(int id) {
/************************
* Global Data
************************/
-static char *progname = "isensor";
-static char *progver = "3.08";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil sensor";
+#else
+static char * progver = "3.08";
+static char * progname = "isensor";
+#endif
#ifdef WIN32
static char savefile[] = "%ipmiutildir%\\thresholds.cmd";
#else
@@ -3247,7 +3252,7 @@ int i_sensor(int argc, char **argv)
char *p;
char *s1;
- printf("%s: version %s\n",progname,progver);
+ printf("%s version %s\n",progname,progver);
while ( (c = getopt( argc, argv,"a:bcd:ef:g:h:i:j:k:l:m:n:opqrstu:vwxT:V:J:L:EYF:P:N:R:U:Z:?")) != EOF )
switch(c) {
diff --git a/util/iserial.c b/util/iserial.c
index cf69129..a9f3436 100644
--- a/util/iserial.c
+++ b/util/iserial.c
@@ -155,8 +155,13 @@ typedef struct
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil serial";
+#else
static char * progver = "3.08";
static char * progname = "iserial";
+#endif
static int vend_id = 0;
static int prod_id = 0;
static char fdebug = 0;
diff --git a/util/isol.c b/util/isol.c
index b8ccb1f..6b72b14 100644
--- a/util/isol.c
+++ b/util/isol.c
@@ -165,8 +165,13 @@ void dbglog( char *pattn, ... ); /*local prototype*/
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil sol";
+#else
static char * progver = "3.08";
static char * progname = "isol";
+#endif
static char fdebug = 0;
static char fpicmg = 0;
static char factivate = 0;
diff --git a/util/itsol.c b/util/itsol.c
index 6f508ef..e84bd5a 100644
--- a/util/itsol.c
+++ b/util/itsol.c
@@ -97,8 +97,13 @@ int gettimeofday(struct timeval *tv, struct timezone *tz);
extern int verbose;
extern char fdebug; /*from ipmicmd.c*/
-static char * progname = "itsol";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil tsol";
+#else
static char * progver = "3.08";
+static char * progname = "itsol";
+#endif
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
static uchar g_lun = BMC_LUN;
diff --git a/util/iuser.c b/util/iuser.c
index 9537f16..2a5e952 100644
--- a/util/iuser.c
+++ b/util/iuser.c
@@ -56,8 +56,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ipmicmd.h"
/* global variables */
-static char * progname = "iuser";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil user";
+#else
static char * progver = "3.08";
+static char * progname = "iuser";
+#endif
static char fdebug = 0;
static char fcanonical = 0;
static char bdelim = '|';
diff --git a/util/iwdt.c b/util/iwdt.c
index f73d045..de073a3 100644
--- a/util/iwdt.c
+++ b/util/iwdt.c
@@ -100,8 +100,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil wdt";
+#else
static char * progver = "3.08";
static char * progname = "iwdt";
+#endif
static char fdebug = 0;
static char fdontlog = 0;
static char fcanonical = 0;
diff --git a/util/mem_if.c b/util/mem_if.c
index 9be58a9..3fcc139 100644
--- a/util/mem_if.c
+++ b/util/mem_if.c
@@ -707,7 +707,7 @@ int get_MemDesc(UCHAR array, UCHAR dimm, char *desc, int *psize)
}
closeSmBios(VirtualAddress,SMBiosLen);
/* fill in a default if error */
- if ((rv != 0) && (desc != NULL)) sprintf(desc,"DIMM[%d]",dimm);
+ if ((rv != 0) && (desc != NULL)) sprintf(desc,"DIMM(%d)",dimm);
return rv;
} //get_MemDesc
diff --git a/util/oem_asus.c b/util/oem_asus.c
index 6aba5ba..ea971d0 100644
--- a/util/oem_asus.c
+++ b/util/oem_asus.c
@@ -60,8 +60,13 @@ extern uchar bitnum(ushort value); /*isensor.c*/
extern char fdebug; /*ipmicmd.c*/
void set_loglevel(int level); /*prototype */
-static char * progname = "iasusoem";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil asusoem";
+#else
static char * progver = "3.08";
+static char * progname = "iasusoem";
+#endif
static int verbose = 0;
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
diff --git a/util/oem_dell.c b/util/oem_dell.c
index 9f13b12..b474ee3 100644
--- a/util/oem_dell.c
+++ b/util/oem_dell.c
@@ -132,8 +132,13 @@ char NIC_Selection_Mode_String_12g[] [50] = {
"shared with failover all loms"
};
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil delloem";
+#else
static char * progver = "3.08";
static char * progname = "idelloem";
+#endif
static int verbose = 0;
static char fdebug = 0;
static uchar g_bus = PUBLIC_BUS;
@@ -5673,6 +5678,7 @@ char * get_dell_evt_desc(uchar *sel_rec, int *psev)
}
if(data1 & 0x20 )
{
+ strcat(desc, "ECC Error,");
if(0x51 == version)
{
snprintf(tmpdesc, SIZE_OF_DESC, "DIMM %c", (char)('A'+ data3));
diff --git a/util/oem_fujitsu.c b/util/oem_fujitsu.c
index 5963df2..f707cc5 100644
--- a/util/oem_fujitsu.c
+++ b/util/oem_fujitsu.c
@@ -52,8 +52,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* extern void get_mfgid(int *vend, int *prod); * from ipmicmd.h*/
/* extern int get_lan_options(); * from ipmicmd.h */
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil fujitsuoem";
+#else
static char * progver = "3.08";
static char * progname = "ifujitsuoem";
+#endif
static char fdebug = 0;
static char freadok = 1;
#define ERRLED 0 /*GEL - red Global Error LED*/
diff --git a/util/oem_hp.c b/util/oem_hp.c
index 705e8ed..f551176 100644
--- a/util/oem_hp.c
+++ b/util/oem_hp.c
@@ -44,8 +44,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ievents.h"
#include "isensor.h"
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil hpoem";
+#else
static char * progver = "3.08";
static char * progname = "ihpoem";
+#endif
static char *redund_str(uchar b)
{
diff --git a/util/oem_intel.c b/util/oem_intel.c
index a79e73a..e6d397d 100644
--- a/util/oem_intel.c
+++ b/util/oem_intel.c
@@ -83,8 +83,13 @@ extern char fdebug; /*ipmicmd.c*/
/*
* Global variables
*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil inteloem";
+#else
static char * progver = "3.08";
static char * progname = "iinteloem";
+#endif
static char fRelayBits = 0;
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
@@ -1081,7 +1086,7 @@ int decode_mem_intel(int prod, uchar b2, uchar b3, char *desc, int *psz)
if (! is_remote()) {
fsm_debug = fdebug;
rv = get_MemDesc(array,dimm,desc,psz);
- /* if (rv != 0) desc has "DIMM[%d}" */
+ /* if (rv != 0) desc has "DIMM(%d)" */
}
if (rv != 0) {
/* either remote, or get_MemDesc failed, use common product defaults*/
@@ -1107,7 +1112,8 @@ int decode_mem_intel(int prod, uchar b2, uchar b3, char *desc, int *psz)
n = strlen_(pstr);
strncpy(desc, pstr, n+1);
} else {
- n = sprintf(desc,"DIMM[%d]",dimm);
+ if (bdata == 0xFF) n = sprintf(desc,DIMM_UNKNOWN); /* invalid */
+ else n = sprintf(desc,DIMM_NUM,dimm);
}
*psz = n;
}
diff --git a/util/oem_kontron.c b/util/oem_kontron.c
index 170a304..9a21131 100644
--- a/util/oem_kontron.c
+++ b/util/oem_kontron.c
@@ -73,8 +73,13 @@ typedef uint32_t socklen_t;
#define FRU_TYPE_COMPONENT 0x01
#define FRU_TYPE_BASEBOARD 0x07
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil kontronoem";
+#else
static char * progver = "3.08";
static char * progname = "ikontronoem";
+#endif
const struct valstr ktc5520_post[] = { /*from EAS*/
{ 0x0003, "Start POST Init" },
{ 0x0004, "Check CMOS" },
diff --git a/util/oem_lenovo.c b/util/oem_lenovo.c
index 1f23e0f..d190fbc 100644
--- a/util/oem_lenovo.c
+++ b/util/oem_lenovo.c
@@ -61,8 +61,13 @@ extern uchar bitnum(ushort value); /*isensor.c*/
extern char fdebug; /*ipmicmd.c*/
void set_loglevel(int level); /*prototype */
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil lenovooem";
+#else
static char * progver = "3.08";
static char * progname = "ilenovooem";
+#endif
static int verbose = 0;
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
@@ -71,6 +76,68 @@ static uchar g_addrtype = ADDR_SMI;
static int vend_id = 0;
static int prod_id = 0;
+/* See oem_ibm_sel_map from ipmitool contrib, interpretation not verified yet */
+#define NIBMEVT 16
+struct { uchar stype; uchar snum; uchar etype;
+ uchar data1; uchar data2; uchar data3;
+ uchar sev; char *desc; } oem_ibm_events[NIBMEVT] = {
+0xC1, 0xFF, 0xFF, 0xFF, 0x01, 0x00, SEV_MIN, "CPU shutdown - Potential cause 'triple fault' a software address problem",
+0xC1, 0xFF, 0xFF, 0xFF, 0x02, 0x01, SEV_INFO, "Memory Mirrored Failover Occurred - System running from mirrored memory image",
+0xC1, 0xFF, 0xFF, 0xFF, 0x02, 0x04, SEV_INFO, "Memory hot replace event",
+0xC1, 0xFF, 0xFF, 0xFF, 0x02, 0x05, SEV_INFO, "Memory hot add event",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x00, SEV_INFO, "Scalability link down",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x01, SEV_INFO, "Scalability link up",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x02, SEV_INFO, "Scalability link double wide down",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x03, SEV_INFO, "Scalability link double wide up",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x80, SEV_INFO, "Scalability link PFA",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x81, SEV_INFO, "Scalability link invalid port",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x82, SEV_INFO, "Scalability link invalid node",
+0xC1, 0xFF, 0xFF, 0xFF, 0x03, 0x83, SEV_INFO, "Scalability link kill",
+0xE0, 0x00, 0x00, 0xFF, 0xFF, 0xFF, SEV_INFO, "Device OK",
+0xE0, 0x00, 0x01, 0xFF, 0xFF, 0xFF, SEV_MAJ, "Required ROM space not available",
+0xE0, 0x00, 0x02, 0xFF, 0xFF, 0xFF, SEV_MAJ, "Required I/O Space not available",
+0xE0, 0x00, 0x03, 0xFF, 0xFF, 0xFF, SEV_MAJ, "Required memory not available"
+};
+
+/*------------------------------------------------------------------------
+ * get_ibm_desc
+ * Uses the oem_ibm_events to decode IBM events not otherwise handled.
+ * Called by decode_sel_lenovo
+ *------------------------------------------------------------------------*/
+char * get_ibm_desc(uchar type, uchar num, uchar trig,
+ uchar data1, uchar data2, uchar data3, uchar *sev)
+{
+ int i;
+ char *pstr = NULL;
+
+ /* Use oem_ibm_events array for other misc descriptions */
+ data1 &= 0x0f; /*ignore top half of sensor offset for matching */
+ for (i = 0; i < NIBMEVT; i++) {
+ if ((oem_ibm_events[i].stype == 0xff) ||
+ (oem_ibm_events[i].stype == type)) {
+ if (oem_ibm_events[i].snum != 0xff &&
+ oem_ibm_events[i].snum != num)
+ continue;
+ if (oem_ibm_events[i].etype != 0xff &&
+ oem_ibm_events[i].etype != trig)
+ continue;
+ if (oem_ibm_events[i].data1 != 0xff &&
+ (oem_ibm_events[i].data1 & 0x0f) != (data1 & 0x0f))
+ continue;
+ if (oem_ibm_events[i].data2 != 0xff &&
+ oem_ibm_events[i].data2 != data2)
+ continue;
+ if (oem_ibm_events[i].data3 != 0xff &&
+ oem_ibm_events[i].data3 != data3)
+ continue;
+ /* have a match, use description */
+ pstr = (char *)oem_ibm_events[i].desc;
+ if (sev != NULL) *sev = oem_ibm_events[i].sev;
+ break;
+ }
+ } /*end for*/
+ return(pstr);
+} /* end get_ibm_desc() */
/*
* decode_sensor_lenovo
@@ -164,6 +231,15 @@ int decode_sensor_lenovo(uchar *sdr,uchar *reading,char *pstring, int slen)
rv = 0;
}
break;
+ case 0x17: /* RSA II Detect, Mem1 Detect (mfg=0002:0077) */
+ /* mfg=0002:0077 sensor type=17 evt=8 entity=b rval=0002, RSA II*/
+ /* mfg=0002:0077 sensor type=17 evt=8 entity=8 rval=0002, Mem1 */
+ switch(rval) {
+ case 0x02: pstr = "OK"; break;
+ default: pstr = "Unknown"; break;
+ }
+ rv = 0;
+ break;
case 0x1B: /* Front USB, nvDIMM Cable, etc. */
if (etype == 0x6F) {
/* 0x01 = connected/OK, 0x02 = cable connect error */
@@ -257,9 +333,9 @@ int decode_sel_lenovo(uchar *evt, char *outbuf, int outsz, char fdesc,
char mybuf[64];
char *type_str = "";
char *pstr = NULL;
- int sevid;
+ uchar sevid;
ushort genid;
- uchar snum;
+ uchar snum, etype;
uchar data1, data2, data3;
fdebug = fdbg;
@@ -269,21 +345,28 @@ int decode_sel_lenovo(uchar *evt, char *outbuf, int outsz, char fdesc,
snum = evt[11];
timestamp = evt[3] + (evt[4] << 8) + (evt[5] << 16) + (evt[6] << 24);
genid = evt[7] | (evt[8] << 8);
+ etype = evt[12];
data1 = evt[13];
data2 = evt[14];
data3 = evt[15];
- if (rectype == 0x02)
- {
- sprintf(mybuf,"%02x [%02x %02x %02x]", evt[12],data1,data2,data3);
- switch(evt[10]) { /*sensor type*/
- case 0xC0: /* OEM type */
- type_str = "OEM_type";
- pstr = "OEM Sensor ";
- sevid = SEV_MAJ;
- rv = -1;
- break;
- default: /*other sensor types*/
- break;
+
+ if (rectype == 0x02) {
+ sprintf(mybuf,"%02x [%02x %02x %02x]", etype,data1,data2,data3);
+ pstr = get_ibm_desc(evt[10], snum, etype, data1, data2, data3, &sevid);
+ if (pstr != NULL) {
+ type_str = "IBM_type";
+ rv = 0;
+ } else {
+ switch(evt[10]) { /*sensor type*/
+ case 0xC0: /* OEM type */
+ type_str = "OEM_type";
+ pstr = "OEM Sensor ";
+ sevid = SEV_MAJ;
+ rv = -1;
+ break;
+ default: /*other sensor types*/
+ break;
+ }
}
}
if (rv == 0) {
diff --git a/util/oem_newisys.c b/util/oem_newisys.c
index 62486d8..cf1d535 100644
--- a/util/oem_newisys.c
+++ b/util/oem_newisys.c
@@ -43,8 +43,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ipmicmd.h"
#include "ievents.h"
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil newisysoem";
+#else
static char * progver = "3.08";
static char * progname = "inewisysoem";
+#endif
static char fdebug = 0;
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
diff --git a/util/oem_quanta.c b/util/oem_quanta.c
index f41e4d2..0d774b9 100644
--- a/util/oem_quanta.c
+++ b/util/oem_quanta.c
@@ -45,8 +45,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
extern int decode_sensor_intel_nm(uchar *sdr,uchar *reading,
char *pstring,int slen); /*oem_intel.c*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil quantaoem";
+#else
static char * progver = "3.08";
static char * progname = "iquantaoem";
+#endif
static char fdbg = 0;
/*
diff --git a/util/oem_sun.c b/util/oem_sun.c
index 604caa7..84aa50f 100644
--- a/util/oem_sun.c
+++ b/util/oem_sun.c
@@ -108,8 +108,13 @@ static const struct valstr sunoem_led_mode_optvals[] = {
};
/* global variables */
-static char * progname = "isunoem";
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil sunoem";
+#else
static char * progver = "3.08";
+static char * progname = "isunoem";
+#endif
static char fdebug = 0;
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
diff --git a/util/oem_supermicro.c b/util/oem_supermicro.c
index 82d6647..62ecbfe 100644
--- a/util/oem_supermicro.c
+++ b/util/oem_supermicro.c
@@ -68,8 +68,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
void set_loglevel(int level); /*prototype */
extern char fsm_debug; /*mem_if.c*/
+#ifdef METACOMMAND
+extern char * progver; /*from ipmiutil.c*/
+static char * progname = "ipmiutil smcoem";
+#else
static char * progver = "3.08";
static char * progname = "ismcoem";
+#endif
static int verbose = 0;
static char fdebug = 0;
static uchar g_bus = PUBLIC_BUS;
@@ -513,12 +518,13 @@ int decode_sensor_supermicro(uchar *sdr,uchar *reading,char *pstring, int slen,
return(rv);
}
+extern int get_MemDesc(int array, int dimm, char *desc, int *psz); /*mem_if.c*/
#define NPAIRS 26
char rgpair[NPAIRS] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int decode_mem_supermicro(int prod, uchar b2, uchar b3, char *desc, int *psz)
{
int cpu, pair, dimm, n;
- int rv = -1;
+ int rv = 0;
int ver = 0;
uchar bdata;
if ((desc == NULL) || (psz == NULL)) return -1;
@@ -564,18 +570,17 @@ int decode_mem_supermicro(int prod, uchar b2, uchar b3, char *desc, int *psz)
if (pair > NPAIRS) pair = NPAIRS - 1;
dimm = (bdata & 0x0F) - 9; /*0x0A=dimmX1, 0x0B=dimmX2*/
if (dimm < 0)
- n = sprintf(desc,"unknown DIMM"); /* was ver 0 */
+ n = sprintf(desc,DIMM_UNKNOWN); /* invalid */
else
n = sprintf(desc,"P%d_DIMM%c%d",cpu,rgpair[pair],dimm);
}
-#ifdef DMIOK
/* Use DMI if we get confirmation about cpu/dimm indices. */
if (! is_remote()) {
fsm_debug = fdebug;
rv = get_MemDesc(cpu,dimm,desc,psz);
/* if (rv != 0) desc has "DIMM[%d}" */
}
-#endif
+ if ((bdata == 0xFF) || (rv != 0)) n = sprintf(desc,DIMM_UNKNOWN);
if (fdebug)
printf("decode_mem_supermicro: v%d bdata=%02x(%d) cpu=%d dimm=%d pair=%d\n",ver,bdata,bdata,cpu,dimm,pair);
diff --git a/util/subs.c b/util/subs.c
index 8965283..2ffcd01 100644
--- a/util/subs.c
+++ b/util/subs.c
@@ -436,8 +436,8 @@ static struct { int val; char *pstr; } mfgs[N_MFG] = {
{VENDOR_QUANTA, "Quanta"}, /*=7244. */
{VENDOR_MAGNUM, "Magnum Technologies"}, /*=5593. */
{VENDOR_SUPERMICROX, "xSuperMicro"}, /* 47488. used by Winbond/SuperMicro*/
- {VENDOR_HP, "HP"}, /* 0x00000B for HP */
- {VENDOR_DELL, "Dell"}, /*0x0002A2*/
+ {VENDOR_HP, "HP"}, /* 0x00000B (11.) for HP */
+ {VENDOR_DELL, "Dell"}, /*0x0002A2 (674.) */
{VENDOR_KONTRON, "Kontron"}, /*=0x003A98, 15000.*/
{VENDOR_SUPERMICRO, "SuperMicro"}, /*=0x002A7C, 10876. used in AOC-SIMSO*/
{VENDOR_FUJITSU, "Fujitsu-Siemens"}, /* 0x002880, 10368. */