[Support Tip] OMU 9.10 - During opccfgupld -replace "policy" all policy's are gone
During an upload with opccfgupld -replace "policy name" all the policy's are gone except the one just uploaded with opccfgupld.
The option -replace actually replaces existing configuration entities (Nodes , Message Groups, Node Groups) with the new data but this is different for policies.
Uploading a single policy, even with “-replace” without “-subentity” should not delete all the other policies.
The behavior described here seems a buggy behavior.
use -subentity (opccfgupld -replace -subentity -index ...)
According to the manpages for opccfgupld:
Replace Mode with subentity option: -replace -subentity
This mode does not cause the complete entity to be replaced.
Instead, the smallest identifiable objects of the entity are
replaced if new data is available for them.
If no data with the identifier specified exists, the new data
will be loaded as in Add Mode. Be aware that it is not possible to delete single subentities
(e.g., conditions or applications from an application group).
Usage: This mode will be used if minor changes happened
within an integrated application and the new version
needs to replace e.g., single applications from an
application group or messages to be captured have
been changed and therefore need slightly modified
#/opt/OV/bin/OpC/opccfgupld -replace -subentity /tmp/opccfg_test
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you liked it I would appreciate KUDOs.