Ipmitool And CentOS 7
On Dells running CentOS 6, we could use this command ipmitool delloem lcd set mode userdefined “$(uname -n | sed -e ‘s/\..*//’ )”
to set the little LCD screen to display the system name, In the latest sevens, it fails, and gives me usage for the command… which displays exactly that syntax.
Anyone have a clue?
mark
5 thoughts on - Ipmitool And CentOS 7
In 6.7 in virtualbox, when I do uname -a I see:
Linux localhost.localdomain 2.6.32-642.el6.x86_64 #1 SMP Tue May 10
17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Then I run your command:
echo $(uname -n | sed -e ‘s/\..*//’ )
and see:
localhost
In article <6e52db905de447530ff164eb9130a9fc.squirrel@host290.hostmonster.com>,
wrote:
What do you get if you put “echo” before “ipmitool” to see the whole command instead of executing it?
Have you tried running it with a literal name for testing?
And instead of munging the output of uname, you can just do $(hostname -s)
Cheers Tony
—————————- Original Message ————————–
In article <9cf631373071c5bea4449327175be454.squirrel@host290.hostmonster.com>,
wrote:
That was I, but I wasn’t suggesting $(uname -s), rather $(hostname -s)
Cheers Tony
I’ve also noticed an unexpected difference between ipmitool in CentOS 6 and
7.
The CentOS 6 ipmitool supports the IPMITOOL_OPTS environment variable but the CentOS 7 ipmitool does not.
I simply copy ipmitool from a CentOS 6 to work around this limitation.
– on CentOS 6
# which ipmitool
/usr/bin/ipmitool
# rpm -q –whatprovides `which ipmitool`
ipmitool-1.8.11-29.el6_7.x86_64
# ipmitool -V
ipmitool version 1.8.11
– on CentOS 7
# which ipmitool
/usr/bin/ipmitool
# rpm -q –whatprovides `which ipmitool`
ipmitool-1.8.13-8.el7_1.x86_64
# ipmitool -V
ipmitool version 1.8.13