Created
November 24, 2019 17:44
-
-
Save ontheklaud/e5c6f95fbf25379c400e9ea76f2360ec to your computer and use it in GitHub Desktop.
Live setup/config of Dell iDRAC on CentOS 7
This file contains 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/RHEL7/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 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