Re: Bios editing from command line
<[email protected]> Sun, 22 Mar 2020 22:19:38 +0000
| Newsgroups | gmane.linux.hardware.dell.poweredge |
|---|---|
| Message-ID | <[email protected]> |
Mauricio,
You can do considerable modification of the BIOS from the Linux command line. Using racadm, omconfig and omreport. Sometimes, you can change the setting directly, but often it doesn't take effect until a reboot.
For instance, here is code to disable hyperthreading.
export PATH=$PATH:/opt/dell/srvadmin/sbin
racadm jobqueue delete -i JID_CLEARALL_FORCE
# After above command, it takes several seconds before it allows
# 'racadm get BIOS.ProcSettings.LogicalProc'. If run too quickly after, get this
# error:
#
# racadm get BIOS.ProcSettings.LogicalProc
# ERROR: RAC1019: The specified object is not supported for the current system
# configuration.
# Verify the object dependency using "racadm help <device
# class>.<groupname>.<objectname>", and retry the operation. For example,
# "racadm help NIC.VndrConfigGroup.1.VirtWWPN".
sleep 15
# to view if disabled.
# racadm get BIOS.ProcSettings.LogicalProc
HT_STATUS=$(racadm get BIOS.ProcSettings.LogicalProc | awk -F '=' '/^LogicalProc/ { print $2 }' | sed 's/ .*//')
#echo "retcode: $?"
#echo "HT_STATUS: $HT_STATUS"
if [[ "$HT_STATUS" == "" ]]
then
sleep 15
HT_STATUS=$(racadm get BIOS.ProcSettings.LogicalProc | awk -F '=' '/^LogicalProc/ { print $2 }' | sed 's/ .*//')
#echo "retcode: $?"
#echo "HT_STATUS: $HT_STATUS"
fi
if [[ "$HT_STATUS" == "Enabled" ]]
then
sleep 60
racadm set BIOS.ProcSettings.LogicalProc Disabled
retcode=$?
#echo "retcode: $retcode"
if [[ "$retcode" -ne 0 ]]
then
sleep 60
racadm set BIOS.ProcSettings.LogicalProc Disabled
fi
racadm jobqueue create BIOS.setup.1-1
# to view job queue.
# racadm jobqueue view
# Now reboot needed.
RPM_INFO "Disabling hyper-threading. Reboot after successful RPM installation, for the change to take effect."
Spike
Date: Fri, 20 Mar 2020 11:21:46 -0400
From: Mauricio Tavares <[email protected]>
To: linux-poweredge <[email protected]>
Subject: [Linux-PowerEdge] Bios editing from command line
Message-ID:
<CAHEKYV6iD_wtWxhWpJLMMzPNNhBNcupz4XE_gN4FKqbvGj4ebA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
How much monkeying around can I do to the bios from the linux command line in a poweredge using, say, openmanage? Can I set the bios?
------------------------------