User story #9120
open
Add Model version into group criteria ?
Added by Jérémy HOCDÉ about 8 years ago.
Updated almost 7 years ago.
Category:
Web - Nodes & inventories
Description
Is it possible to add the System Version into group criteria ?
FusionInventory does't get this information, but dmidecode can get it
- dmidecode -t 1
- dmidecode 2.11
SMBIOS 2.6 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 5048WAL
Version: ThinkCentre M81
Serial Number: S4EPEL4
UUID: 9B8B3830-58AD-11E1-8735-047EFB473C00
Wake-up Type: Power Switch
SKU Number: To be filled by O.E.M.
Family: To be filled by O.E.M.
It would be nice to get this criteria into dynamic group
thks a lot
- Description updated (diff)
- Assignee set to Matthieu CERDA
Hello, thanks for the report !
I'll take a look at this :)
- Tracker changed from Question to User story
- Category set to Web - Nodes & inventories
- Assignee deleted (
Matthieu CERDA)
- Target version set to 4.0.0~rc2
It's actually quite easy to add:
<BIOS>
(...)
<SVERSION>ThinkPad X230</SVERSION>
</BIOS>
As simple as:
diff --git a/lib/FusionInventory/Agent/Inventory.pm b/lib/FusionInventory/Agent/Inventory.pm
index 73b39a7..cf0427c 100644
--- a/lib/FusionInventory/Agent/Inventory.pm
+++ b/lib/FusionInventory/Agent/Inventory.pm
@@ -12,7 +12,7 @@ use XML::TreePP;
use FusionInventory::Agent::Tools;
my %fields = (
- BIOS => [ qw/SMODEL SMANUFACTURER SSN BDATE BVERSION
+ BIOS => [ qw/SMODEL SMANUFACTURER SVERSION SSN BDATE BVERSION
BMANUFACTURER MMANUFACTURER MSN MMODEL ASSETTAG
ENCLOSURESERIAL BIOSSERIAL
TYPE SKUNUMBER/ ],
diff --git a/lib/FusionInventory/Agent/Task/Inventory/Generic/Dmidecode/Bios.pm b/lib/FusionInventory/Agent/Task/Inventory/Generic/Dmidecode/Bios.pm
index 400d3bd..bc5dfc4 100644
--- a/lib/FusionInventory/Agent/Task/Inventory/Generic/Dmidecode/Bios.pm
+++ b/lib/FusionInventory/Agent/Task/Inventory/Generic/Dmidecode/Bios.pm
@@ -40,6 +40,8 @@ sub _getBiosHardware {
$bios->{SMODEL} =
$system_info->{'Product'} ||
$system_info->{'Product Name'};
+ $bios->{SVERSION} =
+ $system_info->{'Version'};
$bios->{MMODEL} = $base_info->{'Product Name'};
$bios->{SKUNUMBER} = $system_info->{'SKU Number'};
Of course, we would need an appropriate logic in the webapp to parse and expose this.
- Target version changed from 4.0.0~rc2 to 4.1.0~beta1
- Target version changed from 4.1.0~beta1 to 4.1.0~beta2
- Target version changed from 4.1.0~beta2 to 4.1.0~beta3
- Target version changed from 4.1.0~beta3 to 4.1.0~rc1
- Target version changed from 4.1.0~rc1 to 4.2.0~beta1
- Target version changed from 4.2.0~beta1 to 4.2.0~beta2
- Target version changed from 4.2.0~beta2 to 4.2.0~beta3
- Target version changed from 4.2.0~beta3 to 4.2.0~rc1
- Target version changed from 4.2.0~rc1 to 4.2.0~rc2
- Target version changed from 4.2.0~rc2 to 4.2.0
- Target version changed from 4.2.0 to 4.2.1
- Target version changed from 4.2.1 to 4.2.2
- Target version changed from 4.2.2 to 4.2.3
- Target version changed from 4.2.3 to 4.2.4
- Target version changed from 4.2.4 to Ideas (not version specific)
Also available in: Atom
PDF