HP ProLiant Value Add tools

39

Click here to load reader

Transcript of HP ProLiant Value Add tools

Page 1: HP ProLiant Value Add tools

1© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant value-add on Linux (B66)Craig Lamparter, HP ISS Linux R&D

James Ayvaz, HP ISS Linux R&D

Bruno Cornec, HP EMEA Open Source and Linux Profession Lead

March, 2013

Page 2: HP ProLiant Value Add tools

2© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant and Linux distribution support

Page 3: HP ProLiant Value Add tools

3© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP has led Linux server market for more than a decade

LinuxCOE

Page 4: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.4

Linux from HP supports greater choice

Community Linux Performs sanity tests of community

Linux distributions with several ProLiant servers

Supports ProLiant server hardware Offers the ProLiant Support Pack “as is” Directs software issues to community

resources and supports the community

Commercial Linux Tests commercial Linux distribution early

and often (with beta OS, new hardware) Enables commercial distribution near launch

date of new ProLiant hardware Obtains Linux vendor certification for

representative ProLiant servers Provides support for ProLiant Support Pack

HP provides support Partner provides support Community provides support

http://communitylinux.orghttp://www.hp.com/go/rhelhttp://www.hp.com/go/sles

http://www.hp.com/go/ubuntuhttp://www.hp.com/go/oel

Page 5: HP ProLiant Value Add tools

5© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant Linux portal : http://www.hp.com/go/proliantlinux

Single Point for HP ProLiant deliverablesCertification matrices

Drivers

White Papers

Solutions

Support

Page 6: HP ProLiant Value Add tools

6© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant Linux portal : http://www.hp.com/go/proliantlinux

Page 7: HP ProLiant Value Add tools

7© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant differentiators

Page 8: HP ProLiant Value Add tools

8© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant insight Ligths-Out (iLO)

Page 9: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.9

Powerful integrated solutions

iLO and Linux

ILO access through• SSH/SMASH• IPMI• HP CLI tools• Web interface• From Linux with hpilo• Exposes monitoring

details via SNMP

Page 10: HP ProLiant Value Add tools

10© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant Software Depot Repository (SDR)

Page 11: HP ProLiant Value Add tools

11© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Welcome to HP's SDR

Who HP ProLiant Linux R&D Team

What Drivers, utilities, agents and tools for HP ProLiant Linux Systems

When Updated when new hardware or Linux distributions are released

Where http://downloads.linux.hp.com/SDR

How Install packages using yum, apt, zypper

Why Extra functionality specifically designed for HP ProLiant hardware

How much Free of charge (not Free,Open Source Software)

Page 12: HP ProLiant Value Add tools

12© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP Software Delivery Repository

SDR structure regular expression:http://downloads.linux.hp.com/SDR/downloads/[SPP|MCP|Extras|FW]/[rhel|suse|centos|ubuntu|asianux|opensuse|oracle]/[pool/non-free/*.deb]|[<distversion>/<arch>/current/*.rpm]

http://downloads.linux.hp.com/SDR

Page 13: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.13

HP Management Component Pack for ProLiant (MCP)Bundle of HP Provided value add tools for ProLIantContains HP tools and utilities (no drivers – cf: SPP)Available as individual Linux packages from the MCP SDR repositorySpecifically for community supported distributions

Provides the following features:● System Health Monitor (thermal, environmental, electrical, system components)● SNMP MIBs and configuration script● Automatic Server Recovery (ASR) Daemon and Events● Advanced Systems Management (ASM) Controller communication + CLI (hpasmcli)● Pre-failure warranty on CPUs and memory and diagnostics tool (hpdiags)● Access to the Integrated Management Log (IML) (hplog)● Control Unit ID (hpuid) management● Smart Array configuration tool (hpacucli)● iLO configuration tool (hponcfg)● Optionally a Web interface for all these aspects

Page 14: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.14

HP Service Pack for ProLiant (SPP)Bundle of all HP Provided value add for ProLIantContains what the MCP providesContains HP firmware, driver updates (when needed) and additional utilitiesAvailable as individual Linux packages from the SPP SDR repositoryAvailable as Bootable DVD ISO image for convenient all-in-one deliverySpecifically for enterprise supported distributions

Provides the following features: ● Version control Agent (hp-vca)● HP Smart Update Manager (hp-sum)

● automate hardware update● perform comparison between

provided/installed/available firmware● Additional drivers for recent servers or bug fixes

Page 15: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.15

HP ProLiant Linux Software Stack

cciss / hpsaDriver

hpacucli

cpqacuxe

Smart Array ILO

hpilo

hp-smh / hp-smh-templates

Upstream HP component

SDR HP MCP component

fibreutils / hp-fc-enablement

hp-vca

hponcfg hp-health / hp-ams /hpdiags / hp-snmp-agents

hp-sum

Pkg

UI

hp-scripting-tools

hpwdt

FWMonitoring BIOS

qla2xxxlpfc

hpacucli hpacuscripting

hp_rescanlssd / lssg

hponcfghpasmcli / hploghpdiags / hpuid

CLI hp-conrephpsum/ hp-fm

FC NIC

bnx / mlnxigb / e1000

hpsum / hp-fm

SDR HP Extras/FW component

SDR HP SPP component

FW CPxxx.scexe CPx.scexe CPxxx.scexe CPxxx.scexe CPxxx.scexe

Page 16: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.16

Installing packages from SDRPoint your host to the HP Software Depot Repository (SDR)

# wget http://downloads.linux.hp.com/SDR/downloads/bootstrap.sh# sh ./bootstrap.sh ManagementComponentPack|ServicePackforProliant|Extras|FW

Update repositories (deb)

# apt-get update

Update repositories (rpm)

# yum|zypper update

Install updated drivers (deb)

# apt-get install hp-e10000 hp-tg3

Install updated drivers (rpm)

# yum|zypper install hp-e10000 hp-tg3

Install new software agents (deb)

# apt-get install hpacucli hponcfg

Install new software agents (rpm)

# yum|zypper install hpacucli hponcfg

Page 17: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.17

hpasmcliDisplays most BIOS parameters and allow to modify some

Examples:ASR display and modificationhpasmcli> show asrASR timeout is 10 minutes.ASR is currently enabled.hpasmcli> set asr 5Successfully set ASR timeout to 5 minutes.

IPL displayhpasmcli> show iplIPL (Standard Boot Order)-------------------------#0 CDROM#1 Floppy#2 USBKEY#3 HDD#4 PXE

Non interactive Hyper-threading status display# hpasmcli -s "show ht"Processor hyper-threading is currently enabled.

Non interactive Hyper-threading status set# hpasmcli -s "disable ht"Successfully disabled processor hyper-threading.# hpasmcli -s "enable ht"Successfully enabled processor hyper-threading.

F1 prompt # hpasmcli -s "show f1"The POST F1 prompt is currently delayed.# hpasmcli -s "set f1 enabled"Successfully set the POST F1 prompt to ENABLED.

Syntax info# hpasmcli -s "set"# hpasmcli -s "enable"

Page 18: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.18

hpacucliDisplays most Smart Array RAID controller parameters and allow to modify most

Show all Smart Array Controllers# hpacucli ctrl all showSmart Array P410i in Slot 0 (Embedded) (sn: 50014380059CCD00)

Show detail of the embedded Smart Array Controller# hpacucli ctrl slot=0 show detailSmart Array P410i in Slot 0 (Embedded) Slot: 0 Serial Number: 50014380059CCD00 Cache Serial Number: PAAVP9SXTPGU RAID 6 (ADG) Status: Disabled Controller Status: OK Hardware Revision: C Firmware Version: 5.12 […] Cache Ratio: 25% Read / 75% Write […] Total Cache Size: 512 MB Total Cache Memory Available: 400 MB

Page 19: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.19

Other CLI toolshponcfg - Display/Apply iLO configurationGet iLO configuration# hponcfg -a -w ilo.dat HP Lights-Out Online Configuration utilityVersion 4.0.0 Date 12/08/2011 (c) Hewlett-Packard Company, 2011Firmware Revision = 1.28 Device type = iLO 3 Driver name = hpiloManagement Processor configuration is successfully written to file "ilo.dat"[root@localhost ~]# head ilo.dat <!-- HPONCFG VERSION = "4.0.0" --><!-- Device: iLO3 Firmware Version : 1.28 --><RIBCL VERSION="2.0"> <LOGIN USER_LOGIN="admin" PASSWORD="password"><RIB_INFO mode="write"><MOD_NETWORK_SETTINGS> <ENABLE_NIC VALUE="Y"/> <SPEED_AUTOSELECT VALUE="Y"/> <NIC_SPEED VALUE="10"/> <FULL_DUPLEX VALUE="N"/> <DHCP_ENABLE VALUE="Y"/>

Set iLO configuration# hponcfg -f ilo.dat

hpbootcfg - Change boot order from CLI

Reboot to PXE without waiting for prompt# /sbin/hpbootcfg -P -b

hpsnmpconfig - Change the SNMP config

Check ProLiant MIB load# grep cma /etc/snmp/snmpd.confdlmod cmaX /usr/lib64/libcmaX64.so

Page 20: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.20

HP System Management Homepage

Page 21: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.21

HP Smart Update Manager

Page 22: HP ProLiant Value Add tools

22© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP Smart Start Scripting Toolkit

Page 23: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.23

HP Smart Start Scripting Toolkit (SSSTK)

Bundle of optional HP tools for ProLIantContains HP utilities to automate Hardware configuration of HP ProLiant ServersAvailable as individual Linux packages with dependencies for use with the native distribution update manager (yum, yast, apt-get) from the Extras SDR repositorySSSTK captures iLO, BIOS and RAID Firmware configurations on a master server and is able to redeploy these configuration on a bare metal target machine in an unattended manner.This toolkit is designed to be customized by experienced IT administrators, familiar with scripting under Linux and ProLiant servers.

Page 24: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.24

HP SSSTK in action

Capture/Create serverconfigurations (iLO, BIOS,

& SA). Create scriptsBootable CD or

over the Network install

HW conf + Install OS fromCD or Network Share

11 22 33

server data file

options data file

Script File

PXE bootCD boot

USB boot

Setup InstallationServer

Configure PXE, TFTP, DHCP, DDNS, NFSConfigure SSSTK

Load OS bits

Bundle of optional HP tools for ProLIantHP utilities to automate HW configuration of HP ProLiant ServersAvailable as individual Linux packages usable with the SDR repo

Page 25: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.25

SSSTK Additional Toolshphwdiscovery - Hardware inventory tool# hp-discovery<?xml version="1.0" encoding="UTF-8"?><Discovery Version="2.1">[...]<ServerInformation> <SMBIOS> <ROM>I27</ROM> <ROMDate>05/05/2011</ROMDate> <SerialNumber>CZ3126KH10</SerialNumber> <SystemName>ProLiant BL460c G7</SystemName> <UUID>37333036-3831-5A43-3331-32364B483130</UUID> <AssetTag></AssetTag>[...]# hp-discovery > /tmp/disco.xml# hp-ifhw /tmp/disco.xml /opt/hp/hp-scripting-tools/etc/allboards.xml "PCI:Smart Array"PCI Device Search: "Smart Array" => "Smart Array P410i Controller"Expression is TRUE

hp-reboot - Reboot on a chosen device# hp-reboot pxe -cold

hpbootcfg - Change boot order from CLI

Reboot to PXE without waiting for prompt# /sbin/hpbootcfg -P -b

hp-statemgr – Get/Set a persistent Variable across reboot

# hp-statemgr -R BOOT_TO_PXE0# hp-statemgr -W BOOT_TO_PXE 11# hp-statemgr -R BOOT_TO_PXE1

hp-rbsureset – Reset the ROM BIOS Setup to default values

hp-setbootorder – Change boot order# hp-setbootorder pxe cdrom usbCurrent Boot Order: cdrom usb hd pxeRequested Order: pxe cdrom usb

Page 26: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.26

hp-conrep | hp-rcuhp-conrep – Display/Apply BIOS configuration up to G7 ProLiant servershp-rcu – Display/Apply BIOS configuration for Gen8+ ProLiant servers

# hp-conrep -s -f rcu.xmlconrep 3.30 - SmartStart Scripting Toolkit Configuration Replication ProgramCopyright (c) 2007-2009 Hewlett-Packard Development Company, L.P. System Type: ProLiant BL460c G7 ROM Date : 05/05/2011 ROM Family : I27 Processor Manufacturer : IntelXML System Configuration : conrep.xmlHardware Configuration : rcu.xmlFile contains global platform restrictions Global Restriction: [minimumconrepversion ] OKPlatform check: : [ProLiant DL7 ] no match : [ProLiant DL9 ] no match : [ProLiant BL ] match : [ProLiant DL160 Gen8 ] no match : [ProLiant SL160 Gen8 ] no matchSaving configuration data to rcu.xml.CONREP Return code: 0

Page 27: HP ProLiant Value Add tools

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.27

hp-conrep | hp-rcu results# cat /opt/hp/hp-scripting-tools/etc/rcu.xml <?xml version="1.0" encoding="UTF-8"?><Conrep version="3.30" originating_platform="ProLiant BL460c G7" originating_family="I27" originating_romdate="05/05/2011" originating_processor_manufacturer="Intel"> <Section name="IMD_ServerName" helptext="LCD Display name for this server"> <Line0>localhost.loca</Line0> <Line1>ldomain</Line1> </Section> <Section name="IPL_Order" helptext="Current Initial ProgramLoad device boot order."> <Index0>00 </Index0> [...] </Section> <Section name="IPL_Order_Size" helptext="Current Initial ProgramLoad device boot order size."> <Size0>05 </Size0> </Section> <Section name="PCI_Devices" helptext="Lists of PCI devices and their interrupts - not displayed if default values are set.">EMPTY_DELETE</Section> <Section name="Controller_Order" helptext="Lists the current boot controller ordering."> <Id0>10 3c 32 45 </Id0> <Slot0>00 </Slot0> <BusDev0>0c 00 </BusDev0> <Rest0>41 </Rest0> <Id1>10 3c 32 61 </Id1> <Slot1>01 </Slot1> <BusDev1>06 00 </BusDev1> <Rest1>41 </Rest1> <Id2>10 3c 32 61 </Id2> <Slot2>01 </Slot2> <BusDev2>06 01 </BusDev2> <Rest2>41 </Rest2> </Section> <Section name="Language" helptext="Defines current language identifier">ENGUSAus </Section> <Section name="System_WOL" helptext="System Wake On Lan Capabilities.">Enabled</Section> <Section name="System_APIC" helptext="System APIC Settings(MPS Table Mode).">Full Table</Section>

Page 28: HP ProLiant Value Add tools

28© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

PUSK Choices› The HP ProLiant USB setup key (PUSK) is a set of tools working together with the HP

Smart Start Scripting Tool Kit (SSSTK) and HP Software Depot Repository (SDR) to create a bootable USB key to easily and automatically capture and deploy BIOS, RAID and iLO configurations on HP ProLiant servers.

› The PUSK allows to easily modify configuration on site, while also storing logs of the setup run.

› The PUSK is easily mountable from both a Windows (operator machine) or a Linux (deployed server) environment using a VFAT FS.

› The PUSK is built from a master machine using the running distribution (RHEL 6 for now) and the HP SDR.

› The PUSK provides 1 simple text based config file which has to be configured for iLO setup (IP conf, License, Password).

› The other extracted configurations are also modifiable in XML format, as well as the boot configuration done with syslinux.

Page 29: HP ProLiant Value Add tools

29© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

HP ProLiant Firmware management new approach

No one buys a server to update firmware !

Page 30: HP ProLiant Value Add tools

30© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Today's approach: scexe● Advantages:

● scexe == Self extracting zip file, relatively easy to handle● Stable : developed over 10 years ago (but hasn’t changed much, no real resources

around the techno)● Provides online Linux firmware update

● Drawbacks :● Proprietary package format● No repository management (yum/apt/...)● No dependency management (wrt dynamic library needed)● No signature support● Difficult or impossible to script

Page 31: HP ProLiant Value Add tools

31© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

New approach: using packages ? ● Drawbacks :

● Linux packages (RPM/DEB) designed for installing software, not firmware● Unrelated to firmware state (pkg installed but FW not)● Querying the package manager tells us about the package, not the firmware

● Solution :● Decoupling FW handling and FW flashing● Packages (RPM/DEB) used to deliver the firmware (thus repo, deps, signature, …)● Light weight tool, doing 1 thing well, to apply the firmware● Future hp-sum integration

● Advantages :● Standard and open process (using usual tools at distribution level)● CLI und UI integration without effort nor specificity● Scripting and installation server easy integration● Security embedded (rpm -V, signature)

Page 32: HP ProLiant Value Add tools

32© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.32

YUM

Internet (SDR)

HP ProLiant DL580 G7

How does it work ?RPM

# ./bootstrap.sh ProLiant-FW# ./bootstrap.sh Extras

# yum groupinstall "HP ProLiant DL580 G7"

# hp-fm upgrade

Page 33: HP ProLiant Value Add tools

33© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Find and download an applicable Firmware

# syshandle=$(dmidecode -s bios-version)# yum grouplist $(echo "hp-proliant-*$syshandle*-firmware")# yum groupinstall $(echo "hp-proliant-*$syshandle*-firmware")

Or 

# yum install hp-fm# hp-fm requiresfirmware(hp:system:p65)firmware(pci:v00008086d00003407sv*bc*sc*i*)firmware(pci:v00008086d00003408sv*bc*sc*i*)firmware(pci:v00008086d00003409sv0*bc*sc*i*)firmware(pci:v00008086d0000340Asv0*bc*sc*i*)# yum install $(hp-fm requires)

Page 34: HP ProLiant Value Add tools

34© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

# hp-fm upgradeSearching for firmware..Analyzing results..

'hp-firmware-ilo2' version is installed, skipping: HP Integrated Lights-Out 2 v2.06

The following firmware will be applied: HP ProLiant DL360 G6 (P64) Servers 2011.05.05Do you want to apply them? [y] :

Applying the downloaded Firmware

Page 35: HP ProLiant Value Add tools

35© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Querying Firmware information

# hp-fm list

| Info | NAME | VERSION | INSTALLED | TYPE |---------------------------------------------------------------------------------------------i| fix | hp-firmware-ilo2 | 2.06 | 2.06 | ilo2 |i| critical | hp-firmware-system-dl360g6-P64 | 2011.05.05 | 2010.05.15 | system |

# hp-fm list "%{NAME} =~ /dl360/i"

| Info | NAME | VERSION | INSTALLED | TYPE |---------------------------------------------------------------------------------------------i| critical | hp-firmware-system-dl360g6-P64 | 2011.05.05 | 2010.05.15 | system |

# hp-fm list --format="%{RPMNAME},%{VERSION},%{TYPE_OF_CHANGE}“hp-firmware-ilo2,2.06,fixhp-firmware-system-dl360g6-P64,2011.05.05,critical

# hp-fm upgrade "%{TYPE_OF_CHANGE} =~ /critical/i"

Page 36: HP ProLiant Value Add tools

36© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Integrating OS & FW deployment (kickstart file example)

...repo --name=ProLiant-FW http://downloads.hp.com/SDR/FWrepo --name=ProLiant-extras http://downloads.hp.com/SDR/Extras...@HP ProLiant DL360 G6 Server...%prehp-fm –-yes upgrade

Feedback ?# hp-fm feedbackThis command will walk you through the process of submitting feedback******************************************************************************Anonymous system information will be collected to help us understand yoursetup. You will have an opportunity to review the data before submitting.******************************************************************************Do you wish to continue [y] :

Page 37: HP ProLiant Value Add tools

37© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Find out more on HP value add around Open Source & Linux

Page 38: HP ProLiant Value Add tools

38© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Some reference sites :› Portal: http://www.hp.com/go/proliantlinux › Certification: http://h18004.www1.hp.com/products/servers/linux/hplinuxcert.html› RHEL on ProLiant : http://www.hp.com/go/rhel› Service Pack for ProLiant : http://www.hp.com/go/spp› Insight Foundation: http://www.hp.com/go/foundation › SDR: http://downloads.linux.hp.com/SDR/› SSSTK: http://www.hp.com/servers/sstoolkit › PUSK: http://pusk.project-builder.org/browser/0.9.6› Project Builder: http://www.project-builder.org› Dracut: https://dracut.wiki.kernel.org/

References

Page 39: HP ProLiant Value Add tools

39© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Thank you (B66)