Database Reference
In-Depth Information
Listing 6-13. Expand the properties to be updated
emcli>myinst.props({'LifeCycle Status':'Development', 'Location':'COLO', 'Comment':'Test EM'})
emcli>myinst.setprops(show=True)
Target: em12cr3.example.com (host)
Property: Location
Value: COLO
Target: em12cr3.example.com (host)
Property: LifeCycle Status
Value: Development
Target: em12cr3.example.com (host)
Property: Comment
Value: Test EM
TARGET_TYPE.............................TARGET_NAME
PROPERTY_NAME.................PROPERTY_VALUE
================================================================================
host....................................em12cr3.example.com
target version................6.4.0.0.0
os............................Linux
platform......................x86_64
location......................COLO
comment.......................Test EM
lifecycle status..............Development
We did not change the target filter. The only things we changed about the myinst instance were the properties
to be updated. The myinst.props() function changed the properties to be applied to the targets. The output showed
that three different properties for the same target were updated.
Let's assume that we want the same three properties applied to additional targets but the only targets we want
them applied to are the host and agent targets of the Enterprise Manager OMS server. We will leave the properties
alone, but we'll update the target filter to include the additional target type of oracle_emd , as shown in Listing 6-14.
Listing 6-14. Change the target type to include the agent target
emcli>myinst.filt(namefilter='^em12cr3.example.com.*$', typefilter='host|oracle_emd')
emcli>myinst.show()
TARGET_TYPE.............................TARGET_NAME
PROPERTY_NAME.................PROPERTY_VALUE
================================================================================
host....................................em12cr3.example.com
target version................6.4.0.0.0
os............................Linux
platform......................x86_64
location......................COLO
comment.......................Test EM
lifecycle status..............Development
Search WWH ::




Custom Search