Technical Tip: How to sniff traffic on FortiClient EMS and send the resulting pcap file on a remote server for analysis
| Description | This article describes how to sniff network traffic on the interfaces of FortiClient EMS v7.4.5 (Linux VM). This is intended for immediate troubleshooting (to confirm traffic requests are reaching the FortiClient EMS device and if the device responds correctly) or to create a local .pcap file for further analysis. |
| Scope | FortiClient EMS on Linux. |
| Solution | In this scenario, the administrator intends to check if SNMP queries are reaching FortiClient EMS.
First, connect to the SSH console of the EMS:
Next, check the FortiClient EMS network configuration (interface name, IP address, and gateway) using the following general-purpose command:
Start the snmpwalk or MIB browser on the workstation to SNMP poll (using UDP on port 161) the FortiClient EMS Server on its appropriate interface (e.g., IP address of interface ens6).
Start capturing network traffic (sniff) on FortiClient EMS on interface ens6 for UDP port 161 for immediate troubleshooting:
Note: The filter syntax is following rules of TCPDUMP reference: PCAP filter 7.
The administrator can also create a file for later transfer and analysis on Wireshark on a workstation or server:
Once done, the administrator can remove generated files one by one in /home/ems/exchange folder:
Related articles: |




