source: ocsinventory-agent/trunk/fuentes/lib/Ocsinventory/Agent/Backend/OS/HPUX.pm @ 468

Last change on this file since 468 was 468, checked in by mabarracus, 4 years ago

Copyt trusty code

File size: 606 bytes
Line 
1package Ocsinventory::Agent::Backend::OS::HPUX;
2
3use strict;
4use vars qw($runAfter);
5$runAfter = ["Ocsinventory::Agent::Backend::OS::Generic"];
6
7sub check  { $^O =~ /hpux/ }
8
9sub run {
10  my $params = shift;
11  my $common = $params->{common};
12  my $OSName;
13  my $OSVersion;
14  my $OSComment;
15  #my $uname_path          = &_get_path('uname');
16 
17  # Operating systeminformations
18 
19  chomp($OSName = `uname -s`);
20  chomp($OSVersion = `uname -r`);
21  chomp($OSComment = `uname -l`);
22
23  $common->setHardware({
24      OSNAME => $OSName,
25      OSCOMMENTS => $OSComment,
26      OSVERSION => $OSVersion,
27    });
28
29}
30
311;
Note: See TracBrowser for help on using the repository browser.