Skip to content

Commit

Permalink
generate a fake serial number for LPAR
Browse files Browse the repository at this point in the history
The host serial number is not in IOS/SSN anymore to avoid conflict.

closes: #950
  • Loading branch information
Gonéri Le Bouder committed Jan 31, 2013
1 parent 61a64d6 commit aebbc35
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/FusionInventory/Agent/Task/Inventory/Input/AIX.pm
Expand Up @@ -54,14 +54,9 @@ sub doInventory {
$vmid = $1;
$vmname = $2;
$vmhostserial = $vpd->{SE};
$ssn = "aixlpar-$vmhostserial-$vmid";
} else {
$inventory->setBios({
BMANUFACTURER => 'IBM',
SMANUFACTURER => 'IBM',
SMODEL => $vpd->{TM},
SSN => $vpd->{SE},
BVERSION => $bersion,
});
$ssn = $vpd->{SE};
}

$inventory->setHardware({
Expand All @@ -80,6 +75,14 @@ sub doInventory {
FULL_NAME => "$OSName $OSVersion"
});

$inventory->setBios({
BMANUFACTURER => 'IBM',
SMANUFACTURER => 'IBM',
SMODEL => $vpd->{TM},
SSN => $ssn,
BVERSION => $bersion,
});

}

1;

0 comments on commit aebbc35

Please sign in to comment.