I need to come up with a script that processes a list of defined nodes and move each from one NPM group to another. This will be done on a regular interval as the typography changes from week to week.
I attempted to write a test script (in Perl) to perform this via making the changes in the database, but ended up with strange results.
My script located the the member's records in the ContainerMemberDefinitions and ContainerMemberSnapshots table and updated the rows to change to a different ContainerID.
Afterwards, the nodes still showed up only in the original group on the Group Summary page. But when you go to manage the groups, the nodes would show in the list of both groups. And when you go to "Add & Remove Objects", the nodes would only be in the destination group.
Am I missing other tables that need to be changed to move nodes from one group to another?
How can this be done in an automated manner?
The manual process to move these nodes from one group to another is too time consuming.
Any help is appreciated.