...
The systeminsight
command has four subcommands: profile,
metrics
, retentionPolicy
and test
.
profile
To use System Insight, you must determine the profile that you want to apply, which you configure using the systeminsight profile
command. The subcommands described below enable you to manage a profile.
Note | ||
---|---|---|
| ||
The System Insight service must be running before you create, modify or remove a profile. You start the service using the command |
create
Use systeminsight profile create
to create a System Insight profile. To create a profile, you must specify the folder in which you want to save the profile, the profile name, a description of the profile, and the retention policy for the profile.
...
Note | ||
---|---|---|
| ||
After you have created a profile, the qualified profile name that is thereafter required when you use the |
remove
Use systeminsight profile remove
to delete a specific System Insight profile.
...
Option | Desription |
---|---|
-profile <qualified name of profile> | Provide the qualified name of the profile that you want to delete. |
[-f, --force] | Use this option to forcibly remove a profile. |
addFilter
Use systeminsight profile addFilter
to add a filter to the filter list. To add a filter, you must specify the qualified profile name of the profile to which you want to add the filter, and the regular expression that you want to include in the filter. You can also add the tag value regular expressions that you want to include.
...
Info | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
A simple rule:
A rule which requires forced addition:
Example of a filter including tag value reglar expressions:
|
removeFilter
Use systeminsight profile removeFilter
to delete a filter from the filter list in a profile. You must specify the profile that contains the filter, and the filter that you want to delete.
...
Option | Description |
---|---|
-profile <qualified name of profile> | Specify the qualified name of the profile that contains the filter that you want to delete. |
-id <filter id> | Specify the filter that you want to delete. |
disable
Use systeminsight profile disable
to set a profile to disabled status. You must provide the qualified name of the profile that you want to disable.
enable
Use systeminsight profile enable
to set a profile to enabled status. You must provide the qualified name of the profile that you want to enable. If a profile is not set to enabled, you cannot use the filters it contains to produce the required statistics.
list
Use systeminsight profile list
to list all the profiles, or to list all the filters that have been added for a specific profile. You are also provided with the retention policy that applies to each profile and whether the profile is enabled or disabled.
...
Option | Description |
---|---|
-profile <qualified name of profile> | Specify the qualified name of the profile that contains the filters. |
[-j, --json] | Use this option if you want to print the filters in json output format. |
metrics
Use systeminsight metrics
to list all of the metrics available on the running system, to which you can apply a filter in order to produce statistics using System Insight. Each metric is listed with the available tags and tag values.
...
Info | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
If you have a workflow with a Workflow Bridge processing agent, the metrics available may look as follows:
|
retentionPolicy
You can also list the retention policies.
Note | ||
---|---|---|
| ||
The System Insight service must be running before the |
list
Use systeminsight retentionPolicy list
to list all the retention policies in place.
...
Info | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
test
Use systeminsight test
to get a list of the filters for a metric. Specifying a tag refines the metric, and is optional.
...
Info | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If you have the following four filters in place:
Example 1 If you test which filters match the metric name "custom.system" by entering the following:
The output is as follows:
If you test which filters match the metric name "custom.system" and the tag name and tag value pair tag1=aaa by entering the following:
The output is as follows:
If you test which filters match the metric name "custom.system" and the tag name and tag value pairs tag1=aaa and tag2=bbb, by entering the following:
The output is as follows:
If you test which filters match the metric name "custom.system" and the tag name and tag value pairs tag1=aaa, tag2=bbb and tag3=ccc, by entering the following:
The output is as follows:
|
Return Codes
Listed below are the different return codes for the systeminsight
command:
...