Libvirt Functions
PHP Manual

libvirt_get_hostname

(php-libvirt 0.1)

libvirt_get_hostnameGet 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 Functions
PHP Manual