Skip to content

Commit

Permalink
collect OS architecture
Browse files Browse the repository at this point in the history
Store the information in OPERATINGSYSTEM/ARCH

#1819
  • Loading branch information
Gonéri Le Bouder committed Oct 22, 2012
1 parent eadc9ea commit 25b74cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/FusionInventory/Agent/Task/Inventory/Input/Win32/OS.pm
Expand Up @@ -24,7 +24,7 @@ sub doInventory {
class => 'Win32_OperatingSystem',
properties => [ qw/
OSLanguage Caption Version SerialNumber Organization \
RegisteredUser CSDVersion TotalSwapSpaceSize
RegisteredUser CSDVersion TotalSwapSpaceSize OSArchitecture
/ ]
)) {

Expand Down Expand Up @@ -65,7 +65,8 @@ sub doInventory {
# VERSION => $OSVersion,
KERNEL_VERSION => $object->{Version},
FULL_NAME => $object->{Caption},
SERVICE_PACK => $object->{CSDVersion}
SERVICE_PACK => $object->{CSDVersion},
ARCH => $object->{OSArchitecture} || 'x86',
});
}

Expand Down
7 changes: 6 additions & 1 deletion lib/FusionInventory/Agent/Task/Inventory/Inventory.pm
Expand Up @@ -64,7 +64,8 @@ my %fields = (
DEFAULTGATEWAY VMSYSTEM WINOWNER WINPRODID
WINPRODKEY WINCOMPANY WINLANG CHASSIS_TYPE/ ],
OPERATINGSYSTEM => [ qw/KERNEL_NAME KERNEL_VERSION NAME VERSION FULL_NAME
SERVICE_PACK INSTALL_DATE FQDN DNS_DOMAIN SSH_KEY/ ],
SERVICE_PACK INSTALL_DATE FQDN DNS_DOMAIN SSH_KEY
ARCH/ ],
ACCESSLOG => [ qw/USERID LOGDATE/ ],
VIRTUALMACHINES => [ qw/MEMORY NAME UUID STATUS SUBSYSTEM VMTYPE VCPU
VMID MAC COMMENT OWNER/ ],
Expand Down Expand Up @@ -929,6 +930,10 @@ present on systems which use this notion.
The operating system installation date.
=item ARCH
Operating system architecture.
=back
=head2 MONITORS
Expand Down

0 comments on commit 25b74cf

Please sign in to comment.