I'm working on an ongoing script to migrate accounts between cpanel servers. I have the entire script written and working wonderfully except for ensuring dedicated IPs are assigned. I haven't yet found a good way to accomplish this. The only way I have found so far is updating /var/cpanel/userdata/$user/$domain(s), /var/cpanel/users/$user, running /scripts/rebuildhttpdconf and then editing the A record in the DNS zone. This seems like a long drawn out process and doesn't seem like it would be the most reliable way. Does anybody know a better way to script this?