(php-libvirt 0.1)
libvirt_node_get_info — Extract hardware information about the node
Extract hardware information about the node (machine running the hypervisor).
Connection resource of hypervisor.
FALSE is returned on failure. On success associative array containing information is returned.
The array contains these values:
Example #1 libvirt_node_get_info() example
Example of getting hardware info for active hypervisor.
<?php
$nodeinfo=libvirt_node_get_info($res);
print_r($nodeinfo);
?>
The above example will output something similar to:
( [model] => x86_64 [memory] => 3077804 [cpus] => 2 [nodes] => 1 [sockets] => 1 [cores] => 2 [threads] => 1 [mhz] => 1700 )