From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: read mac in vif-bridge Date: Tue, 30 Aug 2011 15:23:16 +0200 Message-ID: <20110830132316.GA19098@aepfle.de> References: <20110830131806.GO32373@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <20110830131806.GO32373@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Pasi =?utf-8?B?S8Okcmtrw6RpbmVu?= Cc: Farshid Hajizeinalabedin , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Aug 30, Pasi Kärkkäinen wrote: > On Tue, Aug 30, 2011 at 03:14:40PM +0430, Farshid Hajizeinalabedin wrote: > > Hello, > > i need read mac address in /etc/xend/scripts/vif-bridge but in this file i > > can only read ip and vif how can i read mac address on this file? > > thanks, > > Well, you know the vif name, so use "ifconfig" or "ip" commands to get the mac? Its provided in the /sys/class/net/${vif}/address file. Olaf