Get hostname on which the hypervisor is running

libvirt_get_domain_count
libvirt_get_inactive_domain_count
Libvirt Functions
PHP Manual

# libvirt_get_hostname

(php-libvirt 0.1)

libvirt_get_hostname — Get hostname on which the hypervisor is running

### Description

string libvirt_get_hostname ( resource `$connection` )

This returns the system hostname on which the hypervisor is running (the result of the gethostname(2) system call). If we are connected to a remote system, then this returns the hostname of the remote system.

### Parameters

`connection`

  Connection resource of hypervisor.

### Return Values

Host name of the hypervisor.

### See Also

- libvirt_node_get_info() - Extract hardware information about the node

libvirt_get_domain_count
libvirt_get_inactive_domain_count
Libvirt Functions
PHP Manual