HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Lab – HPE ProLiant Tools Lab Contents This lab purpose is to install and use various HPE ProLiant tools to configure servers and set them up. Lab Writer and Trainer Bruno.Cornec@hpe.com Table of content Objectives........................................................................................................................................................................................................................ 2 Reference documents...............................................................................................................................................................................................3 Environment setup.................................................................................................................................................................................................... 4 SDR access enablement..................................................................................................................................................................................4 Managing HPE ProLiant servers with the MCP.........................................................................................................................................5 Command line management.........................................................................................................................................................................5 SNMP management.........................................................................................................................................................................................14 Web based management..............................................................................................................................................................................16 Using HPE SUM (Smart Update Manager).........................................................................................................................................19 Using the HPE RESTful API........................................................................................................................................................................20 Usig RPM based Firmware updates.......................................................................................................................................................26 Using IPMI.............................................................................................................................................................................................................28 Additional management tools...................................................................................................................................................................28 © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 1 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 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 CMP and SPP, delivered on the HPE SDR and use some of the tools to manage the hardware configuration of their ProLiant server. Expected duration : 100 minutes © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 2 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Reference documents When dealing with the installation and configuration of HPE ProLiant servers, the first approach is to look at some reference documents: The main Documentation for the SDR at http://downloads.linux.hpe.com/SDR/. The presentation around HP ProLiant value add tools contains some command line examples. A copy 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://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=254896&docId=emr_nac00719376&docLocale=en_US • 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: https://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=5177957&docId=emr_nac03108867&docLocale=en_US • Linux Best Management Practices: HP ProLiant Gen8 Servers and Red Hat Enterprise Linux: http://h50146.www5.hp.com/products/software/oe/linux/mainstream/support/whitepaper/pdfs/c03231805. pdf • HP Scripting Toolkit Linux Edition User Guide: http://h10032.www1.hp.com/ctg/Manual/c04409570.pdf • Configuring Arrays on HP Smart Array Controllers Reference Guide: http://h10032.www1.hp.com/ctg/Manual/c00729544 • HP iLO 4 Scripting and Command Line Guide: http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=c03334058 • HP RESTful API: http://www.hp.com/go/restfulapi http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=c04423965 • HP Firmware as RPM: http://downloads.linux.hpe.com/SDR/project/fwpp/fwpp-faq.pdf © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 3 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 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.hpe.com/SDR/ This Lab is performed on a Red Hat Enterprise Linux 6.4 distribution. As most of the content is also available from the repository for other Linux distributions, you can run it as well (with due adaptations !) on all the enabled distributions such as CentOS, OEL, Ubuntu or supported like SuSE Linux Enterprise Server. You may want to use the add_repo.sh script provided there in order to setup your installation. For that, download the file under your home directory. You'll also need for RHEL additional packages not necessarily installed on the base distribution, but which are brought by yum, providing you have a link to a Satellite server or a yum repository with appropriate content. This lab doesn't give all the commands necessary, as some aspects must be discovered by the Lab attendees and this will help them learn more by finding themselves the solutions to the small issues they may find. Could be lack of packages, Linux rights aspects, ... Bug reports on this material welcomed ;-) Enjoy ! # cd /root # yum install -y wget # wget http://downloads.linux.hpe.com/SDR/add_repo.sh Resolving downloads.linux.hp.com... 15.201.202.86 Connecting to downloads.linux.hp.com|15.201.202.86|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 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 spp note : 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.1 as of 2016-02-04 # ./add_repo.sh hpsum # not for RHEL 7.1 as of 2016-02-04 © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 4 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 If you have issues running the add_repo script, consider rights of the script and required dependency (lsb package typically). If the previous command doesn't output something, launch it first without the | grep part. And if stk or hpsum repo do not work, then add them manually: # cat >> /etc/yum.repos.d/HP-spp.repo << EOF [HP-stk] name=HP Software Delivery Repository for stk baseurl=http://downloads.linux.hpe.com/SDR/repo/stk/RedHatEnterpriseServer /7.0/$basearch/current enabled=1 gpgcheck=0 [HP-hpsum] name=HP Software Delivery Repository for hpsum baseurl=http://downloads.linux.hpe.com/SDR/repo/hpsum/RedHatEnterpriseServ er/7.0/$basearch/current enabled=1 gpgcheck=0 EOF Then use yum to update the indexes with the new repositories. Check what has been created under the /etc/yum.repos.d directory. Verify that everything is behaving as expected (hint: yum search hp | grep -E '^hp'). From now on, the Lab is “à la carte” ;-) Which means you can take one of the following part at will and try to do it Note that depending on the RHEL version or the tools versions, the traces you can get may differ in details such as version umber e.g. Managing HPE ProLiant servers with the MCP Command line management Estimated time: 50 minutes We will first discover what command lines utilities are available to manage HPE ProLiant servers under Linux. These are gathered in a few packages: # yum install hp-health hpssacli hponcfg Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Install Process Package hponcfg-4.1.0-0.noarch already installed and latest version Resolving 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 © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 5 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 ========================================================================== 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 M Installed size: 20 M Is this ok [y/N]: y Downloading Packages: (1/2): hp-health-9.40-1602.44.rhel6.x86_64.rpm | 565 kB 00:02 (2/2): hpssacli-1.60-17.0.x86_64.rpm | 6.5 MB 00:02 -------------------------------------------------------------------------Total 1.5 MB/s | 7.0 MB 00:04 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running 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/2 Please read the Licence Agreement for this software at /opt/hp/hp-health/hp-health.license By not removing this package, you are accepting the terms of 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 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 6 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 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 0001 LOG: Maintenance note: IML cleared through hpasmcli 0001 Repaired 00:00 00/00/0000 15:01 07/01/2011 0001 LOG: System Power Supply: General Failure (Power Supply 1) 0002 Caution 14:39 07/01/2011 14:39 07/01/2011 0001 This command is similar to hpasmcli -s "show iml" | head. # hplog -a STATUS Current 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 set option to modify values # hpuid OFF # hpuid # hpuid ON # hpuid -s -e -s -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 -H 03 00: Harddrive first, normal boot process # hpbootcfg -C 02 00: CD ROM first, normal boot process # hpbootcfg -P © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 7 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 40 00: Normal Device first, one time boot to PXE # hpbootcfg -D 00 00: Normal Device first, normal boot process # man hpbootcfg You may want to verify the new configuration by rebooting the server. Another command will be detailed later on to modify fully the boot order from the SmartStart Scripting Toolkit. # hpasmcli -s "show asr" ASR timeout is 10 minutes. ASR is currently enabled. # hpasmcli -s "disable asr" 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 hponcfg utiliy. # hponcfg -g HP Lights-Out Online Configuration utility Version 4.4.0 Date 06/13/2014 (c) Hewlett-Packard Company, 2014 Firmware Revision = 2.03 Device type = iLO 4 Driver name = hpilo Host Information: Server Name: host is unnamed Server Number: # hponcfg -a -w /tmp/ilo.xml HP Lights-Out Online Configuration utility Version 4.4.0 Date 06/13/2014 (c) Hewlett-Packard Company, 2014 Firmware Revision = 2.03 Device type = iLO 4 Driver name = hpilo Management 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"/> [...] © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 8 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 <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.xml HP Lights-Out Online Configuration utility Version 4.4.0 Date 06/13/2014 (c) Hewlett-Packard Company, 2014 Firmware 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 minute Script 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 the page http://h20564.www2.hpe.com/hpsc/swd/public/detail? swItemId=MTX_3b1bbec7612f48408922ca1ecd and which allow remote modification of the iLO configuration, providing you have the appropriate credential, which the hponcfg command doesn'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 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 9 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 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 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 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 10 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 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) 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 © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 11 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 physicaldrive 1I:1:2 [...] # hpssacli ctrl slot=0 ld all show detail Smart Array P244br in Slot 0 (Embedded) array A 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=10000 10000+0 records in 10000+0 records out 10485760000 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=512 512+0 records in 512+0 records out 536870912 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=512 512+0 records in 512+0 records out 536870912 bytes (537 MB) copied, 0.730994 s, 734 MB/s # hpssacli ctrl slot=0 modify cacheratio=25/75 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 12 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 # rm -f /tmp/10000MB ; dd if=/tmp/10000MB of=/tmp/dest bs=1M count=512 512+0 records in 512+0 records out 536870912 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 the size to see cache impact. # hpssacli ctrl slot=0 modify rebuildpriority=high # hpssacli ctrl slot=0 ld all show detail | grep -i strip 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=512 512+0 records in 512+0 records out 536870912 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 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 13 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 84: 0 IR-PCI-MSI-edge 0 0 0 0 0 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 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=512 512+0 records in 512+0 records out 536870912 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 about the impact of stripe size on processing interrupts on your system. Change the parameters to 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 snmpd server. © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 14 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 # 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 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): private Re-enter the same input to confirm: private ACCEPTED: inputs match! Enter localhost SNMP Read Only community string (one word, Blank to skip): public Re-enter the same input to confirm: public ACCEPTED: 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 to syscontact 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 to syslocation Unknown (edit /etc/snmp/snmpd.conf) Do you wish to change it (y/n) (Blank is n): # systemctl restart hp-snmp-agents # systemctl restart snmpd # yum install net-snmp-utils Setting up Install Process Resolving 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 ========================================================================== Installing: net-snmp-utils x86_64 1:5.5-44.el6 rhel 171 k Transaction Summary ========================================================================== Install 1 Package(s) © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 15 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Total download size: 171 k Installed size: 362 k Is this ok [y/N]: y Downloading Packages: net-snmp-utils-5.5-44.el6.x86_64.rpm Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : 1:net-snmp-utils-5.5-44.el6.x86_64 Verifying : 1:net-snmp-utils-5.5-44.el6.x86_64 | 171 kB 00:00 1/1 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 HPE ProLiant servers. # snmpget -v 2c -c public localhost SNMPv2SMI::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 at http://www.oidview.com/mibs/232/md-232-1.html in order to have a better idea of the value 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-templates 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 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 © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 16 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 --> Processing Dependency: hp-snmp-agents for package: hp-smh-templates9.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 M Installing for dependencies: hp-snmp-agents x86_64 9.40-2506.37.rhel6 HP-spp 963 k Transaction Summary ========================================================================== Install 5 Package(s) Total download size: 38 M Installed size: 156 M Is this ok [y/N]: y Downloading 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:37 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : hpsmh-7.2.2-8.x86_64 1/5 Detected Red Hat Enterprise Linux AS/ES/WS/SERVER 6 Created hpsmh user and group... ********************************************************** * System Management Homepage installed successfully with * * default configuration values. To change the default * * configuration values, type the following command at * * the root prompt: * * * * /opt/hp/hpsmh/sbin/smhconfig * * * ********************************************************** © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 17 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 [...] Complete! # hpssa -start HP Smart Storage Administrator 1.60.17.0 The HP Smart Storage Administrator daemon has started. If the smh daemon has been launched during the install process, then you need to restart it 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 the interface to explore what it provides in term of information. If you have issues connecting to the web interface, check your firewall setup and desactivate it (with systemctl stop firewalld) © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 18 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Using HPE 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 Process Resolving Dependencies Skipping 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 ========================================================================= © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 19 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Installing: hpsum x86_64 6.3.1­2.rhel6 HP­hpsum 108 M Transaction Summary ========================================================================= Install 1 Package(s) Total download size: 108 M Installed size: 708 M Is this ok [y/N]: y Downloading Packages: hpsum­6.3.1­2.rhel6.x86_64.rpm | 108 MB 00:32 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : hpsum­6.3.1­2.rhel6.x86_64 1/1 Please read the Licence Agreement for this software at /opt/hp/hpsum/hpsum.license By not removing this package, you are accepting the terms of 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 at the man page of this command which will give you an idea of what can be automated with it. Using the HPE 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 hprest Loading 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 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 20 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 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): 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] If the package is not available through the repository, download it from that page: http://h20565.www2.hpe.com/hpsc/swd/public/detail? sp4ts.oid=7630409&swItemId=MTX_ff701f8100b74f3f86f6d8bdf9&swEnvOid=4176 and install it or more directly using: # rpm -Uvh http://ftp.hp.com/pub/softlib2/software1/pubswlinux/p1545251609/v108401/RPMS/x86_64/hprest-1.3-55.x86_64.rpm Then start using it: # hprest login https://ilolabX.labossi.hpintelco.org –-user=demopaq --password=password hprest : HP RESTful Interface Tool version 1.0.0 Copyright (c) 2014 Hewlett Packard Development Company L.P. -------------------------------------------------------------------------Discovering................................Done WARNING: Cache is activated session keys are stored in plaintext # hprest types hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. -------------------------------------------------------------------------Type options: ServiceRoot.1.0.0 # hprest select ServiceRoot.1.0.0 hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. -----------------------------------------------------------# hprest list hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. -------------------------------------------------------------------------@odata.context=/redfish/v1/$metadata#ServiceRoot @odata.id=/redfish/v1/ @odata.type=#ServiceRoot.1.0.0.ServiceRoot AccountService @odata.id=/rest/v1/AccountService Chassis @odata.id=/rest/v1/Chassis EventService @odata.id=/rest/v1/EventService © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 21 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Id=v1 JsonSchemas @odata.id=/rest/v1/Schemas Managers @odata.id=/rest/v1/Managers Name=HP RESTful Root Service Oem Hp @odata.type=#HpiLOServiceExt.1.0.0.HpiLOServiceExt Manager ManagerFirmwareVersion=2.40 HostName=ilo-lab8 ManagerType=iLO 4 Blade EnclosureName=LabOSSI RackName=Z8R1U25 BayNumber=Bay 8 FQDN=ilo-lab8.labossi.hpintelco.org DefaultLanguage=en Languages Version=2.40 Language=en TranslationName=English Type=HpiLOServiceExt.1.0.0 links ResourceDirectory href=/rest/v1/ResourceDirectory Sessions LocalLoginEnabled=True LoginFailureDelay=0 LDAPAuthLicenced=True KerberosEnabled=False ServerName=lab8-2.labossi.hpintelco.org SecurityOverride=False CertCommonName=ilo-lab8.labossi.hpintelco.org LoginHint HintPOSTData UserName=username Password=password Hint=POST to /Sessions to login using the following JSON object: LDAPEnabled=False RedfishVersion=1.0.0 Registries @odata.id=/rest/v1/Registries ServiceVersion=1.0.0 SessionService @odata.id=/rest/v1/SessionService Systems @odata.id=/rest/v1/Systems © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 22 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Time=2016-02-04T00:48:58Z Type=ServiceRoot.1.0.0 UUID=6385e60e-29ee-5ba6-991d-ec2ddd308cfd links Managers href=/rest/v1/Managers Sessions href=/rest/v1/SessionService/Sessions AccountService href=/rest/v1/AccountService self href=/rest/v1 Schemas href=/rest/v1/Schemas Chassis href=/rest/v1/Chassis EventService href=/rest/v1/EventService SessionService href=/rest/v1/SessionService Systems href=/rest/v1/Systems Registries href=/rest/v1/Registries You can continue with this: # hprest help # hprest login https://ilolabX.labossi.hpintelco.org --user=demopaq --password=password --selector HpBios. # hprest types hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. -------------------------------------------------------------------------Type options: AccountService.1.0.0 BaseNetworkAdapter.1.1.0 Chassis.1.0.0 Collection.1.0.0 ComputerSystem.1.0.0 EthernetNetworkInterface.0.92.0 EventService.1.0.0 FwSwVersionInventory.1.0.0 HPPowerMeter.1.0.0 HpBaseConfigs.0.10.0 HpBios.1.2.0 HpBiosMapping.1.2.0 HpESKM.1.0.0 HpHttpsCert.1.0.0 HpSecureBoot.1.0.0 HpSecurityService.1.0.0 HpServerBootSettings.1.3.1 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 23 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 HpServerPCISlot.1.0.0 HpServerPciDevice.1.0.0 HpSmartStorage.1.0.0 HpSmartStorageArrayController.1.1.0 HpSmartStorageDiskDrive.1.1.0 HpSmartStorageLogicalDrive.1.1.0 HpSmartStorageStorageEnclosure.1.1.0 HpiLOActiveHealthSystem.1.0.0 HpiLODateTime.1.0.0 HpiLOEmbeddedMedia.1.0.0 HpiLOFederatedGroupCapping.1.0.0 HpiLOFederationGroup.1.0.0 HpiLOFederationPeers.1.0.0 HpiLOFirmwareUpdate.1.0.0 HpiLOLicense.1.0.0 HpiLOSSO.1.0.0 HpiSCSISoftwareInitiator.1.1.0 LogService.1.0.0 Manager.1.0.0 ManagerAccount.1.0.0 ManagerNetworkService.0.11.1 PowerMetrics.0.11.0 ServiceRoot.1.0.0 SessionService.1.0.0 SnmpService.1.0.0 ThermalMetrics.0.10.0 VirtualMedia.1.0.0 # hprest list --selector BaseNetworkAdapter.1.1.0 hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. ---------------------------------------------------------------------------------------------------------------------------------------------------------------@odata.context=/redfish/v1/$metadata#Systems/Members/1/NetworkAdapters/Mem bers/$entity @odata.id=/redfish/v1/Systems/1/NetworkAdapters/1/ @odata.type=#BaseNetworkAdapter.1.1.0.BaseNetworkAdapter Firmware Current VersionString=None Id=1 Name=HP FlexFabric 10Gb 2-port 536FLB Adapter - NIC PartNumber=None PhysicalPorts Status State=Disabled Health=Warning MacAddress=6C:C2:17:3A:A8:70 FullDuplex=False Name=None IPv4Addresses © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 24 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Address=None Oem Hp @odata.type=#HpBaseNetworkAdapterExt.1.0.0.HpBaseNetworkAdapterExt Team=None GoodReceives=None BadTransmits=None StructuredName=NIC.FlexLOM.1.1 GoodTransmits=None BadReceives=None Type=HpBaseNetworkAdapterExt.1.0.0 UEFIDevicePath=PciRoot(0x0)/Pci(0x2,0x0)/Pci(0x0,0x0) SpeedMbps=0 Status State=Disabled Health=Warning MacAddress=6C:C2:17:3A:A8:78 FullDuplex=False Name=None IPv4Addresses Address=None Oem Hp @odata.type=#HpBaseNetworkAdapterExt.1.0.0.HpBaseNetworkAdapterExt Team=None GoodReceives=None BadTransmits=None StructuredName=NIC.FlexLOM.1.2 GoodTransmits=None BadReceives=None Type=HpBaseNetworkAdapterExt.1.0.0 UEFIDevicePath=PciRoot(0x0)/Pci(0x2,0x0)/Pci(0x0,0x1) SpeedMbps=0 SerialNumber=7C4437032V Status State=Disabled Health=Warning StructuredName=NIC.FlexLOM.1.1 Type=BaseNetworkAdapter.1.1.0 UEFIDevicePath=PciRoot(0x0)/Pci(0x2,0x0)/Pci(0x0,0x0) links self href=/rest/v1/Systems/1/NetworkAdapters/1 # hprest list --selector HpBios.1.2.0 hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 25 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 ---------------------------------------------------------------------------------------------------------------------------------------------------------------AcpiRootBridgePxm=Enabled AcpiSlit=Enabled AdjSecPrefetch=Enabled AdminEmail="" AdminName="" [...] # hprest set AdminName="Pinguin" --selector HpBios.1.2.0 hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. ---------------------------------------------------------------------------------------------------------------------------------------------------------------# hprest list --selector HpBios.1.2.0| grep AdminName AdminName=Pinguin # hprest status hprest : HP RESTful Interface Tool version 1.3.0 Copyright (c) 2015 Hewlett Packard Development Company L.P. -------------------------------------------------------------------------Current changes found: HpBios.1.2.0 (Currently selected) AdminName=Pinguin # hprest commit # hprest exit You may also want to see how this looks like from your browser. For that point it to the URL: https://10.3.222.10X/redfish/v1 From there you can also navigate through the various types. You may want to use an http requester tool to have an easier interaction. 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. You can use the latest hpsum (starting with 7.2.0) to deploy them as the simplest way. # hpsum info hpsum : HP Smart Update Manager Version 6.5.0 Copyright (c) 2013­2014 Hewlett Packard Development Company L.P. Model: ProLiant BL460c Gen9, ROM: I36, ROM Version: 12/24/2014 ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ Searching for firmware ERROR : No firmware found Did you install software using using yum/zypper/apt # yum list hp­firmware'*' Loaded plugins: product­id, subscription­manager © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 26 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 This system is not registered to Red Hat Subscription Management. You can use subscription­manager to register. Available Packages hp­firmware­43d7eff89e.i386 15.10.07.00­2 HP­spp hp­firmware­52de99d707.i386 HPD8­1.1 HP­spp hp­firmware­72e5d6942f.i386 HPG4­1.1 HP­spp hp­firmware­a8d1969535.x86_64 HPD6­1.1 HP­spp hp­firmware­b923956874.i386 HPG5­1.1 HP­spp hp­firmware­cna­emulex.x86_64 2015.06.01­1.1 HP­spp hp­firmware­e4f5b5c9a7.i386 HPG5­1.1 HP­spp hp­firmware­ef3ea1e703.x86_64 HPG1­1.1 HP­spp hp­firmware­ef3ea1e703.i386 HPG1­3 HP­spp hp­firmware­fc­brocade.x86_64 2015.02.01­1.1 HP­spp hp­firmware­fc­emulex.x86_64 2015.06.01­1.1 HP­spp hp­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­spp hp­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­system­i36 hp­firmware­ilo4 # hpsum list hpsum : HP Smart Update Manager Version 6.5.0 Copyright (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 | ierd1 | system­i36 | 1.40_05­06­2015| 2015.12.15 | system | ieRU1 | ilo4 | 2.30 | 2.40 | ilo4 | # hpsum query hpsum : HP Smart Update Manager Version 6.5.0 Copyright (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 © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 27 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 [...] %{RELEASEDATE_YEAR} 2015 %{REVISION} # hpsum upgrade Using IPMI Estimated time: 5 minutes We will first install the additional components needed for this part: # yum install ipmitool [...] Setting up Install Process Resolving Dependencies Skipping 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 error Set in Progress : Set Complete Auth Type Support : Auth Type Enable : Callback : : User : : Operator : : Admin : : OEM : IP Address Source : DHCP Address IP Address : 10.3.222.104 Subnet Mask : 255.255.255.0 MAC Address : fc:15:b4:8e:c6:54 SNMP Community String : BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled Default Gateway IP : 10.3.222.1 802.1q VLAN ID : Disabled 802.1q VLAN Priority : 0 Cipher Suite Priv Max : Not Available Additional management tools Estimated time: 20 minutes We will first install the additional components needed for this part: © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 28 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 # yum install hp-scripting-tools 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-scripting-tools.i386 0:9.30-13.rhel6 will be installed --> Processing Dependency: libsysfs.so.2 for package: hp-scripting-tools9.30-13.rhel6.i386 --> Running transaction check ---> Package libsysfs.i686 0:2.1.0-6.1.el6 will be installed --> Finished Dependency Resolution 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 k Installed size: 1.6 M Is this ok [y/N]: y Downloading 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 terms of 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 on the 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> © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 29 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 <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 DOMAIN 0 # hp-statemgr -W DOMAIN 2 2 # hp-statemgr -R DOMAIN 2 # hp-setbootorder Current Boot Order: hd pxe cdrom(none) usb(none) floppy(none) # hp-setbootorder pxe hd Current Boot Order: hd pxe cdrom(none) usb(none) floppy(none) Requested Order: pxe hd Written 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 pxe Current Boot Order: pxe hd cdrom(none) usb(none) floppy(none) Requested Order: hd pxe Written Order: hd pxe cdrom(none) usb(none) floppy(none) # hp-conrep -s -f /tmp/rcu.xml conrep 4.1.2.0 - HP Scripting Toolkit Configuration Replication Program Copyright (c) 2007-2014 Hewlett-Packard Development Company, L.P. System Type: ROM Date : ROM Family : Processor Manufacturuer : ProLiant BL460c Gen9 12/24/2014 I36 Intel(R) Corporation XML System Configuration: /opt/hp/hp-scripting-tools/etc/conrep.xml Hardware Configuration: /tmp/rcu.xml Global Restriction: [3.40 ] OK Platform check: : : : : : : : : : : [ProLiant [ProLiant [ProLiant [ProLiant [ProLiant [ProLiant [ProLiant [ProLiant [ProLiant [ProLiant DL120 G7 ML110 G7 DL3 ML3 DL5 ML5 DL7 DL9 BL XW ] ] ] ] ] ] ] ] ] ] no match no match no match no match no match no match no match no match match no match © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 30 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 : : : : : : : : : : : : : : [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 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 configuring how 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 the system 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 configuring how the system will handle redundant power supply configs. Balanced mode shares the power delivery equally between installed power supplies.">Balanced_Mode</Section> © Bruno Cornec, Hewlett Packard Enterprise, 2016, under CC-by-SA 4.0 Page 31 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 <Section name="Dynamic_Power_Savings_Mode_Response" helptext="Allows the system ROM to control processor performance and power state depending on the processor workload.">Fast</Section> # hp-conrep -l -f /tmp/rcu.xml conrep 4.1.2.0 - HP Scripting Toolkit Configuration Replication Program Copyright (c) 2007-2014 Hewlett-Packard Development Company, L.P. System Type: ROM Date : ROM Family : Processor Manufacturuer : ProLiant BL460c Gen9 12/24/2014 I36 Intel(R) Corporation XML System Configuration: /opt/hp/hp-scripting-tools/etc/conrep.xml 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 -h Invalid command line parameter: -h reboot 1.9-0 - SmartStart Scripting Toolkit Reboot Utility © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 32 of 35 HPE HPE Servers and HPE Solution Innovation Center HPE TSS 2016 Copyright 2004-2012 Hewlett-Packard Development Company, L.P. Usage reboot [ a: | c: | cd | pxe | rbsu ] [-cold] [-?] a: Performs a one-time boot c: Performs a one-time boot cd Performs a one-time boot pxe Performs a one-time boot rbsu Performs a one-time boot -cold Performs a cold boot # hp-reboot -cold rbsu to to to to to a: c: cd pxe nic ROM Based Setup Utility If your modifications made the system configuration too messy, you can return to good known default values by using the hp-rbsureset command There is much more to discover around HP ProLiant under Linux (, …) but I leave that for an update of this document. © Bruno Cornec, Hewlett Packard Enterprise, 2016 , under CC-by-SA 4.0 Page 33 of 35