• Support
  • Articles
  • Resources
  • Products

Backup & restore BIOS setup on HP G7 material using ILO&RBSU

Moderator: boris

2 postsPage 1 of 1

hwarin
Newbie

Posts:
2
Joined: Sat Oct 13, 2012 4:34 pm
by hwarin » Sat Oct 13, 2012 4:57 pm
Hi,

I just wanted to share with interested peoples my last script - Please update me if you're using it, find it usefull, make some improvements, and/or have interesting comments ..

First : the "read me" part
==================

First comment : Apologies for my poor English ...
Second comment : I have found nowhere on the web any similar tool and explainations one the subject are very limited - TeraTerm seems to be the only Windows utility able to smartly script something with SSH. Please be free to experiment, use, and improve it; I would be very happy to know that sharing it whould have helped someone over the planet, so, please, let me know when you'll use it and the details of your usage.

Purpose of this script : Take an "out of band" full backup from a HP blade's BIOS configuration in order to deploy (replicate) this setup on many other similar blades. This script can be used on a blade having an OS already installed or on a brand new hardware.

Limitations :
- Currently, this have been only tested on BL460c G7 blades. This should work directly on any G7 HP hardwares embeding ILO3 device (BLxxxG7). It should be "quite easily" adaptable to any other ILO2 or ILO4 (G8 ? Never played yet with it) similar kind of material ...
- Entering to RBSU means that the blade will have to reboot ....

Motivations to have written this script :
- Many similar "non standard" configurations to be setup in a very limited delay.
- Avoid manual actions in order to avoid waste of time & always possible and uncontrolable mistakes when "manual" operates.
- Keep track of all action dones
- CONREP for WinPE 3.0 (from last HP's SSTK) is not 100% working (until now, I had not been unable to backup the full BIOS setup, including the disable on internal RAID board, using this tool; as much as enable/disable PXE) - Only a very partial subset of whole configurable items appears to be backupable/restorable with CONREP.
- My unability to use unix/linux as I have found that C-Kermit (university of Columbia) had published a quite similar tool that I can't manage !
- Usual non awareness of BIOS configuration details ... take default values as default ... even in big compagnies !
- Usual "I'm the customer, I can request anything"'s ITIL nonsense (whatever the workload behind).

Prerequisites :
- Target ILO must have minimal @IP setup to be normaly reachable from network
- Have an administrator account on target ILO
- TeraTerm correctly setup on the deployment server

Other things to view to complete the subject :
- HP's bladeblaster tools/scripts - With this scripts, it can help on blades mass deployment projects
- Setup ILO firmware
- Setup ILO configuration
- Boot once a blade on a poerticular CD (MemTest, WinPE, etc)
- What's next ?
Naturly, a "deploy many" script .....

Improvements to be done :
- In "load" mode, setup current's time/date to BIOS
- Have a look at blade's power status at starting of te script - currently, the blade must be powered on - an improvement would be to handle a powered off blade (powering it on at the start, then off at the end)
- Have a better control on answers from ILO (result OK/failed of each command). Currently, control can only be done by analysing resulting LOG file, so, no direct retry is possible yet.

Now, usage :

1) SAVE mode --> Take a copy of actual's BIOS configuration

C:\Documents and Settings\hwarin>"C:\Program Files\teraterm\ttpmacro.exe" /i /v "c:\Program Files\teraterm\BladeBlaster_V1.ttl" SAVE 10.10.10.10 bladeblaster bladeblasterpassword

Where :
- 10.10.10.10 is the @IP of your ILO to backup
- BladeBlaster is your administrator's user name of your ILO to backup
- BladeBlasterPassword is the user name's password of the user's ILO to backup

You will have :
- Target blade rebooted !
- A file containing the complete detailed log of actions done
C:\Documents and Settings\hwarin\Local Settings\Application Data\TTLEdit\Temp_TTL\console_<@IP>_<userName>_<Date>-<Time>.log
- A file containing backuped data
C:\Documents and Settings\hwarin\Local Settings\Application Data\TTLEdit\Temp_TTL\CONFIG_READ_FROM_BIOS_<@IP>_<userName>_<Date>-<Time>.log
==> Resulting file contains :
# SHOW PCI DEVICE ENABLE/DISABLE
# set pci device enable/disable <Device#> <State (0=Disable/1=Enable)>
# SHOW NIC PERSONALITY OPTIONS
# set nic personality options <Device#> <Protocol (1=iSCSI/2=FCoE)>
rbsu> SHOW DATE
10/12/12
rbsu> SHOW TIME
14:52
rbsu> SHOW SN
S/N: CZJ225xxxx
rbsu> SHOW PCI DEVICE ENABLE/DISABLE
1| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Enabled
2| PCI Embedded HP Smart Array P410i Controller Enabled
rbsu> SHOW NIC PERSONALITY OPTIONS
1| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 3 iSCSI
2| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 4 iSCSI
rbsu> SHOW CONFIG SCRIPT
SET CONFIG Advanced Memory Protection Advanced ECC Support
SET CONFIG Embedded Serial Port Disabled
.
.
.
.
SET BOOT 02 15333C10 00 02 00 03
SET BOOT 03 45323C10 00 0C 00 00

==> You'll have to slightly change this file before deploying it to any target blade :
- Any # will be treated as a comment in "load" mode (remaining characters of the line including # will be discarded)
- Lines with RBSU>, DATE, TIME, and S/N have to be commented or discarded (they're only here for tracking)
- About "PCI devices" & "NIC personality" : Help yourself with the commented reminder and replace accordingly RBSU's output. IE - Replace rbsu> SHOW PCI DEVICE ENABLE/DISABLE
1| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Enabled
2| PCI Embedded HP Smart Array P410i Controller Enabled
rbsu> SHOW NIC PERSONALITY OPTIONS
1| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 3 iSCSI
2| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 4 iSCSI
... by
set pci device enable/disable 1 1
set pci device enable/disable 2 0
set nic personality options 1 1
set nic personality options 2 1


2) LOAD mode --> Deploy a previously backed up BIOS configuration to a target blade

C:\Documents and Settings\hwarin>"C:\Program Files\teraterm\ttpmacro.exe" /i /v "c:\Program Files\teraterm\BladeBlaster_V1.ttl" C:\_BIOSCONF_\CONFIG_G7_ESX.txt 10.10.10.10 bladeblaster bladeblasterpassword

Where :
- C:\_BIOSCONF_\CONFIG_G7_ESX.txt is the complete file name of configuration to be deployed, aranged as described on "SAVE" section
- 10.10.10.10 is the @IP of your ILO to backup
- BladeBlaster is your administrator's user name of your ILO to backup
- BladeBlasterPassword is the user name's password of the user's ILO to backup

You will have :
- Targe blade rebooted !
- A file containing the complete detailed log of actions done
C:\Documents and Settings\hwarin\Local Settings\Application Data\TTLEdit\Temp_TTL\console_<@IP>_<userName>_<Date>-<Time>.log
- A file containing deployed data
C:\Documents and Settings\hwarin\Local Settings\Application Data\TTLEdit\Temp_TTL\WRITTEN_TO_BIOS_<@IP>_<userName>_<Date>-<Time>.log
==> Resulting file contains :
rbsu> SET PCI DEVICE ENABLE/DISABLE 2 0
1| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Enabled
2| PCI Embedded HP Smart Array P410i Controller Disabled
rbsu> SET NIC PERSONALITY OPTIONS 1 2
1| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 3 FCoE
2| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 4 FCoE
rbsu> SET NIC PERSONALITY OPTIONS 2 2
1| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 3 FCoE
2| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 4 FCoE
rbsu> SET CONFIG ADVANCED MEMORY PROTECTION ADVANCED ECC SUPPORT
Advanced Memory Protection
1|Advanced ECC Support <=
2|Online Spare with Advanced ECC Support
3|Mirrored Memory with Advanced ECC Support
4|Lockstep Mode with Advanced ECC Support
rbsu> SET CONFIG EMBEDDED SERIAL PORT COM 2; IRQ3; IO: 2F8H-2FFH
Embedded Serial Port
1|COM 1; IRQ4; IO: 3F8h-3FFh
.
.
.
.
5| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 1
6| PCI Embedded HP NC553i 10Gb 2-port FlexFabric Adapter Port 2
rbsu> SET BOOT 01 45323C10 00 0C 00 00
rbsu> SET BOOT 02 15333C10 00 02 00 02
==> In a mass deployment scheme, you'll have to compare (FC) whole resulting files to track for any issue ... (any different file !)




Second :the "script" part
=================


hwarin
Newbie

Posts:
2
Joined: Sat Oct 13, 2012 4:34 pm
by hwarin » Thu Oct 18, 2012 10:57 pm
Hi,

In addition to my previous script, here is a quick & dirty derivative allowing to deploy/create a generic administrator account on any blade's ILO inserted into a c7000 enclosure, provided that you have the correct credentials on the hosting OnboardAdmin.

I have not provided a "SSH connect" part, you have to manually connect to your target (then confirm that you've got the good one), start this macro, and press once [enter] into the terminal window, let it make the job and review LOG file once completed, as usual. [Note : admin & password is hard coded ...]

I also have to add that I've finally been able to make work correctly SSSTK from WinPE to perform similar tasks as previous script - Main differences between 2 methods are
+ TeraTerm : Log files
+ TeraTerm : Quick, no boot time on a WinPe ISO, no ISO to maintain
+ TeraTerm : Could be run from a "DoMany" script such as this one
- TeraTerm : Is not recognised yet as a professionnal solution, only a hack that would be suported by no-one [did any one had support from HP on SSSTK ?]

Now, the script
Display posts from previous:
Sort by:

2 postsPage 1 of 1

Users browsing this forum: No registered users