Issue :

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.

Solution :

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:

domainname1: user1
domainname2: user2
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.

Contact Us On WhatsApp