Help Center/ Migration Center/ MgC Agent Usage Guide/ Collector-based Discovery/ Configuring Collector Parameters/ Network and Process Collector (agent-collector-server-netstat-process)
Updated on 2025-08-25 GMT+08:00

Network and Process Collector (agent-collector-server-netstat-process)

This collector collects process details and process-level network associations from Windows and Linux servers. This collector can run only on Windows.

The collector uses the Windows Management Instrumentation (WMI) and SMB protocols to communicate with the Windows servers to be collected. The following required ports must be enabled on the firewall of these Windows servers:

  • WMI: TCP port 135 and a high-range random port (recommended: 1024 to 65535)
  • SMB: TCP port 445
  • The collector collects process details and long-lived network connections between processes using netstat.
  • During the collection, a shared folder named MgC_Agent_Share_safe_to_delete+<random-data-source-ID> is created in drive C on the Windows servers for temporarily storing the collected network and process information. Only the Administrators group can operate the folder. The folder will be automatically deleted after the collection is complete. If the task is interrupted unexpectedly, you can manually delete the folder.
  • To improve collection stability and ensure consistent results, you are advised to use nodes' private IP addresses for collection. Using public IP addresses may increase the risk of collection failures or result in data inconsistencies.
Table 1 Parameters for configuring the network and process collector

Parameter

Mandatory

Configuration

process_only

No

Specify whether to collect only process information. The options are true and false. true indicates that only process information is collected. false indicates that process and network information is collected. The default value is false.

duration

No

Specify the collection duration. If the duration exceeds the defined limit, the collection stops. The unit can be m (minute), h (hour), or d (day). The value is an integer greater than or equal to 1. The unit must be specified. If this parameter is not set, the default value 1m is used.

interval

No

Specify the collection interval, in minutes. The value is an integer ranging from 1 to 30. If this parameter is not set, the default value 1m is used.

output_path

No

Enter the path for storing the CSV output file. For example, C:\MgC-Agent\test.

The default path is C:\MgC-Agent\data\collection-result\agent-collector-server-netstat-process.

Related Operations

If a collection task fails, you can perform the following operations to obtain the existing collection records:
  1. In the task list, click the drop-down arrow to obtain the data source ID of the task. If the data source ID is not found, submit a service ticket to contact technical support for fault locating and rectification.

  2. Locate the failed task and click View Storage Path in the Operation column to obtain the CSV file path.
  3. Navigate to the MgC Agent installation directory and go to the path of the obtained CSV file. In the path, search for the CSV file with the same name as the obtained data source ID. If the CSV file is not found, the collection was not completed. In this case, you are advised to create a collection task again.