How to change the IPs of multiple accounts on a server in one go? The option in WHM is tedious. Hence, it does not serve the purpose.
You need to have ‘root’ SSH access in order to do this.
Create a file and put the concerned accounts in it in the following format:
and so on..
Now execute the following command :
for i in `cat /path/to/file | cut -d: -f1`
/usr/local/cpanel/bin/swapip OLDIP NEWIP $i;
Replace OLDIP and NEWIP with the corresponding values.