Subject: Re: [vserver] Like vps, see network connection for all guests, e.g. vnetstat?
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Wed, 20 Oct 2010 14:48:01 +0200 (CEST)

Ghislain wrote:
>  Le 20/10/2010 14:38, Daniel Hokka Zakrisson a écrit :
>> Markus Fischer wrote:
>>> Hi,
>>>
>>> is there a tool to see the network connections across all guest system
>>> from within the host system? Something like a fictional "vnetstat" ?
>> alias vnetstat='ncontext --nid 1 --migrate -- vcontext --xid 1 --migrate -- netstat'
>>
>> --
>> Daniel Hokka Zakrisson
>
> hi daniel,
>
> for me it fail:
>
> (root)> netstat -n|wc -l
> 42
>
> (root)> vserver vserver01 exec netstat -n |wc -l
> 73
>
>
> (root)> ncontext --nid 1 --migrate -- vcontext --xid 1 --migrate --
> netstat -n |wc -l
> 4
>
>
> is that dependant of a certain kernel configuration ?

If you have enabled guest privacy in your kernel, the spectator
context is essentially useless, and things like this can't
really be done without looping through the guests.

-- 
Daniel Hokka Zakrisson