Skip to content

Example of Nutanix discovery (Prism Central or Prism Element) to import in EfficientIP Cloud Observer written in Python

License

Notifications You must be signed in to change notification settings

slysiou/EIP-Nutanix-discover.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EfficientIP Cloud Observer external plugin for Nutanix

Get information from Prism Element or Prism Central and generate data file for EfficientIP Cloud Observer.

The generated file must be pushed to the /data1/tmp/cloud_observer/ of the EfficientIP SOLIDserver to be integrated through the normal croned job (every minute).

Documentation

Nutanix API v3 is available on Nutanix developper website

Swagger in also available on Prism UI. By default v2 is presented. Change URL to v3 to see it.

config.ini

Use the sample file to create a config.ini.

like:

[nutanix]
user=admin
password=pass
url=https://prism.local:9440/api/nutanix/v3

[eip]
uuid=DBCDFED3-994D-4F51-9605-C5799DD5B929
EIP_IP=10.10.10.1
EIP_USER=cloudobserver
EIP_PATH=/home/cloudobserver

Objects imported

Folder

Folder name is based on cluster name.

Instance

Instance name is based on VM name (excluding Nutanix CVM).

Network

Network name is based on Nutanix Subnet defined on the cluster.

IPs

Each VM Network interface has 1 Mac address, multiple IP addresses connected to 1 Network.

Installation

  • Install python3
  • Create an environment and activate it (venv documentation)
  • Install required packages with:
pip install -r requirements.txt

Run the script

python main.py

About

Example of Nutanix discovery (Prism Central or Prism Element) to import in EfficientIP Cloud Observer written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages