May 072015
 

Isola Bella, Lago Maggiore, Italy

insta-14

Update 2015-12-17 Right, so instructions below are mostly deprecated, see comments section.

Dell posted fairly clear instructions here http://linux.dell.com/repo/hardware/ for both Dell Linux Repository and for Dell System Update (DSU)

Generally for Centos/RHEL it boils down to the following steps:


wget -q -O - http://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash
yum install dell-system-update
dsu --inventory 
yum  -y install srvadmin-all
service dataeng start
service dsm_om_connsvc start
chkconfig dsm_om_connsvc on
chkconfig dataeng on

 

I’ll keep below post just for reference.

Red Hat

wget -q -O - http://linux.dell.com/repo/community/bootstrap.cgi | bash
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum update
yum install srvadmin-all
yum install dell_ft_install

Source http://linux.dell.com/repo/hardware/latest/

 

Ubuntu/Debian

# http://linux.dell.com/repo/community/deb/latest/
echo 'deb http://linux.dell.com/repo/community/deb/latest /' | tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
apt-key adv --recv-keys --keyserver pgp.mit.edu 1285491434D8786F
apt-get update
apt-get install srvadmin-all srvadmin-all snmp snmpd snmp-mibs-downloader libsnmp-base ipmitool -y

Make sure snmpd has line with

smuxpeer .1.3.6.1.4.1.674.10892.1

For Dell Power Edge R415 make sure modules are loaded /etc/modules

ipmi_devintf
ipmi_si

 

CLI

dataeng service starts automatically at reboot. If you want to manually start the service, issue the command below.

sudo service dataeng start

Now, you can use omreport, omconfig, and omhelp commands.

For example, you can issue omreport system summary to get details about your system.

You can use omconfig to configure component properties.

omhelp provides help information for commands.

See OpenManage? CLI User’s Guide for comprehensive documentation.

 

Web Interface

To use web interface, users with appropriate permissions need to be added.

Add users with appropriate permissions to /opt/dell/srvadmin/etc/omarolemap file. See detailed information in the User’s Guide.
Example:john_doe * Administrator

Start the web server.

service dsm_om_connsvc start

Go to https://:1311/ in your browser to access OMSA.

If you want to start dsm_om_connvsc service at boot, issue sudo update-rc.d dsm_om_connsvc defaults command.

 

Removal

Uninstall all packages

sudo apt-get --auto-remove remove srvadmin-all

Uninstall all packages including config files:

sudo apt-get --auto-remove purge srvadmin-all

 

Managing BIOS and firmware updates

Inventory firmware version levels

inventory_firmware

Compare versions installed to those available

update_firmware

Install any applicable updates

update_firmware --yes

Start interactive GUI

inventory_firmware_gui

 

 

omconfig about
omreport about
# Report system overview
omreport chassis

# Report system summary info (OS, CPUs, memory, PCIe slots, DRAC cards, NICs)
omreport system summary

# Report bios settings
omreport chassis biossetup

# Fan info
omreport chassis fans

# Temperature info
omreport chassis temps

# CPU info
omreport chassis processors

# Memory and memory slot info
omreport chassis memory

# Power supply info
omreport chassis pwrsupplies

# Detailed PCIe slot info
omreport chassis slots

# DRAC card info
omreport chassis remoteaccess
# See available attributes and settings
omconfig chassis biossetup -?

# Turn the AC Power Recovery setting to On
omconfig chassis biossetup attribute=acpwrrecovery setting=on

# Change the serial communications setting (on with serial redirection via)
omconfig chassis biossetup attribute=serialcom setting=com1
omconfig chassis biossetup attribute=serialcom setting=com2

# Change the external serial connector
omconfig chassis biossetup attribute=extserial setting=com1
omconfig chassis biossetup attribute=extserial setting=rad

# Change the Console Redirect After Boot (crab) setting
omconfig chassis biossetup attribute=crab setting=enabled
omconfig chassis biossetup attribute=crab setting=disabled

# Change NIC settings (turn on PXE on NIC1)
omconfig chassis biossetup attribute=nic1 setting=enabledwithpxe

 

Managing iDRAC


racadm getconfig -h
racadm getconfig -g cfgLanNetworking
racadm getconfig -g cfgIpmiLan
racadm getconfig -g cfgRacTuning
racadm config -g cfgLanNetworking -o cfgDNSRacName web-prod01-drac
racadm racreset
racadm config -g cfgLanNetworking -o cfgNicUseDHCP 1
# cfgNicSelection
# 0 = Shared
# 1 = Shared with Failover LOM2
# 2 = Dedicated
# 3 = Shared with Failover All LOMs (iDRAC6 Enterprise only)
racadm config -g cfgLanNetworking -o cfgNicSelection 0
ipmitool user list 1
ipmitool lan print 1
ipmitool channel info 1
ipmitool chassis status

 


Source:

http://www.openfusion.net/linux/dell_omsa
http://cavepopo.hd.free.fr/wordpress/linux/dell-server-utility-omreport/



 

Apr 232015
 

Procedure for applying patches

  • Download and install hpsum, you can use instructions posted at the bottom of this page to setup repository for this purpose.
  • Download DVD iso with “HP Service Pack for Pro Liant Version” (currently version 2015.04.0) and mount it on the server.
  • Start hpsum, Baseline library, Add Baseline, point it to soemthing like “DVD/hp/swpackages/bp002502.xml”
  • Localhost Guided Update, Assign different baseline, type anything in field to get list of baselines, use 2015.04.0
  • Next, Deploy, Reboot, job done and dusted.

insta-05

Bonus hint

Mount iso image on management server and make it available say with Apache or NGINX if you have more servers to patch up:

 mount -o loop -t iso9660 /state/partition1/service/HP_Service_Pack_for_ProLiant_2015.04.iso /var/www/html/DVD

Point hpsum to “HTTP Share URL” baseline, in my case URL was

http://management.server/DVD/hp/swpackages/bp002502.xml

That will save you some time coping DVD iso around.

 

 

Repositories

 

Personally I find downloads.linux.hpe.com *very* slow. If you have lots of HP servers you might be better of with creating local repo and then modifying below

baseurl

line, pointing this repo to your local copy.

I used this command fetch data from HP servers, roughly 40G of space is needed:

rsync -avH --progress rsync.linux.hpe.com::SDR/repo/hpsum /export/pub/repo/
rsync -avH --progress rsync.linux.hpe.com::SDR/repo/spp /export/pub/repo/

and then I configured NGINX to serve data from /export/pub/

Update June 2016:
now I use Spacewalk for this. Create channel, add repo and let Spacewalk take care of keeping this in sync with HP mirror.

 

Centos 7

 

vim /etc/yum.repos.d/hp.repo

[spp]
name=Service Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/repo/spp/rhel/7/x86_64/current/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-ServicePackforProLiant
[hpsum]
name=HP Smart Update Manager
baseurl=http://downloads.linux.hpe.com/repo/hpsum/rhel/7/x86_64/current/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-hpsum

then

rpm --import http://downloads.linux.hpe.com/SDR/repo/mcp/GPG-KEY-mcp
yum update && yum install -y hp-snmp-agents hpdiags
wget http://downloads.linux.hpe.com/SDR/repo/hpsum/GPG-KEY-hpsum -O /etc/pki/rpm-gpg/GPG-KEY-hpsum
yum --disablerepo="*" --enablerepo="hpsum" list available
yum install hpsum

Centos 6

vim /etc/yum.repos.d/hp.repo

[hpsum]
name=HP Smart Update Manager
baseurl=http://downloads.linux.hpe.com/repo/hpsum/RedHat/6/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-hpsum

[HP-PSP-packages]
name=HP Software Delivery Repository Repository for PSP Packages
baseurl=http://downloads.linux.hpe.com/repo/spp/rhel/6/x86_64/current/
enabled=1
gpgcheck=0

 

Centos 5

vim /etc/yum.repos.d/hp.repo

[HP-MCP]
name=HP Management Component Pack
baseurl=http://downloads.linux.hpe.com/SDR/repo/mcp/centos/5/x86_64/current/
enabled=1
gpgcheck=0
[hpsum]
name=HP Smart Update Manager
baseurl=http://downloads.linux.hpe.com/repo/hpsum/RedHatEnterpriseServer/5Server/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-hpsum

 

Debian

HP support for Debian isn’t great to say at least, only repo available is for management Component Pack (drivers, system management homepage, etc) – see the very bottom of this page.

No Debian repo for hpsum 🙁 I tried some tricks, I grabbed rpm package for RedHat 7, extracted it and started hpsum manually.

sudo mkdir /opt/hp/hpsum -p
wget http://downloads.linux.hpe.com/SDR/repo/hpsum/RedHat/7Server/x86_64/current/hpsum-7.2.1-6.rhel7.x86_64.rpm -O /opt/hp/hpsum/hpsum.rpm
sudo apt-get install rpm2cpio
cd /opt/hp/hpsum
rpm2cpio hpsum.rpm | cpio -i --make-directories
cd /opt/hp/hpsum/opt/hp/hpsum/bin
./hpsum
# hpsum_service_x64 started successfully on port 63001, ssl port 63002 and ftp port disabled.

I was able to point web browser to https://server.adres:63002 logged in OK and tried inventorying/deploying at least firmware updates – but unfortunately hpsum service was dying without any meaningful reason in logs.

So essentially on Debian we are stuck with offline update only (i.e. boot your server from SPP iso or DVD). Bugger.

That is an exact reason why I prefer to go to Dell when shopping for servers! Not only made in Poland so rock solid 😉 but also with great support for Debian.

Debian repo for management Component Pack

vim /etc/apt/sources.list.d/HP-proliantsupportpack.list

Wheezy

deb http://downloads.linux.hpe.com/SDR/downloads/MCP/Debian/ wheezy/current non-free

or Jessie

deb http://downloads.linux.hpe.com/SDR/downloads/MCP/Debian/ jessie/current non-free

and then

wget http://downloads.linux.hpe.com/SDR/repo/mcp/GPG-KEY-mcp
apt-key add GPG-KEY-mcp
aptitude update
apt-get install hpacucli

 

Other way of adding missing key

key=FADD8D64B1275EA3
gpg --keyserver keyserver.ubuntu.com --recv-keys $key
gpg --armor --export $key |apt-key add -