Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python Psphere Issue
- from psphere.client import Client
- from psphere.managedobjects import HostSystem
- Client = Client("server", "username", "password")
- hs_list = HostSystem.all(Client)
- len(hs_list)
- # Copy this file into ~/.psphree/config.yaml and edit to your liking
- general:
- server: your.esxserver.com
- username: Administrator
- password: strongpassword
- template_dir: ~/.psphere/templates/
- logging:
- destination: ~/.psphere/psphere.log
- level: INFO # DEBUG, INFO, etc
Add Comment
Please, Sign In to add comment