成都创新互联网站制作重庆分公司

Python之连接VCENTER

代码

#Author Kang

import ssl
import pysphere
from pysphere import VIServer

ssl._create_default_https_context = ssl._create_unverified_context
host_ip = '10.3.152.88'
username = 'zhoumingkang@xxxx.com'
passwd = 'password'

server = VIServer()
server.connect(host_ip,username,passwd)

print server.get_api_type()
print server.get_api_version()

server.disconnect()

#结果
VirtualCenter
6.5

新闻名称:Python之连接VCENTER
当前链接:http://cxhlcq.cn/article/pjpejh.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部