Book Image

Oracle Enterprise Manager Grid Control 11g R1: Business Service Management

Book Image

Oracle Enterprise Manager Grid Control 11g R1: Business Service Management

Overview of this book

Table of Contents (16 chapters)
Oracle Enterprise Manager Grid Control 11gR1: Business Service Management
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface

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...