-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from Kegeruneku/bug_4725/int/4725_fix_aix_mic…
…rocode_info_in_fusion Bug 4725/int/4725 fix aix microcode info in fusion
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...er-agent/SOURCES/patches/fusioninventory/2.3.6/0004-aix-microcode-version-retrieval.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- a/lib/FusionInventory/Agent/Task/Inventory/AIX.pm 2014-02-03 09:42:06.000000000 +0100 | ||
+++ a/lib/FusionInventory/Agent/Task/Inventory/AIX.pm 2014-04-15 16:09:46.264212645 +0200 | ||
@@ -42,12 +42,20 @@ | ||
|
||
my @infos = getLsvpdInfos(logger => $logger); | ||
|
||
- my $bversion; | ||
- my $system = first { $_->{DS} eq 'System Firmware' } @infos; | ||
- $bversion = $system->{RM} if $system; | ||
+ # Get the BIOS version from the System Microcode Image (MI) version, in | ||
+ # 'System Firmware' section of VPD, containing three space separated values: | ||
+ # - the microcode image the system currently runs | ||
+ # - the 'permanent' microcode image | ||
+ # - the 'temporary' microcode image | ||
+ # See http://www.systemscanaix.com/sample_reports/aix61/hardware_configuration.html | ||
+ my $bios_version; | ||
|
||
- my $platform = first { $_->{DS} eq 'Platform Firmware' } @infos; | ||
- $bversion .= "(Firmware : $platform->{RM})" if $platform; | ||
+ my $system = first { $_->{DS} eq 'System Firmware' } @infos; | ||
+ if ($system) { | ||
+ # we only return the currently booted firmware | ||
+ my @firmwares = split(' ', $system->{MI}); | ||
+ $bios_version = $firmwares[0]; | ||
+ } | ||
|
||
my $vpd = first { $_->{DS} eq 'System VPD' } @infos; | ||
|
||
@@ -87,7 +95,7 @@ | ||
SMANUFACTURER => 'IBM', | ||
SMODEL => $vpd->{TM}, | ||
SSN => $ssn, | ||
- BVERSION => $bversion, | ||
+ BVERSION => $bios_version, | ||
}); | ||
|
||
} | ||
|