| Description |
This article describes how to terminate a closed CLI session while running a ping with a large number of repeat-count.
When a terminal session is unexpectedly closed while running ping with a large number of repeat-count, it still sends ICMP requests to the configured server and there does not seem to be any way to stop sending the packets.
execute ping-options view-settings |
| Scope | FortiGate. |
| Solution |
Run the command 'fnsysctl ps -ef', to find PIDs of '/bin/newcli' processes related to the ping with a large number of repeat-count.
Examples:
fnsysctl ps -ef
# kill -9 1145
It is also possible to use only one command to kill all the process instances of a specific process.
fnsysctl killall <process name>
For example to kill all 'newcli' kills, proceed at once:
fnsysctl killall newcli
Note: The 'fnsysctl' command is only available for administrator accounts with super_admin privilege. Running a 'killall' CLI command on a process can make the system unstable.
Related articles: Technical Tip: How to restart/kill one or several processes on the FortiGate with CLI commands Technical Tip: Find and restart/kill a process on a FortiGate by the process ID (PID) via pidof |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.