摘要:
XenAPI方式:#!/usr/bin/pythonfromxen.xm.XenAPIimportSessionsession=Session('httpu:///var/run/xend/xen-api.sock')try:session.login_with_password('','')xenapi=session.xenapi#print xenapi.VM.get_all_records()#print xenapi.VM_metrics.get_all_records()printxenapi.VM.get_all()printxen 阅读全文
posted @ 2011-11-23 22:21 feisky 阅读(1857) 评论(0) 推荐(0) 编辑