Creating services based on command-line scripts
As discussed in Chapter 4, OEM Grid Control provides command-line tools to create, modify, and remove the targets. The most common command-line tool available for target-related configuration is emcli
. The emcli
is shipped as part of the OEM Grid Control installable and is available under the bin
directory of the Oracle Management Server.
emcli create_service verb
The emcli
command-line script provides an easy way to create Generic Services based on service tests and beacons using the verb create_service
. The syntax for the create_service
keyword is as follows:
emcli create_service -name='<ServiceName>' -type='<ServiceType>' -availType='<AvailabilityType>' -availOp='<Operator>' -timezone_region='<GMT Offset>' -beacons='beacon1:beacon1isKey;beacon2:beacon2isKey' -input_file='template:TemplateFileName'
All these fields are mandatory in the case of a service creation based on service tests and beacons. The parameters...