WARNING. This script is to be used for informational and learning purposes only. Should you choose to modify and or include this script in your test or production environments, you do so at your own risk. Custom scripts are only supported by Embotics, when they are produced by an Embotics Application Architect as part of a paid service engagement.
Should you require assistance modifying or troubleshooting the script, please contact your Customer Advocate who will provide you with a quote for Professional Services.
InfoBlox is a flexible DNS/DHCP/IPAM tool which can be integrated into vCommander to get and assign IP address when deploying new VM's in a VMware environment and Create records when not pulling addresses from IPAM
- vCommander scripts
- PowerShell v5 installed on the vCommander application server (Download here)
- Embotics® vCommander® 6.1.4 or later (Download here)
- Embotics vCommander REST API powershell libraries (Download here)
- InfoBlox 8.1.2 or higher can be downloaded from https://www.infoblox.com/
Prepare the Script Files
Download and extract the script to your vCommander application server. Embotics recommends storing all scripts called by vCommander in a single location (c:\Scripts) for example. These scripts are executed by vCommander. With the scripts extracted, the file system will look like this:
The scripts require minor editing before they will work with your systems. Refer to the comments in the individual script or the table below for guidance on editing the contents.
|$infobloxURL||The hostname or IP address of the Infoblox server. if you have a proper SSL Cert comment out the cert bypass in the Scripts. |
|$infoBloxCred||The credentials file which handles access to your Infoblox. For more details, please refer to the Appendix: PowerShell Script Credential Encryption in the vCommander API Getting Started Guide, available here.|
|$Zone||Zone to add records|
Note: Your Environment may require additional or different logic depending on how InfoBlox has been configured.
Import the sample workflow
In Commander navigate to Configuration > Command Workflows and Import the Sample Workflow.
This Imported sample is just for reference and would likely be used in completion or decommissioning workflows depending on your workload being deployed and decommissioning strategy.
To test and make sure everything works before adding the steps to your completion and decommissioning workflows, select a VM in the listgrid. From the actions menu select "Run Workflow"
Provided the everything was correct after a few minutes you should see the workflow with a completed status.
Now you can add the Create/Delete steps to your workflows as required.. just by adding a new step in the respective workflows and pasting in the command function you wish.