7.4 REST Service diagcollect API

Learn to use the REST Service diagcollect API.

7.4.1 diagcollect

Use POST requests to view collection details.

Syntax

/tfactl/diagcollect

Returns

Oracle Trace File Analyzer default collection for last one hour for all components.

Or, Oracle Trace File Analyzer collection per JSON data as parameters specified.

Example 7-9 diagcollect–default collection

testuser: {
  "collectionId" : "20190401121115slc13lyb",
  "zipName" : "TFA_DEF_ZIP_20190401121115",
  "tagName" : "TFA_DEF_TAG_20190401121115",
  "message" : [ "Diagcollect request will be processed soon by TFA" ]
}

Example 7-10 diagcollect–JSON data as Parameters

Input:

[{ 
  "components": "-database -asm -tns -crs -acfs -install -cfgtools -os", 
  "timePeriod": "-since n[d|h] | -last n[d|h] | -for date |
        -from date -to date",
  "tagName": "crs_crash_collection",
  "nodeList": "node1,node2",
  "options": "-nocopy | -notrim | -silent | -cores | 
       -collectalldirs | -collectdir dir1,dir2..."
}]

Output:

[{
  "collectionId" : "20180111011121slc12ekf",
  "zipName" : "TFA_DEF_ZIP_20180111011121",
  "tagName" : "TFA_DEF_TAG_20180111011121"
}]