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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s