lost and found ( for me ? )

python : pysphere small timps

small tips

When connecting to a vCenter Server which has integrated with Windows Active Directory ,
Specify the user name as “<Domain name>\<user name>” notation like this.

# python
>>> from pysphere import VIServer
>>> server = VIServer()
>>> server.connect("vCetnter’s IP","Domain name\user","password")
>>> print server.get_server_type()
VMware vCenter Server
>>> server.disconnect()

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.