Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     $this->cpu_regexp = "CPU: (.*) \\((.*)-MHz (.*)\\)";
     $this->scsi_regexp1 = "^(.*): <(.*)> .*SCSI.*device";
     $this->scsi_regexp2 = "^(da[0-9]): (.*)MB ";
     $this->cpu_regexp2 = "/(.*) ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)/";
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     $this->cpu_regexp = "^cpu(.*) (.*) MHz";
     $this->scsi_regexp1 = "^(.*) at scsibus.*: <(.*)> .*";
     $this->scsi_regexp2 = "^(da[0-9]): (.*)MB ";
     $this->cpu_regexp2 = "/(.*),(.*),(.*),(.*),(.*)/";
     $this->pci_regexp1 = '/(.*) at pci[0-9] .* "(.*)"/';
     $this->pci_regexp2 = '/"(.*)" (.*).* at [.0-9]+ irq/';
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct();
     // don't set this params for local connection, it will not work
     $strHostname = '';
     $strUser = '';
     $strPassword = '';
     // initialize the wmi object
     $objLocator = new COM("WbemScripting.SWbemLocator");
     if ($strHostname == "") {
         $this->wmi = $objLocator->ConnectServer();
     } else {
         $this->wmi = $objLocator->ConnectServer($strHostname, "rootcimv2", "{$strHostname}\$strUser", $strPassword);
     }
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $this->cpu_regexp2 = "/(.*) ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)/";
 }