Work environment
- FortiGate 60E
- version 7.0.1
Test SNMP trap transmissions with CLI commands
You can test FortiGate’s SNMP Trap sending behavior with CLI commands.
You can send a test SNMP Trap to the configured SNMP manager by running the following command:
diagnose snmp trap send
FW01 # diagnose snmp trap send
Generating test trap...
Test trap successfully sent to snmp daemon.
The packets received by the SNMP manager are as follows.
The result of packet capture by SNMP manager is as follows.
You can also send a test trap with the diagnose test application snmpd 4
command.
The contents of the trap are the same for both commands.
FW01 # diagnose test application snmpd
<integer> Test level.
FW01 # diagnose test application snmpd 111111
SNMP Daemon Test Usage
1: display daemon pid
2: display snmp statistics
3: clear snmp statistics
4: generate test trap (oid: 999)
99: restart daemon
FW01 # diagnose test application snmpd 4
FW01 #
Comments