https://github.com/tmetsch/pyzone
Manage Solaris Zones from Python
https://github.com/tmetsch/pyzone
Last synced: 6 months ago
JSON representation
Manage Solaris Zones from Python
- Host: GitHub
- URL: https://github.com/tmetsch/pyzone
- Owner: tmetsch
- Created: 2011-07-12T11:08:43.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-12T07:18:39.000Z (almost 15 years ago)
- Last Synced: 2025-08-20T07:26:55.922Z (11 months ago)
- Language: Python
- Homepage:
- Size: 87.9 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Manage Solaris Zones in Python
==============================
This project holds a python module with a ctypes wrapper around some Solaris
specific calls.
Module can be retrieved from [pypi](http://pypi.python.org/pypi/pyzone/) as
well:
easy_install/pip install pyzone
Some code snippets
==================
List zones
----------
zones = zone.list_zones()
for identifier in zones.keys():
print zones[identifier]
print zone.get_state(identifier)
Boot a zone
-----------
zone.boot_zone(item)
print zone.get_state(item)
Available functions
-------------------
* list_zones
* get_state
* boot_zone
* halt_zone
* shutdown_zone
* restart_zone
* ready_zone
* call_zone_adm
Note
----
Please note that some operations can take a while to complete.
(c) 2011 tmetsch