You can use hostfile file which containts name or ip address of nodes. Nodes name are in line by line . If you add or remove name of node and check if node in run or nor. The command are shell$ mpirun --hostfile my_hostfile -np 4 my_parallel_application