6.11 ahfscope
Use the ahfscope
command to manage AHF
Scope.
Syntax
ahfscope [flags] [parameters]
-f name
-i
-q value[,value]
minutes
clob
psec
-C
-D item[,item]
feed
db
input
probes
rootcause
topology
unit
Parameters
Table 6-8 ahfscope Command Parameters
Parameter | Description |
---|---|
|
Specify to read from a file. If you do not specify the file extension, then AHF Scope assumes
|
|
Specify to run
|
|
Specify to configure the connection and queries executed in the
GIMR. Do not use this option with the Specify a comma-delimited list for optional parameters with no
spaces.
Option Option Option |
|
Specify to extract the selected data from the
|
|
Specify to set the debug mode. Use this option to obtain a complete copy of the data received by
AHF Scope stored in a file called Specify a comma-delimited list for optional parameters with no
spaces.
|
Note:
On a Microsoft Windows system, enclose all comma-separated arguments with double-quotes.For example:
"-Dprobes,input"
, or shorter "-Dp,i"
.
AHF Scope Modes
- With a default connection to GIMR database
- Read in a text file with monitoring data (option
-f
). - Parse text file with data and generate JSON object with information similar to query
"diagnosis" (option
-C
).
Default connections initiate a live session and provide real-time monitoring. The connection to the GIMR database is established via JDBC using Oracle JDBC thin driver.
-f
) directs AHF Scope
to analyze textual data extracted from a GIMR or data collected during a live session. This
data is held in a *.mdb
file. A *.mdb
file can be
generated from GIMR using command chactl export repository. An example of obtaining one hour
worth of
data:host:/dir> chactl export repository -format mdb -start '2018-11-22 09:30:00' -end '2018-11-22 10:30:00'
successfully dumped the CHA statistics to location "/hostname/trc/chad/cha_dump_20181122_093000_20181122_103000.mdb"
Using option -C
will start AHF Scope without the GUI front end. AHF Scope
will only parse the mdb
file and generate a JSON file, similar to the
file generated by chadiag
. This data can be used by other tools to indicate
periods of time in which CHA diagnosed problems.
When AHF Scope is invoked without any command line options, AHF Scope uses
JDBC to connect to the GIMR database and operates in a real-time mode as an active monitor.
Connection credentials will be obtained from Oracle Wallet or from the manual input in the
login console. After the connection is established, AHF Scope retrieves a data set with the
most recent N-minutes of data. In a first invocation of AHF Scope the data set contains 60
minutes, unless option -q
is used. In any subsequent invocation the number
of minutes in the data set corresponds to the width of the window selected by the user.
Parent topic: Analyze Issue Root Cause