You can use the ldm migrate-domain -p filename command to initiate a non-interactive migration operation.
The file name you specify as an argument to the –p option must have the following characteristics:
The first line of the file must contain the password.
The password must be plain text.
The password must not exceed 256 characters in length.
A newline character at the end of the password and all lines that follow the first line are ignored.
The file in which you store the target machine's password must be properly secured. If you plan to store passwords in this manner, ensure that the file permissions are set so that only the root owner or a privileged user can read or write the file (400 or 600).