Skip to main content

ESXi Server and Xen Server control script.

Project description

ESXi Server and Xen Server control script.

Requirements

  • Python 2.7

Features

  • nonthing

ESXi Examples

VM List.

$ esxi list -H [IPv4 Address of Server] -u [User name] -p [Password]

VM powered on.

$ esxi on -H [IPv4 Address of Server] -u [User name] -p [Password] -n [VM name]

Get IPv4 address of VM.(Installed VMware tools)

$ esxi ip -H [IPv4 Address of Server] -u [User name] -p [Password] -n [VM name]

Import OVF or OVA file with File path.

$ esxi import -H [IPv4 Address of Server] -u [User name] -p [Password] --file [OVF or OVA File path] -n [New VM name]

Import OVF or OVA file with File path.(Create multiple VM)

$ esxi import -H [IPv4 Address of Server] -u [User name] -p [Password] --file [OVF or OVA File path] -n [New VM name1] [new VM name2] ...

Import OVA file with URL.

$ esxi import -H [IPv4 Address of Server] -u [User name] -p [Password] --url [OVA URL] -n [New VM name]

Xen Examples

VM List.

$ xen list -U [URL of Server] -u [User name] -p [Password]

VM powered on.

$ xen on -U [URL of Server] -u [User name] -p [Password] -n [VM name]

Get IPv4 address of VM.(Installed Xen tools)

$ xen ip -U [URL of Server] -u [User name] -p [Password] -n [VM name]

Xen VM install with template.

$ xen install -U [URL of Server] -u [User name] -p [Password] -t [Template name] -n [New VM name]

Xen VM install with template.(Create multiple VM)

$ xen install -U [URL of Server] -u [User name] -p [Password] -t [Template name] -n [New VM name1] [New VM name2] ...

Multiple VM control commands

  • Powered commands(esxi -> on off, xen -> on off reboot suspend paused)

  • Import commands(esxi -> import, xen -> install)

  • Destroy commands(destroy)

Installation

easy_install:

$ easy_install pyxenter

pip:

$ pip install pyxenter

License

Copyright (c) 2013, Kazuki Hasegawa All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxenter-1.0.6.zip (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyxenter-1.0.6.win-amd64.exe (256.0 kB view details)

Uploaded Source

File details

Details for the file pyxenter-1.0.6.zip.

File metadata

  • Download URL: pyxenter-1.0.6.zip
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyxenter-1.0.6.zip
Algorithm Hash digest
SHA256 d6480d12a14349a06bb0f32044c52700aa0cdc92cb400163efcabd1ec0779c83
MD5 05a0226c9a4298d62dce651ef8fbf582
BLAKE2b-256 4a0de06205cf5b75bc4083a9a7d35bb7e4b6f8ddb96186c97017dddd44fc2067

See more details on using hashes here.

File details

Details for the file pyxenter-1.0.6.win-amd64.exe.

File metadata

File hashes

Hashes for pyxenter-1.0.6.win-amd64.exe
Algorithm Hash digest
SHA256 8e166c2514f45b290fb2b9aa0803b4f4f0d7dfbdcf9bc6dd12c0eb4b363127fb
MD5 460038fb889ec635c9914de4993482bc
BLAKE2b-256 2f972e1b081fd87ddbf4392d60d80cafc9d3dcda5030fe50008998bb96cb32fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page