Description Syntax Example saveDiagnosticImageCaptureFile

3-34 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

3.6.3.3 Example

The following example returns an array of strings named images, which contains a list of the diagnostic image capture files available in the image destination directory, and prints the entries contained in the diagnostic image named diagnostic_image_ myserver_2009_06_15_14_58_36.zip. wls:mydomainserverRuntimeimages=getAvailableCapturedImages Connecting to http:localhost:7001 with userid weblogic ... wls:mydomainserverRuntimeprint images [ diagnostic_image_myserver_2009_06_15_ 14_58_36.zip ]

3.6.4 saveDiagnosticImageCaptureFile

Command Category: Diagnostics Commands Use with WLST: Online

3.6.4.1 Description

Downloads the specified diagnostic image capture from the server to which WLST is currently connected. For more information about the WebLogic Server Diagnostic Service, see Configuring and Using the Diagnostics Framework for Oracle WebLogic Server. In the event of an error, the command returns a WLSTException.

3.6.4.2 Syntax

saveDiagnosticImageCaptureFileimageName, [outputFile]

3.6.4.3 Example

The following example retrieves the list of the diagnostic image captures that are stored in the image destination directory on the server. It then shows two uses of the saveDiagnosticImageCaptureFile command. In the first use, the first diagnostic image capture in the list is downloaded to the local machine using the default output file name. In the second use, the first diagnostic image capture in the list is downloaded to the local machine in the file mylocalimg.zip. wls:mydomainserverRuntimeimages=getAvailableCapturedImages Connecting to http:localhost:7001 with userid weblogic ... wls:mydomainserverConfig saveDiagnosticImageCaptureFileimages[0] Retrieving diagnostic_image_myserver_2009_06_25_12_12_50.zip to local path diagnostic_image_myserver_2009_06_25_12_12_50.zip Connecting to http:localhost:7001 with userid weblogic ... wls:mydomainserverConfig saveDiagnosticImageCaptureFileimages[0], mylocalimg.zip Retrieving diagnostic_image_myserver_2009_06_25_12_12_50.zip to local path mylocalimg.zip Connecting to http:localhost:7001 with userid weblogic ... Argument Definition imageName The name of the diagnostic image capture to download. outputFile Optional. Local path and file name in which the retrieved diagnostic image capture is to be stored. If not specified, this argument defaults to the value of imageName and the current working directory. WLST Command and Variable Reference 3-35

3.6.5 saveDiagnosticImageCaptureEntryFile