发布时间:2019-07-24 09:53:46编辑:auto阅读(2104)
#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实现的ping的代码
下一篇: Nginx+Python+uwsgi+D
51271
50712
41315
38128
32589
29497
28350
23212
23183
21506
1581°
2303°
1911°
1852°
2172°
1894°
2585°
4322°
4174°
2979°