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

[Xen-users] Custom Scripts with ${hostname} ?

To: "'xen-users@xxxxxxxxxxxxxxxxxxx'" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Custom Scripts with ${hostname} ?
From: "Berger, Thomas" <tbe@xxxxxxxxx>
Date: Tue, 24 Mar 2009 16:24:48 +0100
Accept-language: de-DE
Acceptlanguage: de-DE
Delivery-date: Tue, 24 Mar 2009 08:25:34 -0700
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmslNY0mAx+uRyWScKnuU9axX6lxg==
Thread-topic: Custom Scripts with ${hostname} ?

Hi all there,

 

is there any way, to get the name of a domU from the network-common script?

 

Here is the $(env) called from the script:

 

------

SUBSYSTEM=xen-backend

DRIVER=vif

XENBUS_TYPE=vif

DEVPATH=/devices/xen-backend/vif-10-0

script=/etc/xen/scripts/vif-bridge

vif=vif10.0

PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

ACTION="">

PWD=/

UDEV_LOG=3

LANG=POSIX

XENBUS_PATH=backend/vif/10/0

UDEVD_EVENT=1

XENBUS_BASE_PATH=backend

SHLVL=1

PHYSDEVDRIVER=vif

PHYSDEVBUS=xen-backend

SEQNUM=1490

_=/usr/bin/env

 

As you see, no Information available, which can be used without parsing / regex / modification, even not a DomID!

 

Kind Regards,
------------------------------------------------------------------------
Thomas Berger
- Junior Consultant for SAP Netweaver AS -
BOREUS Rechenzentrum GmbH
Zur Schwedenschanze 2
D - 18435 Stralsund
Germany
Phone:+49 (0) 38 31 - 36 76 415
Fax: +49 (0) 38 31 - 36 76 615
eMail: tbe@xxxxxxxxx
Internet: http://www.boreus.de/
--------------------------------------------------------------------------
Geschäftsführer: André Jahns, Holger Lebrecht
Handelsregister: Amtsgericht Stralsund HRB 5750
Sitz der Gesellschaft: Stralsund

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>