标签:type rtu nec 连接 pass from ISE com contex
代码#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
标签:type rtu nec 连接 pass from ISE com contex
原文地址:http://blog.51cto.com/12965094/2350173