EM12C – Changing Target Properties in Mass

Found a neat way to modify many targets and thier properties in a Mass update mode.

Log into OMS EMCLI – $OMS_HOME/bin/emcli (see previous post)

In OMS, create a dynamic Group –> setup, add target, dynamic Group

In OMS, With Dynamic Group you can have many selection criteria (i.e. Location, dept, host, etc).

In OMS, Save Dynamic Group (Select OK – 2 times)

In command line (OMS machine, OMS_HOME) – Example – Group = change, and changing the location of the group members.

ex: ./$OMS_HOME/emcli set_target_property_value -property_records=”change:composite:Location:Princeton – Office” -propagate_to_members

This will change the group called “change” which is a composite (Group), and the location to Princeton – Office

./emcli set_target_property_value -property_records=”change:composite:Location:Princeton – Office” -propagate_to_members
Properties updated successfully