GithubHelp home page GithubHelp logo

theapsgroup / steampipe-plugin-vsphere Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 10.66 MB

Use SQL to instantly query vSphere VMs, networks and more. Open source CLI. No DB required.

Home Page: https://hub.steampipe.io/plugins/theapsgroup/vsphere

License: Apache License 2.0

Makefile 0.68% PLSQL 2.95% Go 96.37%
golang postgresql postgresql-fdw sql steampipe steampipe-plugin vsphere

steampipe-plugin-vsphere's People

Contributors

anykeynl avatar bob-bot avatar bonemind avatar graza-io avatar mattschleder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

steampipe-plugin-vsphere's Issues

Add vms uuid on table vsphere_vm

Hi,

I would to like to add the object (uuid) on tables it will very important for same cases.

Is it very complicate I wold like to contribute to do it

Documentation Required

We need the following documentation creating/updating:

  • README.md
  • /docs/index.md
  • /docs/tables/vsphere_datastore.md
  • /docs/tables/vsphere_host.md
  • /docs/tables/vsphere_network.md
  • /docs/tables/vsphere_vm.md

Add state of the VM

It would be create if the vsphere_vm query can also report on the state of the VM (if it is running, suspended or stopped)

Suggestions for plugin release

Hey @Bonemind and @graza-io , thanks for creating this plugin! We've reviewed it and have some suggestions before publishing below. If you have any questions, please let me know, thanks!

index.md:

  • brand_color should be #696566
  • For icon_url, you can use images/plugins/theapsgroup/vsphere.svg
  • For og_image, you can use images/plugins/theapsgroup/vsphere-social-graphic.png

go.mod

  • We've recently released Steampipe SDK v1.6.1. I don't believe this plugin needs any of the features in v1.6.0 and onward, but we'd recommend upgrading as there are some bug fixes in between v1.5.0 and v1.6.1.

vsphere/utils.go

README.md

Table and column descriptions

  • Some of the descriptions seem inconsistent or contain typos:

Different casing of datastore, also missing periods at the end of each sentence

  > .inspect vsphere.vsphere_datastore
  +-------------+---------+--------------------------------------------------------------------------+
  | column      | type    | description                                                              |
  +-------------+---------+--------------------------------------------------------------------------+
  | accessible  | boolean | Whether this datastore is accessible                                     |
  | capacity    | bigint  | Capacity in bytes                                                        |
  | free        | bigint  | Free space left in bytes                                                 |
  | name        | text    | The name of the datastore                                                |
  | type        | text    | The type of Datastore                                                    |
  | uncommitted | bigint  | How much storage on this datastore has been allocated to guests in bytes |
  +-------------+---------+--------------------------------------------------------------------------+

Typo in the word Curent:

  > .inspect vsphere.vsphere_host
  +--------------+--------+----------------------------------+
  | column       | type   | description                      |
  +--------------+--------+----------------------------------+
  | cpu          | text   | CPU model                        |
  | cpu_cores    | bigint | CPU core count                   |
  | cpu_mhz      | bigint | CPU clock rate in mhz            |
  | cpu_threads  | bigint | CPU thread count                 |
  | cpu_usage    | bigint | Current cpu usage in mhz         |
  | manufacturer | text   | The manufacturer of the hardware |
  | memory       | bigint | Memory in bytes                  |
  | memory_usage | bigint | Curent memory usage in MB        |
  | model        | text   | The model of the hardware        |
  | name         | text   | The host's name                  |
  | num_hbas     | bigint | The number of HBAs connected     |
  | num_nics     | bigint | The number of NICs connected     |
  | status       | text   | The status of the host           |
  | uptime       | bigint | Uptime                           |
  +--------------+--------+----------------------------------+

Are these descriptions pulled from the vSphere SDK or API, or somewhere else? In general, we prefer to use any descriptions from those sources so we can provide users with accurate, easy to find information. Our (short) list of best practices around table and column descriptions can be found at Table and Column Descriptions.

Querying vsphere_vm table results in error

Attempting simple query of the vsphere_vm table results in errors

`steampipe query "select name from vsphere_vm;"

Error: rpc error: code = Internal desc = hydrate function listVms failed with panic runtime error: invalid memory address or nil pointer dereference (SQLSTATE HV000)`

plugin-2023-02-22.log

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.