pcemigrate sync
The sync command replicates policy object changes to the other PCE and manages workload changes from either PCE to the other. It can synchronize changes to the following policy objects:
sync
% pcemigrate sync --help
Handles syncing of policy objects changes made on the source PCE
(--from-pce) to the target PCE (--to-pce) and syncs changes to
managed workloads on either side to the other side.
Usage:
pcemigrate sync [flags]
Flags:
--from-pce string Source PCE to sync from.
--to-pce string Destination PCE to sync to.
--forced-restart Restart from the beginning of the
previously failed sync.
--provision Provision changes.
--provision-comments string Provision comments.
--data-base-dir string Base working directory.
--ignore-case Ignore case when matching name,
hostname, or external data set and
external data reference.
--max-create int The maximum number of unmanaged
workloads that can be created.
-1 is unlimited. (default -1)
--skip-workload-sync Skip syncing the workload change.
--ignore-workload-update-failures Continue the sync operation even if
creation/update of some unmanaged
workloads failed in Bulk Api calls.
--concurrency-level string Concurrency level.
Sequential: No concurrency;
Moderate: Main ops on different
objects of the same PCE;
Normal: Main ops on different
objects across PCEs;
Advanced: More ops. (default "normal")
--profiling-level int Profiling level. 1: Overall execution,
2: Down to specific type of operations,
3: Down to operation on object types.
(default 1)
-cpu-profile-filename string The name of the file where to save
the pprof CPU profile date.
--mem-profile-filename string The name of the file where to save
the pprof memory profile date.
--stop-at-step string This command wil end after the step
specified:
none|export-src.|
analyze-src|delete-tgt|
update-tgt|analyze-tgt
delete-src|update-src
(default "none")
-h, --help The help for sync
Global Flags (not relevant for all commands):
--config-file string The path for the pcemigrate
pce.yaml file.
--debug Enables debug-level logging for
troubleshooting.
--log-file string The path for the pcemigrate log file.
(default "pcemigrate.log")
--migrate-op When migrate-op is set to true,
the Import operation
is interpreted as a copy of objects
from a different
PCE as part of a PCE migration
operation.
--no-prompt Removes the user prompt when
used with update-pce.
--pce string The PCE to use in the command if
not using the default PCE.
--update-pce This command will update the PCE
after a single user prompt.
The default will just log potential
changes to workloads.
--verbose When verbose is enabled, includes the
raw API responses.
This makes pcemigrate.log increase
in size significantly.