how to Populate CMDB CI fields based on Ip ranges

Servicenow lear
Tera Contributor

Hello All,

 

We have a use case : where in we want to populate CI field : location based on ip ranges the CI is part of .

For example : ip range 192.168.1.0 / 24 is Amsterdam so any CI in this range will have location amsterdam.

We have some many ip ranges, so what is the best way to do it ?

Script ? queries ?   if any sample reference could be shared. 

4 REPLIES 4

Najmuddin Mohd
Mega Sage

Hi @Servicenow lear ,

When you are creating schedule to find these CIs, you have a field 'Location' on the schedule form.
Adding Amsterdam would populate the CIs location with the location selected in the Schedule field. i.e, Amsterdam.

If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.

Servicenow lear
Tera Contributor

our discovery schedule is not restricted to one ip range and location , hence ..

AndersBGS
Tera Patron
Tera Patron

Hi @Servicenow lear ,

 

The best solution is to create a schedule pr. location. e.g. one for Amsterdam and one for another etc.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

we are long way from it now.  this will impact our current discovery schedule.  hence , i am looking at other ways to do it