Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Using API to update IPAM.Subnet ParentID -- not reflected immediately in web console?

$
0
0

I want to reorganize the subnets into the needed subnet groups and supernets, and using the Get-SwisData, I was able to query the IPAM.Subnet data, and from that I got the subnetid and parentid, and other data.

 

I used the following commands to update the subnets' ParentId information:

 

Set-swisobject $swis  "swis://Thanos.ter.teradyne.com/Orion/IPAM.Subnet/SubnetId=221,ParentId=2357" -Properties @{ParentId='2398'}

Set-swisobject $swis  "swis://Thanos.ter.teradyne.com/Orion/IPAM.Subnet/SubnetId=227,ParentId=2357" -Properties @{ParentId='2398'}

Set-swisobject $swis  "swis://Thanos.ter.teradyne.com/Orion/IPAM.Subnet/SubnetId=228,ParentId=2357" -Properties @{ParentId='2398'}

Set-swisobject $swis  "swis://Thanos.ter.teradyne.com/Orion/IPAM.Subnet/SubnetId=237,ParentId=2357" -Properties @{ParentId='2398'}

 

When I use the Get-SwisData to query the data or use SWQL Studio to check the IPAM.Subnet data, I can see that the ParentId did change, but on the web console, the subnet is not in the correct group according to what I moved it to.

 

The way I have found to get it updated was to reboot the SolarWinds server, and then in the web console, about 2 or 3 minutes after it is up, then I see that the subnets are in the group that I wanted it to be in -- initially after SolarWinds is up, and when I check in at the beginning, it still is not there, but after some time, something refreshes and the subnets are moved to the correct place.

 

What is the process that is re-reading from the IPAM.Subnet database to figure out a subnet's details has been updated through the API?  How often does this run?  Would the subnet eventually get moved if I don't do anything?  Else, how can I force an update quickly, besides rebooting the server to restart all the IPAM services?

 

Any help on this is much appreciated.  Thank you.


Viewing all articles
Browse latest Browse all 2677

Trending Articles