3 Managing Oracle ASR with EMCLI Commands

This chapter describes how to manage Oracle Auto Service Request (ASR) using the EMCLI commands.

From the EMCLI console, the following Oracle ASR commands are available:

em_asr_asset_actcred
em_asr_asset_activation_details
em_asr_asset_activation_job
em_asr_asset_exclude_list
em_asr_asset_include_list
em_asr_deregister
em_asr_register

With these commands, you can perform the following tasks:

3.1 Enable Oracle ASR for Enterprise Manager

This command enables ASR Manager functionality in Enterprise Manager. My Oracle Support (MOS) credentials are used to activate any new asset discovered for ASR.

Only the Enterprise Manager super user can do this operation.

emcli em_asr_register -mosid="My Oracle Support (MOS) user name" [-passwd="MOS user password"] [-dontStartJob]

Where:

-mosid - Identifies the MOS user name.

-passwd - Identifies the MOS user password. If the password is not provided, then you will be prompted for it at the command line.

-dontStartJob - Sets a flag so that the ASR activation job is not started as part of registration. If this parameter is not used, then the activation job will start automatically for all eligible targets in the include list.

3.2 Update Activation Credentials

This command adds or removes the ASR asset activation credential.

emcli em_asr_asset_actcred [-add] [-remove] [-targetName="target name"] [-targetType="target type"] [-mosid="My Oracle Support (MOS) user name"] [-passwd="MOS user password"]

Where:

-add - Adds an ASR asset activation credential.

-remove - Removes an ASR asset activation credential.

-targetName - Identifies the target name.

-targetType - Identifies the target type.

-mosid - Identifies the My Oracle Support (MOS) user name.

-passwd - Identifies the MOS user password.

Note:

You may be prompted to enter your MOS user password.

3.3 Manage the ASR Activation Job

This command manages the ASR asset activation job and shows the job status. Use this command to start or reschedule the job:

emcli em_asr_asset_activation_job [-start] [-rescheduleNow]

Where:

-start - Starts the ASR asset activation job to run daily (including today) at the current time, if it is not already started.

-rescheduleNow - Reschedules the ASR asset activation job to run daily (including today) at the current time, if it is already scheduled.

em_asr_asset_activation_details

3.4 Disable Oracle ASR for Enterprise Manager

This command disables ASR Manager functionality from Enterprise Manager by removing the ASR registration.

emcli em_asr_deregister [-all] [-default]

Only the Enterprise Manager super user can do this operation.

Where:

-all - Removes the user ASR registration and all incident rules associated to ASR.

-default - Removes the user ASR registration. Does not remove the incident rules associated to ASR.

3.5 Manage ASR Assets

This command adds or removes target(s) to the ASR exclude list:

emcli em_asr_asset_exclude_list [-add] [-remove] [-all] [-targetName="target name"] [-targetType="target type"]

Where:

-add - Adds a target(s) to the ASR exclude list.

-remove - Removes a target(s) from the ASR exclude list.

-all - Sets a flag to select all eligible targets.

-targetName - Identifies the target name.

-targetType - Identifies the target type.

This command adds or removes a target(s) to the ASR include list.

emcli em_asr_asset_include_list [-add] [-remove] [-all] [-targetName="target name"] [-targetType="target type"]

Where:

-add - Add a target(s) to the ASR include list.

-remove - Removes target(s) from the ASR include list.

-all - Sets a flag to select all eligible targets.

-targetName - Identifies the target name.

-targetType - Identifies the target type.