Beispiel #1
0
 def power_cycle(self):
     """Power cycle the box."""
     payload = wsman.power_state_request(self.uri, "reboot")
     return self.post(payload, CIM_PowerManagementService)
Beispiel #2
0
 def power_off(self):
     """Power off the box."""
     payload = wsman.power_state_request(self.uri, "off")
     return self.post(payload, CIM_PowerManagementService)