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

Hi Srivani

 

The implementation was "custom" using Run Script activities in Workflows calling the Infoblox's API methods with the ServiceNow sn_ws.RESTMessageV2 approach.

 

For example, a call to create an IP:

//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 don't have Infoblox Spoke in our instance, but if you can is the best option.

 

Please mark helpful or correct if I helped you
Thanks
Ariel

Srivani Khammam
Tera Contributor

Thanks for the response Ariel. We are still exploring and trying to understand the Spoke vs DDI Activity pack and whether these OOB ones meets our Network team's requirements. 

When we looked at the OOB Infoblox Spoke, we saw only certain actions like Register AName, Register CName, Delete DNS record. But in our DNS request form, we have other Request Types such as Mx, TXT(Text), SRV, (Server), PTR (Pointer), A Record, Cname and these types for all the actions Add/Modify/Delete/TTL. 

We are still talking to our Network team in understanding their requirements and don't know yet whether these OOB ones work or we need a custom integration. What do you think will be the best approach? Any thoughts on the above?

Also, do you have any idea if we can call Spoke flows from the existing Service Request workflow and vice versa. I was seeing some articles on the community calling flow from a workflow but didn't get correct way of calling. If you can share any info on these would be great. 

Thanks,
Srivani

 

Hi Srivani,

 

My suggestion is to use Flow Designer and take advantage of all OOTB Infoblox functionalities. If there isn't a functionality OOTB, then create a script action in the flow to use the "custom call to the Infoblox API".

Regarding the call to a spoke from a workflow, I didn't test it, but there is a post in the community about that, maybe can help you: https://community.servicenow.com/community?id=community_article&sys_id=7240b3c2db3d809013b5fb2439961...

 

Please mark helpful or correct if I helped you
Thanks
Ariel

Srivani Khammam
Tera Contributor

Thanks Ariel. Looks like the link you suggested is not working for me. It says it might have deleted or don't have permissions.

Can you check please? Also, is your integration bi-directional? You auto close the requests on your side once the action is done on Infoblox?

 

Hi Srivani,

 

The same error here 😞
Yesterday the link was working, maybe the author deletes it.

The implementation is uni-directional from workflow to Infoblox. The request is closed by the workflow in the final step.

 

Thanks,

Ariel