oclumon chmdiag
Use the oclumon chmdiag to get a detailed description of all the supported events and actions, query CHMDiag events/actions sent by various components and generate an HTML or a text report, and to collect all events/actions data generated by CHMDiag into the specified output directory location.
oclumon chmdiag description
Use the oclumon chmdiag description command to get a detailed description of all the supported events and actions.
Syntax
oclumon chmdiag description
[-h]
[-f {text,html} | --format {text,html}]
[--outdir OUTDIR]
Parameters
oclumon chmdiag description Command Parameters
-f {text,html},--format {text,html}
Specify to generate a report in Text or HTML format. Specify the--outdiroption to generate the report in HTML format. The HTML report is an interactive page that supports easy navigation and data filtering. It also includes built-in help that describes the events and actions.--outdirOUTDIR
Specify the directory where the report data in Text or HTML format will be written.
oclumon chmdiag query
Use the oclumon chmdiag query command to query CHMDiag events/actions sent by various components and generate an HTML or a text report.
Syntax
oclumon chmdiag query
[-h]
[-f {text,html} | --format {text,html}]
[--outdir OUTDIR]
[--summary]
[-s S]
[-e E]
[--last LAST]
[--evtids EVTIDS [EVTIDS,...]]
[--actids ACTIDS [ACTIDS,...]]
[--compids COMPIDS [COMPIDS,...]]
[--inputdir INPUTDIR]
[--logdir LOGDIR]
Parameters
oclumon chmdiag query Command Parameters
-f {text,html},--format {text,html}
Specify to generate a report in Text or HTML format. Specify the--outdiroption to generate the report in HTML format. The HTML report is an interactive page that supports easy navigation and data filtering. It also includes built-in help that describes the events and actions.--outdirOUTDIR
Specify the directory where the queried data report in Text or HTML format will be written.--summary
Specify to display only the summary of the query result.-sS
Specify the start timestamp for the query inYYYY-MM-DDTHH24:MI:SS-zformat.-eE
Specify the end timestamp for the query inYYYY-MM-DDTHH24:MI:SS-zformat.--lastLAST
Specify to query logs for a specific duration. Specify the duration usingnd|h|m|s, where:dstands for days.hstands for hours.mstands for minutes.sstands for seconds.ncan be a floating-point number.
For example:
--last 1d2h3m1s.--evtidsEVTIDS
Specify to query only the events with the specified event IDs.--actidsACTIDS
Specify to query only the actions with the specified action IDs.--compidsCOMPIDS
Specify to query all events and actions generated by the specified set of components.--inputdirINPUTDIR
Specify the absolute path of the directory that containschmdiaglog files.--logdirLOGDIR
Specify the absolute path of the directory that contains the script run logs.
Action Status can be one of the following:
- Succeeded: Action completed with success return code.
- Failed: Action returned a non-success return code
- NotRunExceededMaxLimit: Action has not been run as the maximum number of allowed concurrent runs for this action has been exceeded.
- Purged: Action results have been purged, that is, the results have been recycled based on the set retention policy for this Action ID.
- ExceededMaxRunTime: This action has not completed within the configured maximum run time and hence the action has been killed. Whatever the output that gets generated by the command will be captured in the
cmd.outfile.
Example oclumon chmdiag query
oclumon chmdiag query -f html --outdir /outdir/path/
oclumon chmdiag query --last 1h30m
oclumon chmdiag query -s 2018-06-20T10:30:00 -e 2018-06-20T11:30:00
oclumon chmdiag collect
Use the oclumon chmdiag collect command to collect all events/actions data generated by CHMDiag into the specified output directory location. This command will primarily be used by Oracle Trace File Analyzer to collect all events/actions that fall within a problematic window.
Syntax
oclumon chmdiag collect
[-h]
[--outdir OUTDIR]
[--gzip]
[-s S]
[-e E]
[--last LAST]
[--evtids EVTIDS [EVTIDS,...]]
[--actids ACTIDS [ACTIDS,...]]
[--compids COMPIDS [COMPIDS,...]]
[--inputdir INPUTDIR]
[--logdir LOGDIR]
Parameters
oclumon chmdiag collect Command Parameters
--outdirOUTDIR
Specify the directory where the collected data will be written.-gzip
Specify to compress the output directory data into agzipfile.-sS
Specify the start timestamp for the collection inYYYY-MM-DDTHH24:MI:SS-zformat.-eE
Specify the end timestamp for the collection inYYYY-MM-DDTHH24:MI:SS-zformat.--lastLAST
Specify to collect logs for a specific duration. Specify the duration usingnd|h|m|s, where:dstands for days.hstands for hours.mstands for minutes.sstands for seconds.ncan be a floating-point number.
For example:
--last 1d2h3m1s.--evtidsEVTIDS
Specify to collect only the events with the specified event IDs.--actidsACTIDS
Specify to collect only the actions with the specified action IDs.--compidsCOMPIDS
Specify to collect all events and actions generated by the specified set of components.--inputdirINPUTDIR
Specify the absolute path of the directory that containschmdiaglog files.--logdirLOGDIR
Specify the absolute path of the directory that contains the script run logs.
Example oclumon chmdiag collect
oclumon chmdiag collect --outdir /outdir/path/
oclumon chmdiag collect --last 1.5h --outdir /outdir/path/