configure_log_archive_locations

Configures Log Archive Locations for the root target and its children. To configure Log Archive Location for a target, you should know the configuration parameters, like host name, from where the log archive files are accessible, the credentials to access the host, and the location of the log archive files.

Format

emcli configure_log_archive_locations
      -root_target_name="<target_name>"
      -root_target_type="<target_type>"
      [-archive_config_file="<target_archive_config_file_location>"]
      [-no_update]
      [-debug]

[ ]  indicates that the parameter is optional.

Options

  • root_target_name

    Name of the root target. A configurable tree target hierarchy will be created with this root target. Example root targets are WebLogic Domain and Fusion Application Instance.

  • root_target_type

    Target type of the root target name.

  • archive_config_file

    Location of the archive config file. Every line in this file should contain the following 7 fields in the same order.

    target_name,target_type,host_target_name,host_cred_type,host_cred_name or new_cred_user_name,new_cred_password,archive_dir_location

    • target_name

      If this target is part of the root hierarchy, then this target and it's children will be updated with the archive parameters specified.

    • target_type

      Target type of the above target.

    • host_target_name

      Host name from where archive location is accessible. The Management Agent monitoring this target should have Oracle Fusion Middleware plug-in release 12.1.0.4 or later installed.

    • host_cred_type

      Credential type. Possible values are preferred_credentials or named_credentials or new_credentials.

    • host_cred_name

      Credential set name for preferred_credentials type or Named credential name for named_credentials type.

    • new_cred_user_name

      New credential user name for new_credentials type.

    • new_cred_password

      New credential password for new_credentials type.

    • archive_dir_location

      Directory location where log archive files available.

  • no_update

    If this flag is provided, targets which are already configured with the archive properties, will not be updated again.

  • debug

    Runs the verb in verbose mode for debugging purposes.

Example

The following example configures Log Archive Locations for Fusion Instance target and its children.

 emcli configure_log_archive_locations 
         -root_target_name=fa1 
         -root_target_type=fusion_apps_instance 
         -archive_config_file=/scratch/config.txt 

Sample Archive Config File:

In the case of new credentials:

fa1,fusion_apps_instance,adc123.oracle.com,new_credentials,user1,pwd1,/scratch/fa1

In the case of preferred credentials:

fa1,fusion_apps_instance,adc123.oracle.com,preferred_credentials,credential_set1,,/scratch/fa1

(Because this is preferred credentials, ',,' means the new_cred_password field is not valid and therefore skipped.)