Re: [vserver] Like vps, see network connection for all guests, e.g. vnetstat?

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Wed 20 Oct 2010 - 13:48:01 BST
Message-ID: <57646.192.168.102.6.1287578881.squirrel@192.168.100.17>

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
Received on Wed Oct 20 13:48:10 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 20 Oct 2010 - 13:48:10 BST by hypermail 2.1.8