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
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 On 7.2 on virutalbox I see this: $ uname -a Linux c7-vm 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux $ echo $(uname -n | sed -e 's/\..*//' ) c7-vm You have a typo in your script actual typed text?? -wes On Mon, May 16, 2016 at 2:57 PM, <m.roth at 5-cent.us> wrote:> 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 > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
In article <6e52db905de447530ff164eb9130a9fc.squirrel at host290.hostmonster.com>, <m.roth at 5-cent.us> wrote:> 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?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 -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org