A file $WL_HOME/common/templates/domains/PROD_DOMAIN_template.jar will be
created. 3. Log in as a wls user on the second machine prod02 and copy the template from prod01 to prod02: [wls@prod02]$ scp wls@prod01:$WL_HOME/common/templates/domains/ PROD_DOMAIN_template.jar $WL_HOME/common/templates/domains/
4. Run the following commands to unpack the template:
[wls@prod02]$ cd $WL_HOME/common/bin [wls@prod02]$ ./unpack.sh -template=$WL_HOME/common/templates/ domains/PROD_DOMAIN_template.jar domain=$DOMAIN_HOME
Distributing WebLogic domain files manually
You can simply copy the domain files manually too; just don't forget to edit the nodemanager.domains file and add the domain entry.The $DOMAIN_HOME environment variable points to the /oracle/Middleware/user_projects/domains/PROD_DOMAIN directory. 1. Log in as a wls user on the machine prod02 and copy the domain from prod01:
[wls@prod02]$ mkdir p $DOMAIN_HOME
[wls@prod02]$ scp rp wls@prod01:$DOMAIN_HOME $DOMAIN_HOME/..
2. Edit the nodemanager.domains file:
[wls@prod01]$ vi $WL_HOME/common/nodemanager/nodemanager.domains