Skip to content

Instantly share code, notes, and snippets.

@WietseWind
Last active November 15, 2024 03:15
Show Gist options
  • Save WietseWind/e4cffd3a3cdc7728945edcf2b5b7be7d to your computer and use it in GitHub Desktop.
Save WietseWind/e4cffd3a3cdc7728945edcf2b5b7be7d to your computer and use it in GitHub Desktop.
Install racadm on Ubuntu 20.04 / 18.04
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/sblim-cmpi-devel/libcmpicppimpl0_2.0.3-0ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/multiverse/s/sblim-sfcb/sfcb_1.4.9-0ubuntu5_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/sblim-sfc-common/libsfcutil0_1.0.1-0ubuntu4_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/multiverse/c/cim-schema/cim-schema_2.48.0-0ubuntu1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/openwsman_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/sblim-sfcc/libcimcclient0_2.2.8-0ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-server1_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman1_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-client4_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-curl-client-transport1_2.6.5-0ubuntu3_amd64.deb
dpkg -i libwsman-curl-client-transport1_2.6.5-0ubuntu3_amd64.deb
dpkg -i libwsman-client4_2.6.5-0ubuntu3_amd64.deb
dpkg -i libwsman1_2.6.5-0ubuntu3_amd64.deb
dpkg -i libwsman-server1_2.6.5-0ubuntu3_amd64.deb
dpkg -i libcimcclient0_2.2.8-0ubuntu2_amd64.deb
dpkg -i openwsman_2.6.5-0ubuntu3_amd64.deb
dpkg -i cim-schema_2.48.0-0ubuntu1_all.deb
dpkg -i libsfcutil0_1.0.1-0ubuntu4_amd64.deb
dpkg -i sfcb_1.4.9-0ubuntu5_amd64.deb
dpkg -i libcmpicppimpl0_2.0.3-0ubuntu2_amd64.deb
gpg --keyserver keyserver.ubuntu.com --recv-key 1285491434D8786F && gpg -a --export 1285491434D8786F | apt-key add -
# Ubuntu 18.04
echo "deb http://linux.dell.com/repo/community/openmanage/930/bionic bionic main" > /etc/apt/sources.list.d/linux.dell.com.sources.list
# Ubuntu 20.04
echo "deb http://linux.dell.com/repo/community/openmanage/950/focal focal main" > /etc/apt/sources.list.d/linux.dell.com.sources.list
apt update && apt install srvadmin-idracadm7 srvadmin-base libargtable2-0 && cd /bin && ln -s /opt/dell/srvadmin/sbin/racadm . && chmod +x /opt/dell/srvadmin/sbin/racadm
racadm
# racadm getniccfg
@pcw11211
Copy link

thank you, saved me a lot of time

@WietseWind
Copy link
Author

thank you, saved me a lot of time

Happy to hear that :) Isn't it amazing, random internet strangers posting random gists with commands :D

@mikegreen
Copy link

On line 24, pool.sks-keyservers.net has been deprecated (you will get gpg: keyserver receive failed: Server indicated a failure), you can use:
gpg --keyserver keyserver.ubuntu.com --recv-key 1285491434D8786F

@juhlee-microsoft
Copy link

@mikegreen Canonical bumped again so this key does not work as of today. 8/12/2022. This change will float forever.

@ravibhure
Copy link

@mikegreen

ravi@localhost:~$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 1285491434D8786F && gpg -a --export 1285491434D8786F | sudo apt-key add -
gpg: key 1285491434D8786F: "Dell Inc., PGRE 2012 (PG Release Engineering Build Group 2012) <PG_Release_Engineering@Dell.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
OK

@WietseWind
Copy link
Author

@mikegreen Canonical bumped again so this key does not work as of today. 8/12/2022. This change will float forever.

I updated the gist :)

@cairoapcampos
Copy link

cairoapcampos commented Aug 2, 2024

Hello. On Ubuntu 22.04 I tried to do the following:

# Download Key
wget https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc
# Import the key to a temporary keychain
gpg --no-default-keyring --keyring /tmp/temp-keyring.gpg --import 0x1285491434D8786F.asc
# Export the key in the appropriate format to the trusted keys directory
gpg --no-default-keyring --keyring /tmp/temp-keyring.gpg --export --armor 0x1285491434D8786F | tee /etc/apt/trusted.gpg.d/dell.asc
# Update repositories
apt-get update
# Install racadm
apt-get install srvadmin-idracadm8

However, when running the racadm command, the remote IP cannot be found. I tested it on the Windows system as well and this problem does not occur. Do you know what it could be?

output in terminal:

racadm -r myip -u myuser -p mypassword help getsysinfo

Security Alert: Certificate is invalid - unable to get local issuer certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
ERROR: Unable to connect to RAC at specified IP address. 

Adapter from the link below:
https://linux.dell.com/repo/community/openmanage/

@mikegreen
Copy link

@cairoapcampos without specific cli and error messages a guess would be your idrac is not running or you have specified an invalid IP

@cairoapcampos
Copy link

@mikegreen I updated the output of the above command. the IP is valid and on Windows the racadm command worked normally. I prefer to use Linux in my work :)

@WietseWind
Copy link
Author

@cairoapcampos Looks like your SSL certificate served is invalid, try passing --nocertwarn as well

@cairoapcampos
Copy link

cairoapcampos commented Aug 2, 2024

@WietseWind Only the certificate message was removed.

racadm -r myip -u myuser -p mypassword --nocertwarn help getsysinfo

ERROR: Unable to connect to RAC at specified IP address. 

In Windows, the certificate messages are also displayed, but the connection is made without problems.

@WietseWind
Copy link
Author

@cairoapcampos And if you try to ssh to port 22 on that IP? And if you try to visit that IP in the browser? Can it even be reached from the machine you're working on?

@cairoapcampos
Copy link

@WietseWind I can access the IP via browser and I can access the idrac via port 22 using ssh. Is there something missing?

@WietseWind
Copy link
Author

@cairoapcampos That was the easy stuff to check, I guess it has different dependencies on Ubuntu 22.X (haven't tried).

An easy workaround: if you have SSH access you could consider running racadm over SSH straight on the machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment