InfoBlox Integration

vanceturner
Kilo Explorer

I am looking for the following.

Infoblox DDI activity pack

Infoblox DDI activity pack

I need to install it and see how far this actually goes.

I wand the InfoBlox Grid Server and Service Now CMDB to automatically stay in sync.

Right now the FQDN field isn't populated, and I want this to be populated directly from InfoBlox.

If I need to script this, I will but I need som help to understand the process and/or if I need to use REST API to do this.

I saw some code in Python and Perl and need to know more.

15 REPLIES 15

arielgritti
Mega Sage

Hello

We have integration between ServiceNow and Infoblox for IPAM using REST v2 Messages.

Maybe our messages can help you.

Tell me if you want an example

 

Ariel

Hello,

 

We are doing POc of Infloblox and servicenow integration
It will be helpfull if you can share example or use case.

 

Thanks

Neeraj

Hi Neeraj

We use Infoblox to obtain IP address from them using a catalog item from servicenow service catalog.

We have a rest message to create the ip similar to this:

  • https://<infoblox_ip_address>/wapi/v2.5/record:host 

 

And parameters like this:

 { "name":"${host}",

  "comment":"${comments}",

            "ipv4addrs":[

                        {

                                    "ipv4addr":"func:nextavailableip:${range}"

                        }

            ]

}

 

In the workflow have this:

	//REST call ipamCreateIP
	try{
		var r = new sn_ws.RESTMessageV2('IPAM', 'ipamCreateIP');
		r.setStringParameter('host', hostFQDN);
		r.setStringParameter('comments', 'IPAM from ServiceNow');
		r.setStringParameter('range', current.variables.ipam_discovery_range_item);
		response = r.execute();
		responseBody = response.haveError() ? response.getErrorMessage() : response.getBody();
		status = response.getStatusCode();
	} catch(ex) {
		responseBody = ex.getMessage();
		status = '500';
	} finally {
		requestBody = r ? r.getRequestBody():null;
	}

 

We have another REST message to delete an IP, to check the assignment to a host too.

 

Please, mark correct or useful if i helped you

Thanks

Ariel

 

Ariel,

 

Do you have an example that you can share?

 

Thanks,