Re: How can I blank out lifecycle status with EMCLI?
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