[one-users] How to get VM info based on Host Name from ONE Server ?

lalithamba.vishwanathaiah at wipro.com lalithamba.vishwanathaiah at wipro.com
Fri Jan 16 06:20:20 PST 2009


Hi,
 
My requirement is  : 
     User is giving a hostname and based on the hostname, I need to show the VM Info.
 
Currently in ONE implementation, one.vmget_info returns the information, but it does not give the hostname.
=-=============================================
VID            : 7
UID            : 0
STATE          : PENDING
LCM STATE      : LCM_INIT
DEPLOY ID      :
MEMORY         : 0
CPU            : 0
LAST POLL      : 0
START TIME     : 01/15 14:04:57
STOP TIME      : 01/01 05:30:00
NET TX         : 0
NET RX         : 0
....: Template :....
    CPU             : 0.5
    DISK            : READONLY=no,SOURCE=/home/wipro/vm-image/disk0,TARGET=sda4
    DISK            : SIZE=1024,TARGET=sdb,TYPE=swap
    MEMORY          : 128
    NAME            : nodevm
    NIC             : BRIDGE=eth0",MAC=00:03:0D:AD:D4:76
    OS              : INITRD=/boot/initrd-2.6.2 5.18-0.2.xen,KERNEL=/boot/vmlinuz-2.6.25.18-0.2-xen,ROOT=sda4
=-=============================================
 
Is there any other way to get the details ?
 
Thanks and Regards,
Lalithamba.


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20090116/0e3bace3/attachment-0001.htm>


More information about the Users mailing list