Configure IMM/iDRAC/iLO from CLI

The following article descripes different possibilities to configure a server MGM interface on command line. The following interfaces/manufactures are listed:

– IBM Lenovo – Integrated Management Module (IMM)
– DELL – integrated Dell Remote Access Controller (iDRAC)
– HP – integrated Lights Out (iLO)


IBM Lenovo – Integrated Management Module (IMM)

Linux

You need the tool „asu64“ in order to configure the IMM.

In case you get the following error, you have the wrong version of the tool:
asu64 Read of data store failed with completion code 10

cd /opt/ibm/toolscenter/asu

./asu64 show |grep ‚IMM.HostIPAddress1\|IMM.GatewayIPAddress1\|IMM.HostIPSubnet1‘

./asu64 set IMM.DHCP1 Disabled
./asu64 set IMM.HostIPAddress1 172.20.150.94
./asu64 set IMM.HostIPSubnet1 255.255.255.0
./asu64 set IMM.GatewayIPAddress1 172.20.150.254
./asu64 rebootimm

#IMM ASU MGM IBM dhcp
./asu64 set imm.dhcp1 enabled

#IMM ASU MGM IBM ssl disable
./asu64 set IMM.SSL_Server_Enable Disabled

Windows

# asu64 show imm

asu64.exe set IMM.Password.1 PASSW0RD

asu64.exe set imm.hostipaddress1 128.197.132.6
asu64.exe set imm.hostipsubnet1 255.255.255.192
asu64.exe set imm.gatewayipaddress1 128.197.132.1
asu64.exe set imm.dhcp1 disabled
asu64.exe rebootimm


DELL – integrated Dell Remote Access Controller (iDRAC)

Linux

„Dell Drac Tools“ + RACADM download and extract:
Install „Remote Access Core Component“
/linux/supportscripts/srvadmin-install.sh

# show config
racadm getniccfg

# show MAC
racadm ifconfig

# change network settings
racadm setniccfg -s $IP $MASK $GW
set config

Windows

# „OpenManage Server Administrator Managed Node“
\windows\setup.exe
C:\Users\Administrator> racadm setniccfg -s 192.168.1.49 255.255.255.0 192.168.1.1


HP – integrated Lights Out (iLO)

Linux

hponcfg -w ilo.xml
vi ilo.cfg
hponcfg -f ilo.xml
Add user:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="user" PASSWORD="UsingAutologin">
<USER_INFO MODE="write">
<ADD_USER
USER_NAME="[Full Name]"
USER_LOGIN="[USER]"
PASSWORD="[PASSWORD]">
<ADMIN_PRIV value ="Yes"/>
<REMOTE_CONS_PRIV value ="Yes"/>
<RESET_SERVER_PRIV value =">Yes"/>
<VIRTUAL_MEDIA_PRIV value ="Yes"/>
<CONFIG_ILO_PRIV value="Yes"/>
</ADD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>

Change default password:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="user" PASSWORD="UsingAutologin">
<USER_INFO MODE="write">
<MOD_USER USER_LOGIN="Administrator">
<PASSWORD value="Password"/>
</MOD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>

Clear log:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="user" PASSWORD="UsingAutologin">
<RIB_INFO MODE="write">
<CLEAR_EVENTLOG/>
</RIB_INFO>
<SERVER_INFO MODE="write">
<CLEAR_IML/>
</SERVER_INFO>
</LOGIN>
</RIBCL>

Change network:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="user" PASSWORD="password">
<RIB_INFO MODE="WRITE" >
<MOD_NETWORK_SETTINGS>
<IP_ADDRESS VALUE = "x.x.x.x"/>
<SUBNET_MASK VALUE = "x.x.x.x"/>
<GATEWAY_IP_ADDRESS VALUE = "x.x.x.x"/>
<PRIM_DNS_SERVER value = "x.x.x.x"/>
<DHCP_ENABLE VALUE = "N"/>
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
</LOGIN>
</RIBCL>

Windows

# hponcfg for Windows Server download and execute .exe

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.