Connection history
- Last UpdatedOct 02, 2024
- 1 minute read
Data Archive stores the history of connections from clients, interfaces, and other applications. This history is stored on your local computer, and data is kept for 1 year, by default. You can access this data to count client connections and associated information for specified time periods, and optionally write the information to a file.
Use the pidiag command to retrieve connection history information, including
-
IP address
-
Name of the executable of the connecting application (product)
-
Time the connection started
-
Time the connection ended (if already disconnected)
-
License information
To see information about pidiag command options for customizing your query, see the Data Archive reference topic Connection history information. For example, the following command returns information about connections during a specified time range. It shows unique product connections between March 30th, 2017, at 10:50 AM and March 31st, 2017, at 10:50 AM
pidiag -connectionhistory -u -s "30-Mar-17 10:50:00" -e "31-Mar-17 10:50:00"
Start time: 30-Mar-17 10:50:00
End time: 31-Mar-17 10:50:00
Product Number of node IPs Node IP address[es]
PI-IN-OS-RMP 1 127.0.0.1
pibasess 1 127.0.0.1
pimsgss 1 127.0.0.1
piarchss 1 127.0.0.1
PIPC Log Server 1 127.0.0.1
Number of unique products: 5