This project holds a python module with a ctypes wrapper around some Solaris specific calls.
Module can be retrieved from pypi as well:
easy_install/pip install pyzone
zones = zone.list_zones()
for identifier in zones.keys():
print zones[identifier]
print zone.get_state(identifier)
zone.boot_zone(item)
print zone.get_state(item)
- list_zones
- get_state
- boot_zone
- halt_zone
- shutdown_zone
- restart_zone
- ready_zone
- call_zone_adm
Please note that some operations can take a while to complete.
(c) 2011 tmetsch