Guest User

Untitled

a guest
Aug 2nd, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Python Psphere Issue
  2. from psphere.client import Client
  3. from psphere.managedobjects import HostSystem
  4.  
  5.  
  6. Client = Client("server", "username", "password")
  7.  
  8. hs_list = HostSystem.all(Client)
  9. len(hs_list)
  10.  
  11. # Copy this file into ~/.psphree/config.yaml and edit to your liking
  12. general:
  13. server: your.esxserver.com
  14. username: Administrator
  15. password: strongpassword
  16. template_dir: ~/.psphere/templates/
  17. logging:
  18. destination: ~/.psphere/psphere.log
  19. level: INFO # DEBUG, INFO, etc
Add Comment
Please, Sign In to add comment