Automate the steps required when Weblogic Server is migrated from physical host to logical host.
emcli relocate_wls -target_name = <domain target name to relocate> -host = <new host of domain> -port = <new port of domain> -dest_agent = <new destination agent> [-input_file = old_to_new_host_mapping_file:"<fully qualified path of old_to_new_host_mapping_file.csv>"] [-no_delete] [-debug] [ ] indicates that the parameter is optional.
Complete Target name of Domain to be migrated
Host Name of the Admin Server running on new host
Port of the Admin Server running on new host
New agent to relocate targets of WebLogic Domain
Fully-qualified path of the CSV-formatted file that contains multiple lines of old host to new host mapping. This is used to update host property of targets from old host to the new host provided in the mapping file.
Each line has the following format:
host1.example.com,newhost1.example.com host2.example.com,newhost2.example.com host3.example.com,newhost3.example.com
Runs the verb in verbose mode for debugging purposes.
By default, node manager targets which contain old host will be deleted. If this option is provided, node manager targets will not be deleted.
The following example migrates a target from an old host to a new host.
emcli relocate_wls -target_name=/EMGC_GCDomain/GCDomain -host=newhost1.example.com -port=7101 -dest_agent=newhost1.example.com:3872 -input_file=old_to_new_host_mapping_file:/tmp/hostmapping.txt