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] can one do traffic accounting on bridged domU's?

> Rudi Ahlers wrote:
>> Hi Fajar,
>>
>> This is how I have it currently. Each domU's interface name is "hard
>> coded" in it's config file, as follows:
>>
>> vif        = ['ip=1.2.3.4, vifname=vifrudi0,  mac=aa:00:bf:5b:79:01 ']
>>
>> But the problem I have is that snmp doesn't always work as expected, and
>> I'm thinking of a different approach, perhaps with iptables?

Did you restart snmpd after domU startup/shutdown? If you didn't, I
believe snmpd would end up listing two (or more) interface with  the
same name.

There's also this, which parses xentop's output into something
suitable for snmpd (and later, cacti) :
http://run.tournament.org.il/xen-vms-performance-collection/comment-page-1/
The posted xen_stats.pl don't work though, probably copy-paste error
or mangled by the CMS. Here's my version which should work for Xen 3.1
(tested on RHEL's Xen) and Xen 3.3.1 : http://pastebin.com/f1d292654

Regards,

Fajar

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