Enterprise Manager Generic (MOSC)

MOSC Banner

Re: How can I blank out lifecycle status with EMCLI?

edited Jan 28, 2016 5:40PM in Enterprise Manager Generic (MOSC) 3 comments

Hiya

I have tested as follows:-

1) use emcli to set a new lifecycle status:

[oracle@machine1-pc ~]$ emcli set_target_property_value -property_records="V11204_machine1:oracle_database:LifeCycle Status:Test"

Properties updated successfully

2) Query that it is set correctly:

[oracle@machine1-pc ~]$ emcli list -resource="TargetProperties" -search="TARGET_NAME ='V11204_machine1'" -column="PROPERTY_NAME,PROPERTY_VALUE" -search="PROPERTY_NAME = 'orcl_gtp_lifecycle_status'"

PROPERTY_NAME                                                     PROPERTY_VALUE

orcl_gtp_lifecycle_status                                         Test

Rows:1

3) Now set the lifecycle status to null:

[oracle@machine1-pc ~]$ emcli set_target_property_value -property_records="V11204_machine1:oracle_database:LifeCycle Status: "

Properties updated successfully

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center