monitor
Run the monitor command on the server that you want to monitor. When the tool is monitoring the server, it generates comma-separated value (CSV) files in the specified directory.
Purpose
Monitor a running server to produce CSV files that contain runtime information about the event and agent types. When you use the monitor command, you must specify both the poll period and the location to write the files.
When the tool monitors the server, it generates CSV files in the location that you specify. For each agent or event type that is monitored, a file is generated with the file names in the form of <event-type>.EventStats.csv or <event-type>.<agent-type>.AgentStats.csv.
Each file has the following columns:
- elapsed_time
- The time that is elapsed since the monitoring began, expressed in seconds.
- timestamp
- The date and time.
- total_count
- The number of invocations across all partitions.
- average_time
- The total time in milliseconds that an event or agent is processed, divided by number of partitions.
Each partition has the following columns:
- count
- The number of invocations for the partition.
- time
- The time that is spent on processing the event or agent.
The various _header.csv and _data.csv files are combined in the results subdirectory. The results subdirectory contains eight files.
Each agent and event has a corresponding file. The AgentStats.csv and EventStats.csv files contain the following information:
- The number of invocations across all of the partitions of the server (Count.csv).
- The number of invocations per second across all of the partitions of the server (CountSec.csv).
- The total time that an event or agent is processed, divided by the number of partitions across the server (AverageTime.csv).
By default, the server that you monitor is your default server. You can use the optional parameters to connect to and monitor a different server.
Syntax
pmiManager monitor outputDirectory pollPeriod
[--propertiesFile=properties_file]
[--username=username]
[--password=password]
[--host=hostname]
[--port=port]
[--keyStoreLocation=keystore_location]
[--keyStorePassword=keystore_password]
[--readTimeout=timeout_value]
[--sslProtocol=sslProtocol]
[--trustStorePassword=truststore_password]
[--trustStoreLocation=truststore_location]
[--disableSSLHostnameVerification=true|false]
[--disableServerCertificateVerification=true|false]
Description
| Parameter | Description |
|---|---|
| outputDirectory | The directory where the CSV files are written to. A sub directory called 'results' is also created in this directory. |
| pollPeriod | The period, expressed in seconds, that the manager command polls the server. For example, if you specify a pollPeriod of 10 seconds, the monitor command polls the server every 10 seconds until you stop the process. |
| Parameter | Description |
|---|---|
| propertiesFile | The path to a properties file from which to read properties. If you do not specify a value, the default path to the connection.properties file in the runtime/ia/etc directory is used. |
| username | The user name of a user who has the administrator role. |
| password | The password of a user who has the administrator role. |
| host | The default host name is localhost. To change the host name, specify the fully qualified name of the remote server. For example: myserver.mycompany.com. |
| port | The default port value is 9443. To change the port, specify the port of the remote server. |
| trustStorePassword | The password for remote Secure Sockets Layer (SSL) authentication. |
| trustStoreLocation | Location of the truststore (javax.net.ssl.trustStore). Default is cisDev/resources/security/key.jks in the servers directory. |
| disableSSLHostnameVerification | This parameter is used for remote connections only. If set to true, it disables SSL host name verification. If no value is specified, it defaults to the value in the properties file that is specified by the --propertiesFile parameter. If no value is specified by that parameter, it defaults to false. |
| disableServerCertificateVerification | This parameter is used to disable server certificate verification. If you set this parameter to true, the client does not check whether the certificate presented by the server is trusted. If the server is not trusted, authentication credentials and other user information might be passed on through the JMX connection. This parameter is optional. If not specified, it uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, it defaults to false. |
| keyStoreLocation | The location of the keystore. If you do not specify a value, this parameter uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, no keystore is used. |
| keyStorePassword | The keystore password. If you do not specify a value, this parameter uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, you are asked to provide a password interactively. |
| readTimeout | The amount of time expressed in milliseconds that the utility waits for a response from the server before closing a connection. This parameter is optional. If you do not specify a value, it uses the value that is specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, the default value is 60000 (1 minute). |
| sslProtocol | The SSL protocol for the connection. If you do not specify a value, this parameter uses the value in the properties file specified by the --propertiesFile option. If no value is specified on the command line or in the properties file, the value "TLSv1.2" is used. |