CLI cookbook: obtaining CPU performance information using CLI
There are times when it may be desirable to obtain analytics information about the Delphix Engine CPU, which is formatted differently than what is available from the Delphix User Interface (UI).
Troubleshooting
You can obtain running information by looking at the GUI > Resources > Performance Analytics. You will see the graph for CPU if the CPU is selected.
When logged into the Delphix Engine command-line interface (CLI) as delphix_admin, you can see the default analytics gathered:
|
Resolution
You can also obtain some information from the CLI, using the Performance Analytics Tool API Reference.
In order to view this information, you must log in with a user that had Delphix Admin privileges.
Option 1: Running an Existing Analytic
1.Login as admin and run analytics.
|
2. To see the available properties for CPU analytics, select
and list the default.cpu.
|
3. Specify setopt trace=true
in order to see the CpuUtilDatapointStream
datapoints.
|
4. Enter getData
and commit
to obtain the data gathered.
|
Option 2: Creating a New Analytic
1. Log in as admin and then run analytics
2. Run create
and list
the properties.
|
3. Set the required Properties name
, collectionAxes
and statisticType (if you are unsure you can run help for options) for=""> for options)>
|
4. Commit
to being data collection.
|
5. Use ls
to see the new test.cpu
analytic
|
6. Select test.cpu
and use getData
and commit
to see the data gathered.
|
7. Use delete
to stop the collection and delete test.cpu
|