libvirt_node_get_info Extract hardware information about the node
&reftitle.description; Array libvirt_node_get_info resource connection

Extract hardware information about the node (machine running the hypervisor).

&reftitle.parameters;

connection

  Connection resource of hypervisor.

&reftitle.returnvalues;

&false; is returned on failure. On success associative array containing information is returned.

The array contains these values:

- model - string indicating the CPU model
- memory - memory size in kilobytes
- cpus - the number of active CPUs
- mhz - expected CPU frequency
- nodes - the number of NUMA cell, 1 for uniform mem access
- sockets - number of CPU socket per node
- cores - number of core per socket
- threads - number of threads per core

&reftitle.examples;

`libvirt_node_get_info` example

Example of getting hardware info for active hypervisor.

    <?php

    	$nodeinfo=libvirt_node_get_info($res);
    	print_r($nodeinfo);

    ?>

&example.outputs.similar;

    (
        [model] => x86_64
        [memory] => 3077804
        [cpus] => 2
        [nodes] => 1
        [sockets] => 1
        [cores] => 2
        [threads] => 1
        [mhz] => 1700
    )