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.

Move IPAM Subnets into different folder directory via the API

I needed to move several IPAM subnets into other directories after import. It would have been time consuming to do this through the Web Console. Built this script to make these changes via the API.

The downside is that the changes are only reflected after you restart all of the Orion services on your main polling engine (or any HA and additional web servers). So best to make several changes at the same time, then restart services at the end. I did notice that it took around 10 minutes for the dust to settle before I could navigate to the IPAM Manage Subnets Page.

Lines to update in the script

  • Line 38: Hostname/IP of your Orion server 
  • Line 39: Subnet you would like to move. Does not require the full subnet. Partial octets are ok if needing to move several subnets into the same folder. (e.g. 10.10, or 10.10.10.0)
  • Line 40: The name of the folder you want the subnets moved into.

API_IPAM_Change_Heirarchy.ps1

Parents Reply Children
No Data