create_diag_snapshot
Creates a diagnostic snapshot for specified targets.
Format
emcli create_diag_snapshot -name=<name> -desc=<description> -start_time=<yyyy/MM/dd HH:mm> -end_time=<yyyy/MM/dd HH:mm> -targets=<type1:name1;type2:name2;…> [-diag_type_odl_target_types=<type1;type2; ….>] [-diag_type_odl_online_logs=<true|false>] [-diag_type_odl_offline_logs=<true|false>] [-diag_type_jvmd_target_types=<type1;type2; ….>] [-diag_type_jvmd_properties="<pname1:pval1;pname2:pval2;…>"] [-debug] [ ] indicates that the parameter is optional
Options
-
name
Name of diagnostic snapshot to be created. Make sure that a diagnostic snapshot does not exists for the specified name.
-
desc
Description of the diagnostics snapshot.
-
start_time
Start time for collecting the logs. The snapshot will contain all logs between the start time and end time. Make sure that the duration is valid for the snapshot.
-
end_time
End time for collecting the logs. The snapshot will contain all logs between the start time and end time. Make sure that the duration is valid for the snapshot.
-
targets
Target type and target name list for the snapshot. This list can contain all targets for the specific system. User can choose specific target types in optional options for selected diagnostic types.
-
diag_type_odl_target_types
Target type list for the Oracle Diagnostic Logging (ODL) diagnostic type. You can select a subset of target types from the target list for snapshot creation.
-
diag_type_odl_online_logs
By default, online logs are collected for a snapshot. You can choose to collect online, offline, or both logs for the Oracle Diagnostic Logging (ODL) diagnostic type.
-
diag_type_odl_offline_logs
By default, offline/archive logs are not collected for a snapshot. You can choose to collect online, offline, or both logs for the Oracle Diagnostic Logging (ODL) diagnostic type.
-
diag_type_jvmd_target_types
Target type list for the JVMD diagnostic type. You can select a subset of target types from the target list for snapshot creation.
-
diag_type_jvmd_properties
Properties list to collect logs for the JVMD diagnostic type.
-
debug
Runs the verb in verbose mode for debugging purposes.
Examples
Example 1
This example creates a snapshot for EMGC_DOMAIN and EMGC_OMS1 targets with offline logs. The target types (weblogic_domain and weblogic_j2eeserver) belong to the Oracle Diagnostic Logging (ODL) diagnostic type.
emcli create_diag_snapshot –name=wls_snapshot –desc= “Snapshot for Weblogic Domains and Server" –start_date="2012/10/02 10:30" -end_date="2012/10/03 22:30" –targets="weblogic_domain:/EMGC_EMGC_DOMAIN/EMGC_DOMAIN; weblogic_j2eeserver: /EMGC_EMGC_DOMAIN/EMGC_DOMAIN/EMGC_OMS1"
Example 2
This example creates a snapshot for the weblogic_j2eeserver target type with offline logs. You can filter the target types on top of the target list.
emcli create_diag_snapshot –name=wls_snapshot –desc=“Snapshot for Weblogic Domains and Server" –start_date="2012/10/02 10:30" -end_date="2012/10/03 22:30" –targets="weblogic_domain:/EMGC_EMGC_DOMAIN/EMGC_DOMAIN; weblogic_j2eeserver:/EMGC_EMGC_DOMAIN/EMGC_DOMAIN/EMGC_OMS1; weblogic_j2eeserver:/EMGC_EMGC_DOMAIN/EMGC_DOMAIN/EMGC_ADMIN_SERVER" -diag_type_odl_target_types="weblogic_j2eeserver" -diag_type_odl_offline_logs=true