This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

IPAM API: Update IP Address Settings Based on Custom Field

This script was created to help update IP settings in bulk across multiple subnets.

I have an IPAM Custom Field that certain IP's have set that spans multiple subnets. I can search for that Custom Field but I cannot edit in Bulk. This script allows me to set the name of the Custom Field and then set a value for all of the IP Addresses that match it.

You'll want to update the first few lines in the script for your Orion deployment. Everything in red below will need to be updated to what you want to change.

$OrionHostname = '10.1.1.10'

$OrionUsername = 'Admin'

$OrionPassword = 'Password1'

$CustomFieldName = 'Custom_Field_1'

$CustomFieldValue = 'hello world'

$PropertyName = 'SkipScan'

$PropertyValue = 'True'

*NOTE: Whichever account that you use for the script needs to be an IPAM Administrator.

I created a Custom Field in IPAM called 'Custom_Field_1' and manually set the value to 'hello world'. After updating the script and running it, it set the SkipScan to True/Yes, effectively disabling scanning for that IP.

pastedImage_0.png

Here is a quick list using the SDK/SWQL Studio of IP Address Properties that can use updated.

pastedImage_0.png

You can download the script here

v v v v v

SWIS_IPAM_Update_Property.ps1