[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] RFC: Implement virDomainGetIPAddress()
- From: Matthias Bolte <matthias bolte googlemail com>
- To: Michal Novotny <minovotn redhat com>
- Cc: Libvirt <libvir-list redhat com>
- Subject: Re: [libvirt] RFC: Implement virDomainGetIPAddress()
- Date: Thu, 14 Jul 2011 20:06:25 +0200
2011/7/14 Michal Novotny <minovotn redhat com>:
> Hi guys,
> some time ago I've been investigating the options to get the guest's IP
> address information without having to connect to guest's VNC window or
> console. It was for one project I've been working on and I found that
> the solution lies in the procfs, precisely in the /proc/{PID}/net/arp...
>
> The format is as follows:
>
> $ cat /proc/{PID}/net/arp
> IP address HW type Flags HW address Mask
> Device
> 192.168.122.36 0x1 0x2 52:54:00:35:76:e6 *
> virbr0
I took a look at this and wonder what's the difference between
/proc/{PID}/net/arp and /proc/net/arp. Also as it's ARP it'll only
work for IPv4.
--
Matthias Bolte
http://photron.blogspot.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]