Manage Dell C1100 CS24-TY Servers Using IPMI Tool

Thursday, December 22nd, 2022

Manage Dell C1100 CS24-TY Servers Using IPMI Tool

Dell C1100 servers can be managed using the IPMI tool which interfaces with the low level BMC interface.  Dell has also released a bmc specific utility that compliments the generic ipmitool to better configure and manage specific settings that are difficult to configure using ipmitool on its own.

Here's how to use both ipmitool and the bmc utilities.  First, login as root:

sudo -i

Now, install the ipmitool:

yum install OpenIPMI ipmitool -y

Start the ipmi service:

service ipmi start

Download the bmc utility:

mkdir -p ~/Downloads/bmc
cd ~/Downloads/bmc
wget -N "http://dinofly.com/files/dell_c1100/bmc-2014-10-15.zip"

If your system is running versions of PERL 5.26 or newer, download this version instead:

# For PERL 5.26+
wget -O "bmc-2014-10-15.zip" -N "http://dinofly.com/files/dell_c1100/bmc-2014-10-15_perl_5.26.zip"

Unzip the bmc tool and make it executable:

unzip bmc-2014-10-15.zip
chmod +x bmc

Here's how to change the BMC interface IP settings:

ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr x.x.x.x
ipmitool lan set 1 netmask x.x.x.x
ipmitool lan set 1 defgw ipaddr x.x.x.x
./bmc nic_mode set [dedicated|shared]
./bmc allinfo

If the BMC web interace is not responding, try this:

ipmitool bmc reset cold

Using Serial Over Lan SOL

If your system fails to boot and you are booted into an emergency shell and need to copy log files off of the remote system that is stored in ram and can't mount your file system, you can transfer the information using sol

On a linux laptop or computer, just install ipmitool, and then issue the following commands:

On the laptop or computer:

ipmitool -I lanplus -H [BMC_IP] -U [USER] -P [PASS] sol deactivate
ipmitool -I lanplus -H [BMC_IP] -U [USER] -P [PASS] sol set volatile-bit-rate 115.2 1

On the Virtual KVM (launched from Dell's Remote BMC web interface):

stty -F /dev/ttyS1 115200

On the laptop or computer:  

ipmitool -I lanplus -H [BMC_IP] -U [USER] -P [PASS] sol activate > my_log.txt

On the Virtual KVM (launched from Dell's Remote BMC web interface):

cat /run/initramfs/rdsosreport.txt > /dev/ttyS1

That will send the contents via sol to the client machine so you can upload the logs in a bug report later.  Super useful information I've learned!

Running bmc reset cold Before Reboot:

To make sure your system is always reachable in case the BMC is flooded or times out serving the web interface, make sure ipmitool bmc reset cold is run before system reboot.

sudo nano /etc/systemd/system/bmc-reset.service 

Paste the following in:

[Unit]
Description=Reset BMC on Reboot
DefaultDependencies=no
Before=reboot.target

[Service]
Type=oneshot
ExecStart=/usr/bin/ipmitool bmc reset cold
ExecStart=/usr/bin/sleep 120
RemainAfterExit=yes

[Install]
WantedBy=reboot.target

Enable the service:

sudo systemctl daemon-reload
sudo systemctl enable bmc-reset.service