3.1.7 Examples of collecting performance data from multiple hosts on which PFM products are not installed
You can use the user-created data collection functionality provided by PFM - Agent for Platform to collect performance data specific to hosts on which PFM products are not installed. You can also monitor the status of multiple hosts at the same time by converting the performance data for the hosts into a single user data file. In this case, a script such as a shell script needs to be prepared because user-created data will be created on each host on which PFM products have not been installed. The following shows an example for collecting performance data from hosts on which PFM products are not installed, and outputting the data as PFM - Agent for Platform record information.
- Organization of this subsection
(1) Collected data
The following example obtains information using the user-created data created in 3.1.6 Examples of collecting information about used ports.
(2) Prerequisites
The prerequisites for collecting performance data from multiple hosts on which PFM products are not installed are as follows:
-
The hosts on which PFM products are installed and the hosts on which PFM products are not installed are connected in a trusted environment to enable the exchange of files (an NFS area shared by the hosts is set).
-
The version of PFM - Agent for Platform on the hosts on which PFM products are installed is 08-11 or later.
(3) Procedures for data collection
The following figure shows the flow of data collection for hosts on which PFM products are not installed.
|
The following uses the numbering in the figure to explain processing. To collect performance data from multiple hosts, perform these steps for each host.
-
Create user-created data for hosts on which PFM products are not installed.
Execute the script to collect performance data, and generate user-created data. The user-created data generated in 3.1.6 Examples of collecting information about used ports is used here.
-
Copy files between remote hosts.
Copy the user-created data created in step 1 to the hosts on which PFM products are installed. Here, user-created data is copied to the /nfshome/ area shared between hosts by using NFS. The following shows an example of the cp command.
Example of the cp command:
# /homework/sample.sh # cp /homework/userdata.tcp /nfshome/userdata.tcp
- Important
-
When collecting user-created data from multiple hosts, make sure that the file names are unique. If file names are duplicated, files might be overwritten during file copying.
-
Execute the jpcuser command on hosts on which PFM products are installed.
Execute the jpcuser command on hosts on which PFM products are installed to convert the user-created data copied in step 2 to user data files. The following shows an example in which the user-created data obtained through steps 1 and 2 from the hosts on which PFM products are not installed is converted into a single user data file.
Example of the jpcuser command:
/opt/jp1pc/agtu/agent/jpcuser/jpcuser PI_UPIB -file user-created-data-1 -file user-created-data-2 -file user-created-data-3
-
Collect record data for hosts on which PFM products are installed.
On the hosts on which PFM products are installed, collect the contents of the user data file output in step 3 as record data.