Lab Document on HP ProLiant value add tools on Linux

33
HP HP Servers and HP Solution Innovation Center HP ETSS 2015 Table of content Objectives.................................................................................................................................................... 2 Reference documents................................................................................................................................. 3 Environment setup.....................................................................................................................................4 SDR access enablement......................................................................................................................... 4 Managing HP ProLiant servers with the MCP.............................................................................................5 Command line management.................................................................................................................5 SNMP management.............................................................................................................................14 Web based management....................................................................................................................16 Using HP SUM (Smart Update Manager).............................................................................................19 Using IPMI............................................................................................................................................. 20 Using the HP RESTful API....................................................................................................................21 Additional management tools............................................................................................................24 © Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 1 of 33 Lab Contents This lab purpose is to install and use various HP ProLiant tools to configure servers and set them up. Lab Writer and Trainer [email protected] Lab – HP ProLiant Tools

Transcript of Lab Document on HP ProLiant value add tools on Linux

Page 1: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP ETSS 2015

Table of content

Objectives....................................................................................................................................................2Reference documents.................................................................................................................................3Environment setup.....................................................................................................................................4

SDR access enablement.........................................................................................................................4Managing HP ProLiant servers with the MCP.............................................................................................5

Command line management.................................................................................................................5SNMP management.............................................................................................................................14Web based management....................................................................................................................16Using HP SUM (Smart Update Manager).............................................................................................19Using IPMI.............................................................................................................................................20Using the HP RESTful API....................................................................................................................21Additional management tools............................................................................................................24

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 1 of 33

Lab Contents

This lab purpose is to install and use various HP ProLiant tools toconfigure servers and set them up.

Lab Writer and Trainer

[email protected]

Lab – HP ProLiant Tools

Page 2: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Overview of the HP ProLiant Value Add tools Lab

Objectives

At the end of the Lab students should be able to install all value add tools part of the CMPand SPP, delivered on the HP SDR and use some of the tools to manage the hardwareconfiguration of their ProLiant server.

Expected duration : 100 minutes

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 2 of 33

Page 3: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Reference documents

When dealing with the installation and configuration of HP ProLiant servers, the firstapproach is to look at some reference documents:

The main Documentation for the SDR at http://downloads.linux.hp.com/SDR/. Thepresentation around HP ProLiant value add tools contains some command line examples. Acopy is available at http://fr.slideshare.net/eurolinux/hp-proliant-value-add-tools.

Some reference documentation pages available from HP web site:

• HP ProLiant Servers - Updating the Server Firmware ROM:

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=115&prodSeriesId=5177957&prodTypeId=15351&objectID=c00719376

• Linux best practices using HP Service Pack for ProLiant (SPP) and Software Delivery Repository (SDR):

http://www8.hp.com/h20195/v2/GetDocument.aspx?docname=4AA5-0831ENW

• HP ProLiant Servers - Configuring SNMP on Linux Based Operating Systems:

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=115&prodSeriesId=5177957&prodTypeId=15351&objectID=c03108867

• Linux Best Management Practices: HP ProLiant Gen8 Servers and Red HatEnterprise Linux:

http://h50146.www5.hp.com/products/software/oe/linux/mainstream/support/whitepaper/pdfs/c03231805.pdf

• HP Scripting Toolkit Linux Edition User Guide:

http://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay/?docId=emr_na-c03894959

• Configuring Arrays on HP Smart Array Controllers Reference Guide:

http://h20566.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docDisplay/resource.process/?spf_p.tpst=kbDocDisplay_ws_BI&spf_p.rid_kbDocDisplay=docDisplayResURL&javax.portlet.begCacheTok=com.vignette.cachetoken&spf_p.rst_kbDocDisplay=wsrp-resourceState%3DdocId%253Demr_na-c00729544-15%257CdocLocale%253D&javax.portlet.endCacheTok=com.vignette.cachetoken

• HP iLO 4 Scripting and Command Line Guide:

http://h20566.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docDisplay/resource.process/?spf_p.tpst=kbDocDisplay_ws_BI&spf_p.rid_kbDocDisplay=docDisplayResURL&javax.portlet.begCacheTok=com.vignette.cachetoken&spf_p.rst_kbDocDisplay=wsrp-resourceState%3DdocId%253Demr_na-c03334058-12%257CdocLocale%253Den_US&javax.portlet.endCacheTok=com.vignette.cachetoken

• HP RESTful API:

http://www.hp.com/go/restfulapi

• HP Firmware as RPM:

http://downloads.linux.hp.com/SDR/project/fwpp/fwpp-faq.pdf

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 3 of 33

Page 4: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Estimated time for the lab is placed in front of each part.

Environment setup

Estimated time: 10 minutes

SDR access enablement

The HP SDR is available externally from http://downloads.linux.hp.com/SDR/

This Lab is performed on a Red Hat Enterprise Linux 6.4 distribution. As most of thecontent is also available from the repository for other Linux distributions, you can run it aswell (with due adaptations !) on all the enabled distributions such as CentOS, OEL, Ubuntuor supported like SuSE Linux Enterprise Server.

You may want to use the add_repo.sh script provided there in order to setup yourinstallation. For that, download the file under your home directory.

You'll also need for RHEL additional packages not necessarily installed on the basedistribution, but which are brought by yum, providing you have a link to a Satellite server ora yum repository with appropriate content.

This lab doesn't give all the commands necessary, as some aspects must be discovered bythe Lab attendees and this will help them learn more by finding themselves the solutionsto the small issues they may find. Could be lack of packages, Linux rights aspects, ...

Bug reports on this material welcome ;-) Enjoy !

# cd /root

# yum install -y wget# wget http://downloads.linux.hp.com/SDR/add_repo.sh

Resolving downloads.linux.hp.com... 15.201.202.86Connecting to downloads.linux.hp.com|15.201.202.86|:80... connected.

HTTP request sent, awaiting response... 200 OKLength: 21980 (21K) [application/x-sh]

Saving to: “add_repo.sh”

100%[================================>] 21,980 57.9K/s in 0.4s

2013-03-23 18:15:36 (57.9 KB/s) - “add_repo sh” saved [21980/21980] # ./add_repo.sh sppnote : You must read and accept the License Agreement to continue.Press enter to display it ...

END USER LICENSE AGREEMENT[...]# ./add_repo.sh stk # not for RHEL 7.0 as of 2015-02-05# ./add_repo.sh hpsum

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 4 of 33

Page 5: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Then use yum to update the indexes with the new repositories. Check what has beencreated under the /etc/yum.repos.d directory. Verify that everything is behaving asexpected (hint: yum search hp | grep -E '^hp').

If you have issues running the add_repo script, consider rights of the script and requireddependency (lsb package typically). If the previous command doesn't output something,launch it first without the | grep part..

From now on, the Lab is “à la carte” ;-) Which means you can take one of the following partat will and try to do it

Note that depending on the RHEL version or the tools versions, the traces you can get maydiffer in details such as version umber e.g.

Managing HP ProLiant servers with the MCP

Command line management

Estimated time: 50 minutes

We will first discover what command lines utilities are available to manage HP ProLiantservers under Linux. These are gathered in a few packages:

# yum install hp-health hpssacli hponcfgLoaded plugins: product-id, security, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Install ProcessPackage hponcfg-4.1.0-0.noarch already installed and latest versionResolving Dependencies--> Running transaction check---> Package hp-health.x86_64 0:9.31-1572.3.rhel6 will be installed---> Package hpssacli.x86_64 0:1.60-17.0 will be installed--> Finished Dependency Resolution

Dependencies Resolved

========================================================================== Package Arch Version Repository Size==========================================================================Installing: hp-health x86_64 9.40-1602.44.rhel6 HP-SPP 565 k hpssacli x86_64 1.60-17.0 HP-SPP 6.5 M

Transaction Summary==========================================================================Install 2 Package(s)

Total download size: 7.0 MInstalled size: 20 MIs this ok [y/N]: yDownloading Packages:(1/2): hp-health-9.40-1602.44.rhel6.x86_64.rpm | 565 kB 00:02

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 5 of 33

Page 6: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

(2/2): hpssacli-1.60-17.0.x86_64.rpm | 6.5 MB 00:02--------------------------------------------------------------------------Total 1.5 MB/s | 7.0 MB 00:04Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : hpssacli-1.60-17.0.x86_64 1/2

DOWNGRADE NOTE: To downgrade this application to any version prior to 9.10.x.x, the current RPM must be manually uninstalled using the "rpm -e" command before any prior versions can be installed.

[...]

Installing : hp-health-9.40-1602.44.rhel6.x86_64 2/2Please read the Licence Agreement for this software at

/opt/hp/hp-health/hp-health.license

By not removing this package, you are accepting the termsof the "HP Proliant Essentials Software End User License Agreement". Using Proliant Standard IPMI based System Health Monitor Starting Proliant Standard IPMI based System Health Monitor (hpasmlited): [ OK ]Starting HP Advanced Server Recovery Daemon [ OK ]The hp-health RPM has installed successfully.Installed products updated. Verifying : hp-health-9.31-1572.3.rhel6.x86_64 1/2 Verifying : hpssacli-1.60-17.0.x86_64 2/2

Installed: hp-health.x86_64 0:9.40-1622.44.rhel6 hpssacli.x86_64 0:1.60-17.0

Complete!

Now is time to use some of these commands to get information on your ProLiant Server(Hardware logs, Blue Light), and also to modify its configuration:

# hplog -v | head

ID Severity Initial Time Update Time Count-------------------------------------------------------------0000 Information 08:28 05/28/2011 08:28 05/28/2011 0001LOG: Maintenance note: IML cleared through hpasmcli

0001 Repaired 00:00 00/00/0000 15:01 07/01/2011 0001LOG: System Power Supply: General Failure (Power Supply 1)

0002 Caution 14:39 07/01/2011 14:39 07/01/2011 0001

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 6 of 33

Page 7: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

This command is similar to hpasmcli -s "show iml" | head.

# hplog -a STATUSCurrent ASR Status is ENABLED and the timeout value is 10

# man hplog

ASR manipulation can also be achieved with the hpasmcli -s "show asr". Use the setoption to modify values

# hpuid -sOFF# hpuid -e# hpuid -sON# hpuid -d

# man hpuid

Similarly, UID manipulation can also be achieved with the hpasmcli -s "show uid".Use the set option to modify values

# hpasmcli -s "show ipl"

IPL (Standard Boot Order)-------------------------#0 CDROM#1 PXE#2 HDD

IPL however can't be modified by hpasmcli. Use for that the hpbootcfg command.

# hpbootcfg -H03 00: Harddrive first, normal boot process

# hpbootcfg -C02 00: CD ROM first, normal boot process

# hpbootcfg -P40 00: Normal Device first, one time boot to PXE

# hpbootcfg -D00 00: Normal Device first, normal boot process

# man hpbootcfg

You may want to verify the new configuration by rebooting the server. Another commandwill be detailed later on to modify fully the boot order from the SmartStart ScriptingToolkit.

# hpasmcli -s "show asr"

ASR timeout is 10 minutes.ASR is currently enabled.

# hpasmcli -s "disable asr"

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 7 of 33

Page 8: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Successfully disabled ASR timer.

# hpasmcli -s "enable asr"

Successfully enabled ASR timer.

# man hpasmcli

We'll now interact with the Insight Lights Out component on the server with the hponcfgutiliy.

# hponcfg -gHP Lights-Out Online Configuration utilityVersion 4.4.0 Date 06/13/2014 (c) Hewlett-Packard Company, 2014Firmware Revision = 2.03 Device type = iLO 4 Driver name = hpiloHost Information: Server Name: host is unnamed Server Number:

# hponcfg -a -w /tmp/ilo.xmlHP Lights-Out Online Configuration utilityVersion 4.4.0 Date 06/13/2014 (c) Hewlett-Packard Company, 2014Firmware Revision = 2.03 Device type = iLO 4 Driver name = hpiloManagement Processor configuration is successfully written to file "/tmp/ilo.xml"

# cat /tmp/ilo.xml<!-- HPONCFG VERSION = "4.4.0" --><!-- Device: iLO4 Firmware Version : 2.03 --><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"/>

<DHCP_ENABLE VALUE="Y"/>[...] <DNS_NAME VALUE="ILOCZ3223LAA2"/>[...]

Now we'll use the same command to modify the value of the DNS name of this iLO board,after we removed the account info which would create a problem.

# perl -pi -e \'s/DNS_NAME VALUE="ILOCZ3223LAA2"/DNS_NAME VALUE="MyPersonaliLO"/' \ /tmp/ilo.xml# grep DNS_NAME /tmp/ilo.xml <DNS_NAME VALUE="MyPersonaliLO"/># perl -pi -e 's/^.*user_password.*$//' /tmp/ilo.xml# perl -pi -e 's/^.*SSO_INFO.*//' /tmp/ilo.xml# hponcfg -f /tmp/ilo.xmlHP Lights-Out Online Configuration utility

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 8 of 33

Page 9: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Version 4.4.0 Date 06/13/2014 (c) Hewlett-Packard Company, 2014Firmware Revision = 2.03 Device type = iLO 4 Driver name = hpilo<INFORM>Integrated Lights-Out will reset at the end of the script.</INFORM>[...]

Please wait while the firmware is reset. This might take a minuteScript succeeded

Check by logging to your iLO that the new name is now in usage. Or use hponcfg again.

Another way to interact with the iLO is to use the locfg.pl perl script available from thepagehttp://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253DMTX_e8dbfeb5c88c4689a2958de054%257CswEnvOID%253D%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken and which allow remote modification of the iLOconfiguration, providing you have the appropriate credential, which the hponcfg commanddoesn't require as using the hpilo driver to dialog with the iLO board.

Finally from the command line, we will interact with the Smart Array Controller.

# hpssacli ctrl all show

Smart Array P244br in Slot 0 (Embedded) (sn: PDZVU0HLM7N0AR)

# hpssacli ctrl slot=0 show

Smart Array P244br in Slot 0 (Embedded) Bus Interface: PCI Slot: 0 Serial Number: PDZVU0HLM7N0AR Cache Serial Number: PDZVU0HLM7N0AR RAID 6 (ADG) Status: Enabled Controller Status: OK Hardware Revision: B Firmware Version: 1.18 Rebuild Priority: High Expand Priority: Medium Surface Scan Delay: 3 secs Surface Scan Mode: Idle Queue Depth: Automatic Monitor and Performance Delay: 60 min Elevator Sort: Enabled Degraded Performance Optimization: Disabled Inconsistency Repair Policy: Disabled Wait for Cache Room: Disabled Surface Analysis Inconsistency Notification: Disabled Post Prompt Timeout: 15 secs Cache Board Present: True

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 9 of 33

Page 10: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Cache Status: OK Cache Ratio: 10% Read / 90% Write Drive Write Cache: Disabled Total Cache Size: 1024 MB Total Cache Memory Available: 792 MB No-Battery Write Cache: Disabled SSD Caching RAID5 WriteBack Enabled: True SSD Caching Version: 2 Cache Backup Power Source: Batteries Battery/Capacitor Count: 1 Battery/Capacitor Status: OK SATA NCQ Supported: True Spare Activation Mode: Activate on physical drive failure (default) Controller Temperature (C): 44 Cache Module Temperature (C): 34 Number of Ports: 1 Internal only Encryption: Disabled Encryption Login Status: Not Logged In Encryption Allow Plaintext Volumes: Disallow Encryption Key Management Mode: Not Set Encryption Supported: True Encryption RTC SRAM Status: Passed Encryption Master Key reset in Progress: False Encryption Local Key Cache Enabled: False Encryption Crypto Officer Password: Not Set Encryption User Password: Not Set Encryption License Installed: True Encryption FW Locked for Update: Unlocked Encryption Controller Password: Not Set Encryption Local Key Cache Supported: True Encryption Controller Locked: Unlocked Encryption Has Suspended Controller Password: False Encryption Controller Password Unlock Attempts Remaining: 0 Encryption Logical Drive(s) Locked For Missing Controller Password: False Encryption Password Recovery Parameters Set: False Encryption Master Key: Not Set Encryption Remote Mode Master Key Mismatch: False Encryption/HP SSD Smart Path Mixing Supported: True Encryption/HP SmartCache Mixing Supported: False Driver Name: hpsa Driver Version: 3.4.2 Driver Supports HP SSD Smart Path: False Negotiated PCIe Data Rate: PCIe 3.0 x4 (3940 MB/s) Controller Mode: SmartArray Controller Mode Reboot: Not Required Latency Scheduler Setting: Disabled Current Power Mode: MaxPerformance

# hpssacli ctrl slot=0 array all show detail

Smart Array P244br in Slot 0 (Embedded)

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 10 of 33

Page 11: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Array: A Interface Type: SAS Unused Space: 0 MB Status: OK Array Type: Data HP SSD Smart Path: disable

# hpssacli ctrl slot=0 pd all show

Smart Array P244br in Slot 0 (Embedded)

array A

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 500 GB, OK) physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 500 GB, OK)

# hpssacli ctrl slot=0 pd all show detail

array A

physicaldrive 1I:1:1 Port: 1I Box: 1 Bay: 1 Status: OK Drive Type: Data Drive Interface Type: SAS Size: 500 GB Native Block Size: 512 Rotational Speed: 7200 Firmware Revision: HPD8 Serial Number: 9XF39XCY0000W512D24J Model: HP MM0500FBFVQ Current Temperature (C): 28 Maximum Temperature (C): 33 PHY Count: 2 PHY Transfer Rate: 6.0Gbps, Unknown Drive Authentication Status: OK Carrier Application Version: 11 Carrier Bootloader Version: 6

physicaldrive 1I:1:2[...]

# hpssacli ctrl slot=0 ld all show detail

Smart Array P244br in Slot 0 (Embedded)

array A

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 11 of 33

Page 12: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Logical Drive: 1 Size: 465.7 GB Fault Tolerance: 1 Heads: 255 Sectors Per Track: 32 Cylinders: 65535 Strip Size: 512 KB Full Stripe Size: 512 KB Status: OK Caching: Enabled Unique Identifier: 600508B1001CE8448DA62DD86BA751A2 Disk Name: /dev/sda Mount Points: /boot/efi 200 MB Partition Number 2, /boot 500 MB Partition Number 3 OS Status: LOCKED Logical Drive Label: 0046D469PDZVU0HLM7N0AR9F6A Mirror Group 0: physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 500 GB, OK) Mirror Group 1: physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 500 GB, OK) Drive Type: Data LD Acceleration Method: Controller Cache

# hpssacli ctrl slot=0 array A modify led=on duration=600# hpssacli help# hpssacli help modify

We can now try to see the impact of some parameters on the I/O:

# rm -f /tmp/10000MB ; dd if=/dev/zero of=/tmp/10000MB bs=1M count=1000010000+0 records in10000+0 records out10485760000 bytes (10 GB) copied, 42.4848 s, 247 MB/s# hpssacli ctrl slot=0 modify cacheratio=100/0# rm -f /tmp/10000MB ; dd if=/tmp/10000MB of=/tmp/dest bs=1M count=512512+0 records in512+0 records out536870912 bytes (537 MB) copied, 0.503862 s, 1.1 GB/s# hpssacli ctrl slot=0 modify cacheratio=0/100# rm -f /tmp/10000MB ; dd if=/tmp/10000MB of=/tmp/dest bs=1M count=512512+0 records in512+0 records out536870912 bytes (537 MB) copied, 0.730994 s, 734 MB/s# hpssacli ctrl slot=0 modify cacheratio=25/75# rm -f /tmp/10000MB ; dd if=/tmp/10000MB of=/tmp/dest bs=1M count=512512+0 records in512+0 records out536870912 bytes (537 MB) copied, 0.631807 s, 850 MB/s

You may want to repeat the dd command many times to see fluctuations, and change thesize to see cache impact.

# hpssacli ctrl slot=0 modify rebuildpriority=high# hpssacli ctrl slot=0 ld all show detail | grep -i strip

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 12 of 33

Page 13: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Strip Size: 512 KB Full Stripe Size: 512 KB# hpssacli ctrl slot=0 logicaldrive 1 modify raid=1 stripsize=1024# hpssacli ctrl slot=0 ld all show detail | grep -i strip Strip Size: 1024 KB Full Stripe Size: 1024 KB# sync ; cat /proc/interrupts | grep hpsa 77: 5804 0 0 1000 0 823 IR-PCI-MSI-edge hpsa0 78: 1161 0 0 0 139 2530 IR-PCI-MSI-edge hpsa0 79: 367 2326 0 0 0 0 IR-PCI-MSI-edge hpsa0 80: 683 0 1886 0 0 0 IR-PCI-MSI-edge hpsa0 81: 1390 0 0 1710 0 5345 IR-PCI-MSI-edge hpsa0 82: 290 0 0 0 7756 0 IR-PCI-MSI-edge hpsa0 83: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0 84: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0# rm -f /tmp/10000MB ; dd if=/tmp/10000MB of=/tmp/dest bs=1M count=512512+0 records in512+0 records out536870912 bytes (537 MB) copied, 0.625692 s, 858 MB/s# sync ; cat /proc/interrupts | grep hpsa 77: 5804 0 0 1000 0 1110 IR-PCI-MSI-edge hpsa0 78: 1161 0 0 0 139 2788 IR-PCI-MSI-edge hpsa0 79: 583 2326 0 0 0 0 IR-PCI-MSI-edge hpsa0 80: 683 0 1886 0 0 0 IR-PCI-MSI-edge hpsa0 81: 1390 0 0 1710 0 5345 IR-PCI-MSI-edge hpsa0 82: 554 0 0 0 7756 0 IR-PCI-MSI-edge hpsa0 83: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0 84: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0

# hpssacli ctrl slot=0 logicaldrive 1 modify raid=1 stripsize=256# sync ; cat /proc/interrupts | grep hpsa 77: 5804 23 0 1000 0 1110 IR-PCI-MSI-edge hpsa0 78: 1161 0 0 25 139 2788 IR-PCI-MSI-edge hpsa0

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 13 of 33

Page 14: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

79: 610 2326 0 0 0 0 IR-PCI-MSI-edge hpsa0 80: 683 0 1915 0 0 0 IR-PCI-MSI-edge hpsa0 81: 1394 0 0 1710 0 5345 IR-PCI-MSI-edge hpsa0 82: 560 0 0 0 7756 0 IR-PCI-MSI-edge hpsa0 83: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0 84: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0# rm -f /tmp/10000MB ; dd if=/tmp/10000MB of=/tmp/dest bs=1M count=512512+0 records in512+0 records out536870912 bytes (537 MB) copied, 0.646091 s, 831 MB/s# sync ; cat /proc/interrupts | grep hpsa 77: 5804 358 0 1000 0 1110 IR-PCI-MSI-edge hpsa0 78: 1161 0 0 420 139 2788 IR-PCI-MSI-edge hpsa0 79: 749 2326 0 0 0 0 IR-PCI-MSI-edge hpsa0 80: 683 0 2091 0 0 0 IR-PCI-MSI-edge hpsa0 81: 1394 0 0 1710 0 5345 IR-PCI-MSI-edge hpsa0 82: 562 0 0 0 7756 0 IR-PCI-MSI-edge hpsa0 83: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0 84: 0 0 0 0 0 0 IR-PCI-MSI-edge hpsa0

Look at the differences you get between the 2 configurations and make deductions aboutthe impact of stripe size on processing interrupts on your system. Change the parametersto see more differences and pay attention to cache effects.

SNMP management

Estimated time: 10 minutes

We will now configure the SNMP stack and then install the client agent to query the snmpdserver.

# yum install hp-snmp-agents

[...]

# /sbin/hpsnmpconfig

You will now be asked a series of SNMP configuration questions. How you answer these question will affect the way SNMP behaves. Configuring SNMP could have security implications on your system. If you are not sure how

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 14 of 33

Page 15: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

to answer a question, you can abort by pressing <Ctrl-c> and no changes will be made to your SNMP configuration.

Enter the localhost SNMP Read/Write community string(one word, required, no default): privateRe-enter the same input to confirm: privateACCEPTED: inputs match!

Enter localhost SNMP Read Only community string(one word, Blank to skip): publicRe-enter the same input to confirm: publicACCEPTED: inputs match!

Enter Read/Write Authorized Management Station IP or DNS name(Blank to skip): Enter Read Only Authorized Management Station IP or DNS name(Blank to skip): Enter default SNMP trap community string(One word; Blank to skip): Enter SNMP trap destination IP or DNS name(One word; Blank to skip): The system contact is set tosyscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)Do you wish to change it (y/n) (Blank is n): The system location is set tosyslocation Unknown (edit /etc/snmp/snmpd.conf)Do you wish to change it (y/n) (Blank is n): # /etc/init.d/hp-snmp-agents start Starting Health agent (cmahealthd): [ OK ] Starting Standard Equipment agent (cmastdeqd): [ OK ] Starting Host agent (cmahostd): [ OK ] Starting Threshold agent (cmathreshd): [ OK ] Starting RIB agent (cmasm2d): [ OK ] Starting Performance agent (cmaperfd): [ OK ] Starting SNMP Peer (cmapeerd): [ OK ] Starting Storage Event Logger (cmaeventd): [ OK ] Starting FCA agent (cmafcad): [ OK ] Starting SAS agent (cmasasd): [ OK ] Starting IDA agent (cmaidad): [ OK ] Starting IDE agent (cmaided): [ OK ] Starting SCSI agent (cmascsid): [ OK ] Starting NIC Agent Daemon (cmanicd): [ OK ]# systemctl start snmpd # on RHEL7# yum install net-snmp-utilsSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package net-snmp-utils.x86_64 1:5.5-44.el6 will be installed--> Finished Dependency Resolution========================================================================== Package Arch Version Repository Size==========================================================================

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 15 of 33

Page 16: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Installing: net-snmp-utils x86_64 1:5.5-44.el6 rhel 171 k

Transaction Summary==========================================================================Install 1 Package(s)

Total download size: 171 kInstalled size: 362 kIs this ok [y/N]: yDownloading Packages:net-snmp-utils-5.5-44.el6.x86_64.rpm | 171 kB 00:00Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : 1:net-snmp-utils-5.5-44.el6.x86_64 1/1 Verifying : 1:net-snmp-utils-5.5-44.el6.x86_64 1/1

Installed: net-snmp-utils.x86_64 1:5.5-44.el6

Transaction Summary==========================================================================Install 1 Package(s)

Total download size: 171 k

Complete!

You can now explore the MIB to get values specific to HP ProLiant servers.

# snmpget -v 2c -c public localhost SNMPv2-SMI::enterprises.232.2.2.13.1.1.7.1

SNMPv2-SMI::enterprises.232.2.2.13.1.1.7.1 = STRING: "BladeSystem c7000 Enclosure G3"

# snmpwalk -v 2c -c public localhost SNMPv2-SMI::enterprises.232

[...]

You can continue to query the MIB for various values. For more information, look athttp://www.oidview.com/mibs/232/md-232-1.html in order to have a better idea of thevalue that you can query and check their result on your system.

Web based management

Estimated time: 15 minutes

We will first install the additional components needed for this part:

# yum install hpsmh hpdiags hpssa hp-smh-templatesLoaded plugins: product-id, security, subscription-managerUpdating certificate-based repositories.

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 16 of 33

Page 17: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Unable to read consumer identitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package cpqacuxe.x86_64 0:9.40-12.0 will be installed---> Package hp-smh-templates.noarch 0:9.4.0-1327.37 will be installed--> Processing Dependency: hp-snmp-agents for package: hp-smh-templates-9.4.0-1327.37.noarch---> Package hpdiags.x86_64 0:9.5.0-938 will be installed---> Package hpsmh.x86_64 0:7.2.2-8 will be installed--> Running transaction check---> Package hp-snmp-agents.x86_64 0:9.40-2506.37.rhel6 will be installed--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================Package Arch Version Repository Size==========================================================================Installing: hpssa x86_64 9.40-12.0 HP-spp 5.6 M hp-smh-templates noarch 9.4.0-1327.37 HP-spp 3.5 M hpdiags x86_64 9.5.0-938 HP-spp 15 M hpsmh x86_64 7.2.2-8 HP-spp 13 MInstalling for dependencies: hp-snmp-agents x86_64 9.40-2506.37.rhel6 HP-spp 963 kTransaction Summary==========================================================================Install 5 Package(s)

Total download size: 38 MInstalled size: 156 MIs this ok [y/N]: yDownloading Package(1/5): hpssa-1.60-17.0.x86_64.rpm | 5.6 MB 00:09(2/5): hp-smh-templates-9.4.0-1327.37.noarch.rpm | 3.5 MB 00:02(3/5): hp-snmp-agents-9.40-2506.37.rhel6.x86_64.rpm | 963 kB 00:00(4/5): hpdiags-9.5.0-938.linux.x86_64.rpm s: | 15 MB 00:14(5/5): hpsmh-7.2.2-8.x86_64.rpm | 13 MB 00:12--------------------------------------------------------------------------Total 3.7 MB/s | 39 MB 00:37Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : hpsmh-7.2.2-8.x86_64 1/5Detected Red Hat Enterprise Linux AS/ES/WS/SERVER 6Created hpsmh user and group...

*********************************************************** System Management Homepage installed successfully with ** default configuration values. To change the default *

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 17 of 33

Page 18: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

* configuration values, type the following command at ** the root prompt: ** ** /opt/hp/hpsmh/sbin/smhconfig ** ***********************************************************[...]

Complete!# hpssa -startHP Smart Storage Administrator 1.60.17.0The HP Smart Storage Administrator daemon has started.

If the smh daemon has been launched during the install process, then you need to restartit after again to have the hpssa integration working:

# /etc/init.d/hpsmhd restart

Log on the SMH at https://your-ip-address:2381. You can navigate through theinterface to explore what it provides in term of information.

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 18 of 33

Page 19: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Using HP SUM (Smart Update Manager)

Estimated time: 10 minutes

We will first install the additional components needed for this part:

# yum install hpsum[...]Setting up Install ProcessResolving DependenciesSkipping filters plugin, no data--> Running transaction check---> Package hpsum.x86_64 0:6.3.1-2.rhel6 will be installed--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================Package Arch Version Repository Size=========================================================================Installing: hpsum x86_64 6.3.1-2.rhel6 HP-hpsum 108 M

Transaction Summary=========================================================================Install 1 Package(s)

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 19 of 33

Page 20: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Total download size: 108 MInstalled size: 708 MIs this ok [y/N]: yDownloading Packages:hpsum-6.3.1-2.rhel6.x86_64.rpm | 108 MB 00:32Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : hpsum-6.3.1-2.rhel6.x86_64 1/1Please read the Licence Agreement for this software at

/opt/hp/hpsum/hpsum.license

By not removing this package, you are accepting the termsof the "HP Proliant Essentials Software End User License Agreement".

The HPSUM RPM has installed successfully. Verifying : hpsum-6.3.1-2.rhel6.x86_64 1/1

Installed: hpsum.x86_64 0:6.3.1-2.rhel6

Complete!

# hpsum&

Again explore the different possibilities brought by hpsum in GUI mode. Also have a look atthe man page of this command which will give you an idea of what can be automated withit.

Using the HP RESTful API

Estimated time: 10 minutes (Kudos to Terry Young for the content)

We will first install the additional component needed for this part:

# yum install hprestLoading repository data...Reading installed packages...Resolving package dependencies...

The following NEW package is going to be installed: hprest

The following package is not supported by its vendor: hprest

1 new package to install.Overall download size: 10.4 MiB. After the operation, additional 10.6 MiB will be used.Continue? [y/n/?] (y):

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 20 of 33

Page 21: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Retrieving package hprest-1.1-41.x86_64 (1/1), 12.4 MiB (12.6 MiB unpacked)Retrieving package hprest-1.1-41.x86_64 (1/1), 12.4 MiB (12.6 MiB unpacked)Installing: hprest-1.1-41 [done]

# hprest login https://ilolabX.labossi.hpintelco.org –-user=demopaq --password=passwordhprest : HP RESTful Interface Tool version 1.0.0Copyright (c) 2014 Hewlett Packard Development Company L.P.----------------------------------------------------------------------------------------------------------------------------------------------------------Discovering................................DoneWARNING: Cache is activated session keys are stored in plaintext

# hprest typeshprest : HP RESTful Interface Tool version 1.0.0Copyright (c) 2014 Hewlett Packard Development Company L.P.----------------------------------------------------------------------------------------------------------------------------------------------------------Type options:AccountService.0.9.5Chassis.0.9.5Collection.0.9.5ComputerSystem.0.9.5EthernetNetworkInterface.0.9.5ExtendedError.0.9.5HpBaseConfigs.0.9.5HpBios.1.0.0HpBiosMapping.1.0.0HpSecureBoot.0.9.5HpServerBootSettings.1.0.0HpServerPCISlot.0.9.5HpServerPciDevice.0.9.5HpiLODateTime.0.9.5HpiLOEmbeddedMedia.0.9.5HpiLOFederatedGroupCapping.0.9.5HpiLOFederationGroup.0.9.5HpiLOFederationPeers.0.9.5HpiLOFirmwareUpdate.0.9.5HpiLOLicense.0.9.5Manager.0.9.5ManagerAccount.0.9.5ManagerNetworkService.0.9.5Power.0.9.5ProviderURIList.0.9.5SchemaFile.0.9.5ServiceRoot.0.9.5Session.0.9.5SnmpService.0.9.5

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 21 of 33

Page 22: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

ThermalMetrics.0.9.5VirtualMedia.0.9.5

# hprest select ServiceRoot.0.9.5hprest : HP RESTful Interface Tool version 1.0.0Copyright (c) 2014 Hewlett Packard Development Company L.P.# hprest listhprest : HP RESTful Interface Tool version 1.0.0Copyright (c) 2014 Hewlett Packard Development Company L.P.--------------------------------------------------------------------------Name=HP RESTful Root Servicelinks Managers href=/rest/v1/Managers Sessions href=/rest/v1/Sessions AccountService href=/rest/v1/AccountService self href=/rest/v1/root Chassis href=/rest/v1/Chassis Systems href=/rest/v1/Systems Schemas href=/rest/v1/Schemas Registries href=/rest/v1/RegistriesServiceVersion=0.9.5Oem Hp Manager ManagerFirmwareVersion=2.03 HostName=ILOCZ250211YL ManagerType=iLO 4 Blade EnclosureName=LabOSSI RackName=Z8R1U25 BayNumber=Bay 4 FQDN=ILOCZ250211YL. DefaultLanguage=en Languages Version=2.03 Language=en TranslationName=English Type=HpiLOServiceExt.0.9.5 links Providers href=/rest/v1/Providers Sessions LocalLoginEnabled=True LoginFailureDelay=0

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 22 of 33

Page 23: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

LDAPAuthLicenced=False KerberosEnabled=False ServerName=lab4-2.labossi.hpintelco.org SecurityOverride=False CertCommonName=ILOCZ250211YL LoginHint HintPOSTData UserName=username Password=password Hint=POST to /Sessions to login using the following JSON object: LDAPEnabled=FalseTime=2015-02-03T18:15:18ZType=ServiceRoot.0.9.5If you have the following types, you can continue with this:

# hprest select HpBios.1.1.0# hprest listhprest : HP RESTful Interface Tool version 1.0.0Copyright (c) 2014 Hewlett Packard Development Company L.P.----------------------------------------------------------------------------------------------------------------------------------------------------------MemFastTraining=EnabledPowerRegulator=DynamicPowerSavingsEmbeddedDiagnostics=EnabledUrlBootFile=""[...]SerialConsoleEmulation=Vt100PlusDescription=This is the Platform/BIOS Configuration (RBSU) Pending SettingsAcpiRootBridgePxm=EnabledNicBoot1=NetworkBootCustomPostMessage=""RedundantPowerSupply=BalancedModeTpmState=NotPresentCollabPowerControl=Enabled

# hprest get AdminName --selector HpBios.1.1.0hprest : HP RESTful Interface Tool version 1.0.0Copyright (c) 2014 Hewlett Packard Development Company L.P.----------------------------------------------------------------------------------------------------------------------------------------------------------AdminName=""# hprest set AdminName="Pinguin"# hprest get AdminName --selector HpBios.1.1.0# hprest status# hprest commit# hprest exit

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 23 of 33

Page 24: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

You may also want to see how this looks like from your browser. For that point it to theURL: https://10.3.222.10X/rest/v1

From there you can also navigate through the various types.

Usig RPM based Firmware updates

Estimated time: 10 minutes

Since April 2015, HP is delivering firmware update under a package format (RPM for now).This will be the new preferred format for delivering firmware update going forward. Youcan use the latest hpsum (starting with 7.2.0) to deploy them as the simplest way.

# hpsum infohpsum : HP Smart Update Manager Version 6.5.0Copyright (c) 2013-2014 Hewlett Packard Development Company L.P.Model: ProLiant BL460c Gen9, ROM: I36, ROM Version: 12/24/2014----------------------------------------------------------------------------------------------------------------------------------------------------------Searching for firmwareERROR : No firmware foundDid you install software using using yum/zypper/apt# yum list hp-firmware'*'Loaded plugins: product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Available Packageshp-firmware-43d7eff89e.i386 15.10.07.00-2 HP-spphp-firmware-52de99d707.i386 HPD8-1.1 HP-spphp-firmware-72e5d6942f.i386 HPG4-1.1 HP-spphp-firmware-a8d1969535.x86_64 HPD6-1.1 HP-spphp-firmware-b923956874.i386 HPG5-1.1 HP-spphp-firmware-cna-emulex.x86_64 2015.06.01-1.1 HP-spphp-firmware-e4f5b5c9a7.i386 HPG5-1.1 HP-spphp-firmware-ef3ea1e703.x86_64 HPG1-1.1 HP-spphp-firmware-ef3ea1e703.i386 HPG1-3 HP-spphp-firmware-fc-brocade.x86_64 2015.02.01-1.1 HP-spphp-firmware-fc-emulex.x86_64 2015.06.01-1.1 HP-spphp-firmware-fc-qlogic.x86_64 2015.06.01-1.1 HP-spp[...]hp-firmware-hdd-009c9a2503.x86_64 HPDB-2 HP-spp[...]hp-firmware-ilo4.i386 2.20-1.1 HP-spphp-firmware-nic-broadcom.x86_64 2.15.10-1.1 HP-spp[...]hp-firmware-system-a16.i386 2014.09.03-3 HP-spp[...]# yum install -y hp-firmware-ilo4.i386[...]Installed: hp-firmware-ilo4.i386 0:2.20-1.1

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 24 of 33

Page 25: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Complete!# hpsum listhpsum : HP Smart Update Manager Version 6.5.0Copyright (c) 2013-2014 Hewlett Packard Development Company L.P.Model: ProLiant BL460c Gen9, ROM: I36, ROM Version: 12/24/2014--------------------------------------------------------------------------Searching for firmware.Analyzing results.

Info | NAME | VERSION | INSTALLED | TYPE |--------------------------------------------------------------------------ieRU1 | ilo4 | 2.20 | 2.03 | ilo4 |# hpsum queryhpsum : HP Smart Update Manager Version 6.5.0Copyright (c) 2013-2014 Hewlett Packard Development Company L.P.Model: ProLiant BL460c Gen9, ROM: I36, ROM Version: 12/24/2014--------------------------------------------------------------------------Searching for firmware.Analyzing results.

ilo4--------------------------------------------------------------------------%{RELEASEDATE_SECOND} 1%{RELEASEDATE_MONTH} 5%{FIRMWARE_STRING} smartcomponent-linux-firmware-ilo%{RPMNAME} hp-firmware-ilo4%{REBOOT_REQUIRED} no%{VERSIONID} ce9169979cde44eb83035e68a08be8cc%{RELEASENUM} 1.1[...]%{RELEASEDATE_YEAR} 2015%{REVISION} # hpsum upgradehpsum : HP Smart Update Manager Version 6.5.0Copyright (c) 2013-2014 Hewlett Packard Development Company L.P.Model: ProLiant BL460c Gen9, ROM: I36, ROM Version: 12/24/2014--------------------------------------------------------------------------Searching for firmware.Analyzing results.

The following firmware will be applied HP Integrated Lights-Out 4 2.20Do you want to apply them? [y] : y

Using IPMI

Estimated time: 10 minutes

We will first install the additional components needed for this part:

# yum install ipmitool[...]Setting up Install Process

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 25 of 33

Page 26: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Resolving DependenciesSkipping filters plugin, no data--> Running transaction check---> Package ipmitool.x86_64 0:1.8.13-7.el7 will be installed--> Processing Dependency: OpenIPMI-modalias for package: ipmitool-1.8.13-7.el7.x86_64--> Running transaction check---> Package OpenIPMI-modalias.x86_64 0:2.0.19-11.el7 will be installed--> Finished Dependency Resolution

Dependencies Resolved

[...]Now uses that tool to perform action on your server:

# ipmitool lan print 2

Get Device ID command failed: 0xff Unspecified errorSet in Progress : Set CompleteAuth Type Support : Auth Type Enable : Callback : : User : : Operator : : Admin : : OEM : IP Address Source : DHCP AddressIP Address : 10.3.222.104Subnet Mask : 255.255.255.0MAC Address : fc:15:b4:8e:c6:54SNMP Community String : BMC ARP Control : ARP Responses Enabled, Gratuitous ARP DisabledDefault Gateway IP : 10.3.222.1802.1q VLAN ID : Disabled802.1q VLAN Priority : 0Cipher Suite Priv Max : Not Available

Additional management tools

Estimated time: 20 minutes

We will first install the additional components needed for this part:

# yum install hp-scripting-toolsLoaded plugins: product-id, security, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package hp-scripting-tools.i386 0:9.30-13.rhel6 will be installed--> Processing Dependency: libsysfs.so.2 for package: hp-scripting-tools-9.30-13.rhel6.i386--> Running transaction check---> Package libsysfs.i686 0:2.1.0-6.1.el6 will be installed--> Finished Dependency Resolution

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 26 of 33

Page 27: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Dependencies Resolved

========================================================================== Package Arch Version Repository Size==========================================================================Installing: hp-scripting-tools i386 9.50-97.rhel6 HP-Extras 484 k

Transaction Summary==========================================================================Install 1 Package(s)

Total download size: 494 kInstalled size: 1.6 MIs this ok [y/N]: yDownloading Packages:(1/1): hp-scripting-tools-9.50-97.rhel6.i686.rpm | 484 kB 00:03--------------------------------------------------------------------------Total 171 kB/s | 484 kB 00:03[...]Please read the Licence Agreement for this software at

/opt/hp/hp-scripting-tools/hp-scripting-tools.license

By not removing this package, you are accepting the termsof the "HP Proliant Essentials Software End User License Agreement".

The hp-scripting-tools RPM has installed successfully.[...]Complete!

Now use the new commands to see how to make custom scripts acting differently based onthe server type or configuration, store state between reboots, change the boot order,modify the RBSU configuration and reboot choosing the next one-boot device.

# hp-discovery | grep SystemName <SystemName>ProLiant BL460c Gen9</SystemName># hp-discovery | grep Enclosure # if working on a Blade <EnclosureName>LabOSSI</EnclosureName> <EnclosureType>BladeSystem c7000 Enclosure G3</EnclosureType> <EnclosureSerialNumber>CZJ502086M</EnclosureSerialNumber># 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" => "HP Smart Array P244br Controller"Expression is TRUE# hp-statemgr -R DOMAIN0# hp-statemgr -W DOMAIN 22# hp-statemgr -R DOMAIN2

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 27 of 33

Page 28: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

# hp-setbootorder Current Boot Order: hd pxe cdrom(none) usb(none) floppy(none)# hp-setbootorder pxe hdCurrent Boot Order: hd pxe cdrom(none) usb(none) floppy(none)Requested Order: pxe hdWritten Order: pxe hd cdrom(none) usb(none) floppy(none)# hp-setbootorder Current Boot Order: pxe hd cdrom(none) usb(none) floppy(none)# hp-setbootorder hd pxeCurrent Boot Order: pxe hd cdrom(none) usb(none) floppy(none)Requested Order: hd pxeWritten Order: hd pxe cdrom(none) usb(none) floppy(none)

# hp-conrep -s -f /tmp/rcu.xmlconrep 4.1.2.0 - HP Scripting Toolkit Configuration Replication ProgramCopyright (c) 2007-2014 Hewlett-Packard Development Company, L.P.

System Type: ProLiant BL460c Gen9 ROM Date : 12/24/2014 ROM Family : I36 Processor Manufacturuer : Intel(R) Corporation

XML System Configuration: /opt/hp/hp-scripting-tools/etc/conrep.xmlHardware Configuration: /tmp/rcu.xml Global Restriction: [3.40 ] OK

Platform check: : [ProLiant DL120 G7 ] no match : [ProLiant ML110 G7 ] no match : [ProLiant DL3 ] no match : [ProLiant ML3 ] no match : [ProLiant DL5 ] no match : [ProLiant ML5 ] no match : [ProLiant DL7 ] no match : [ProLiant DL9 ] no match : [ProLiant BL ] match : [ProLiant XW ] no match : [ProLiant WS ] no match : [ProLiant SE ] no match : [ProLiant SL4 ] no match : [ProLiant SL3 ] no match : [ProLiant SL2 ] no match : [ProLiant DL160 Gen8 ] no match : [ProLiant SL160 Gen8 ] no match : [ProLiant SL140 ] no match : [ProLiant WS460c Gen8 WS Blade] no match : [ProLiant MicroServer Gen8] no match : [StoreEasy ] no match : [ProLiant ML10 ] no match : [Gen9 ] match

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 28 of 33

Page 29: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

: [ProLiant XL ] no match

Saving configuration data to /tmp/rcu.xml

Conrep Return Code: 0# grep -A 3 -B 1 -i _logo /tmp/rcu.xml <Section name="PCI_Bus_Padding_Option_Gen8" helptext="For Gen8 servers only. Option allows the user to disable the default PCI Bus setting where each expansion slot is provided an extra PCI Bus number. By default, the system ROM will pad one PCI bus per bridge to not affect current bus numbering schemes.">Enabled</Section> <Section name="Power-on_Logo" helptext="Allows disabling of HP logo at system boot.">Enabled</Section> <Section name="Hide_Option_ROM_Messages" helptext="Allows disabling of Hide Option ROM Messages feature.">Enabled</Section> <Section name="Redundant_Power_Supply_Mode" helptext="Allows configuringhow the system will handle redundant power supply configs. Balanced mode shares the power delivery equally between installed power supplies.">Balanced_Mode</Section> <Section name="Dynamic_Power_Savings_Mode_Response" helptext="Allows thesystem ROM to control processor performance and power state depending on the processor workload.">Fast</Section# perl -pi -e \'s/(.*)"Power-on_Logo" (.*)>Enabled/$1"Power-on_Logo" $2>Disabled/' \ /tmp/rcu.xml# grep -A 3 -B 1 -i thread /tmp/rcu.xml <Section name="PCI_Bus_Padding_Option_Gen8" helptext="For Gen8 servers only. Option allows the user to disable the default PCI Bus setting where each expansion slot is provided an extra PCI Bus number. By default, the system ROM will pad one PCI bus per bridge to not affect current bus numbering schemes.">Enabled</Section> <Section name="Power-on_Logo" helptext="Allows disabling of HP logo at system boot.">Disabled</Section> <Section name="Hide_Option_ROM_Messages" helptext="Allows disabling of Hide Option ROM Messages feature.">Enabled</Section> <Section name="Redundant_Power_Supply_Mode" helptext="Allows configuringhow the system will handle redundant power supply configs. Balanced mode shares the power delivery equally between installed power supplies.">Balanced_Mode</Section> <Section name="Dynamic_Power_Savings_Mode_Response" helptext="Allows thesystem ROM to control processor performance and power state depending on the processor workload.">Fast</Section># hp-conrep -l -f /tmp/rcu.xmlconrep 4.1.2.0 - HP Scripting Toolkit Configuration Replication ProgramCopyright (c) 2007-2014 Hewlett-Packard Development Company, L.P.

System Type: ProLiant BL460c Gen9 ROM Date : 12/24/2014 ROM Family : I36 Processor Manufacturuer : Intel(R) Corporation

XML System Configuration: /opt/hp/hp-scripting-tools/etc/conrep.xml

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 29 of 33

Page 30: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Hardware Configuration: /tmp/rcu.xml Global Restriction: [3.40 ] OK

Platform check: : [ProLiant DL120 G7 ] no match : [ProLiant ML110 G7 ] no match : [ProLiant DL3 ] no match : [ProLiant ML3 ] no match : [ProLiant DL5 ] no match : [ProLiant ML5 ] no match : [ProLiant DL7 ] no match : [ProLiant DL9 ] no match : [ProLiant BL ] match : [ProLiant XW ] no match : [ProLiant WS ] no match : [ProLiant SE ] no match : [ProLiant SL4 ] no match : [ProLiant SL3 ] no match : [ProLiant SL2 ] no match : [ProLiant DL160 Gen8 ] no match : [ProLiant SL160 Gen8 ] no match : [ProLiant SL140 ] no match : [ProLiant WS460c Gen8 WS Blade] no match : [ProLiant MicroServer Gen8] no match : [StoreEasy ] no match : [ProLiant ML10 ] no match : [Gen9 ] match : [ProLiant XL ] no match

Loading configuration data from /tmp/rcu.xml

Conrep Return Code: 0

# hp-reboot -hInvalid command line parameter: -h

reboot 1.9-0 - SmartStart Scripting Toolkit Reboot UtilityCopyright 2004-2012 Hewlett-Packard Development Company, L.P.

Usage reboot [ a: | c: | cd | pxe | rbsu ] [-cold] [-?]

a: Performs a one-time boot to a:c: Performs a one-time boot to c:cd Performs a one-time boot to cdpxe Performs a one-time boot to pxe nicrbsu Performs a one-time boot to ROM Based Setup Utility-cold Performs a cold boot# hp-reboot -cold rbsu

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 30 of 33

Page 31: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

If your modifications made the system configuration too messy, you can return to goodknown default values by using the hp-rbsureset command

There is much more to discover around HP ProLiant under Linux (, …) but I leave that for anupdate of this document.

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 31 of 33

Page 32: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

This additional info is not yet organized correctly wrt to the rest of the Lab. (iLO4 only)

# yum install hp-ams

Loaded plugins: product-id, security, subscription-manager

Updating certificate-based repositories.

Unable to read consumer identity

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package hp-ams.x86_64 0:1.4.1-1089.1.rhel6 will be installed

--> Finished Dependency Resolution

[...]

Please read the Licence Agreement for this software at

/opt/hp/hp-ams/hp-ams.license

By not removing this package, you are accepting the terms

of the "HP Proliant Essentials Software End User License Agreement".

Installed products updated.

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 32 of 33

Page 33: Lab Document on HP ProLiant value add tools on Linux

HP

HP Servers and HP Solution Innovation Center

HP TechTour 2015

Cleanup the environment

# yum remove hpsmh hpdiags hpssa hp-smh-templates net-snmp-utils hp-snmp-agents hp-health hpssacli hponcfg hp-ams lsof net-snmp-libs net-snmp-agent-libs

© Bruno Cornec, Hewlett-Packard Company, 2015, under CC-by-SA 4.0 Page 33 of 33