Forked from ontheklaud/setup_idrac_on_centos7.sh
Last active
September 25, 2023 20:43
-
-
Save emanuelserpa/8e764d873c951d1d20f7b195594ca41d to your computer and use it in GitHub Desktop.
Live setup/config of Dell iDRAC on CentOS 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 0. Get iDRAC command-line tools | |
# (we use Dell EMC iDRAC Tools for Linux, v9.3.1) | |
# (for reference, use this link: https://dl.dell.com/FOLDER05818335M/1/DellEMC-iDRACTools-Web-LX-9.3.1-3669_A00.tar.gz) | |
# 1. extract & install tools (install script is USELESS/root privilege is required) | |
tar -xf DellEMC-iDRACTools-Web-LX-*.tar.gz | |
yum install iDRACTools/racadm/RHEL8/x86_64/srvadmin-*.rpm | |
alternatives --install /usr/sbin/racadm racadm /opt/dell/srvadmin/sbin/racadm 1 | |
# 2a. set NIC configuration (root privilege is required) | |
# to get current NIC config, | |
racadm getniccfg | |
# 2b. set iDRAC LAN operation as shared with LOM3 (root privilege is required) | |
racadm config -g cfgLAnNetworking -o cfgNicSelection 0 # 0 for LOM1, 1 for LOM1 with Fallover on LOM2 and 2 for Dedicated | |
#or | |
racadm config -g cfgLanNetworking -o cfgNicSelection LOM3 && racadm getconfig -g cfgLanNetworking -o cfgNicSelection | |
# or | |
racadm set iDRAC.NIC.Selection LOM3 && racadm get iDRAC.NIC.Selection | |
# 2c. set iDRAC IPv4 address (root privilege is required) | |
racadm setniccfg -s <ipv4_address> <subnetmask> <ipv4_gateway> && racadm getniccfg | |
# 3. reset iDRAC (root privilege is required) | |
racadm racreset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment