WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Monitor Network Traffic per Domain

To: "Carsten Tolkmit" <xen-users@xxxxxxxxxxxxxxxxxxxxxx>, "Michael Warner" <admin@xxxxxxxxxx>
Subject: RE: [Xen-users] Monitor Network Traffic per Domain
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Sun, 22 May 2005 11:40:48 +0100
Cc: ian.pratt@xxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 22 May 2005 10:40:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcVem4EIIkDDsGNTS6mgWzHA8CtJigAHsb7g
Thread-topic: [Xen-users] Monitor Network Traffic per Domain
> > This works partially, but I need a way to monitor total 
> usage over time. 
> > So any script that relies on statistics from each vif will 
> get thrown 
> > off if I ever restart a domain or start them in a different order.
> 
> yes - I had the same problem. So I came up with the following 
> solution:
> 
> I installed the ifrename tool (ifrename package in debian) 
> and I changed the /etc/xen/scripts/vif-brige script in a way 
> that it renames the vif before adding it to the bridge with a 
> name based on the last byte of the mac address assigned to 
> the virtual interface. My changes look like this (unified diff):

As I recall, you can just set the name of the vif by setting the
"vifname=" parameter as part of the vif line in the config file.

Neither approach will meet your requirement of having the stats survive
a reboot of the domain.

Best,
Ian

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users