Giter Site home page Giter Site logo

python_vsan_sdk_monitoring's Introduction

python_vsan_sdk_example

Sample code showing how to use the vSAN SDK to query vSAN status and health metrics.

Requirements

This code was developed and tested with the following versions

Interpreter

  • Python 3.7.5

Modules

  • certifi 2019.9.11
  • cffi 1.13.2
  • chardet 3.0.4
  • colored 1.4.0
  • cryptography 2.8
  • idna 2.8
  • pip 19.3.1
  • prompt-toolkit 2.0.10
  • pyOpenSSL 19.1.0
  • pycparser 2.19
  • pyflakes 2.1.1
  • pyvmomi 6.7.3
  • requests 2.22.0
  • setuptools 41.6.0
  • six 1.13.0
  • urllib3 1.25.7
  • wcwidth 0.1.7

Usage:

python3.7 queryvsancluster.py \
  -s <vcenter ip or hostname> \
  -u <username>               \
  -p <password>               \
  --cluster <cluster name>

Versions

0.1 Initial release

Note: This code assumes the target is a vCenter and the cluster has vSAN enabled. It was tested against vSphere 6.7U3 environments but may have issues with older versions because the code assumes a 6.7U3 API and this API has few properties and methods not found in earlier versions. We will handle these cases in later releases.

  • Storage capacity and disk utilization
  • Cluster and host health
  • Storage controller HCL status

0.2

  • vSAN object health and compliance

References

vSAN Management API 6.7U3 https://code.vmware.com/apis/693/vsan

python_vsan_sdk_monitoring's People

Contributors

cleeistaken avatar

Stargazers

Bubble99 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.