Description |
This article describes how to troubleshoot the behavior where link state SNMP traps are not received by FortiNAC when a host connects to a managed FortiSwitch.
Symptoms: - Host record does not appear online after connection. - Link State trap events are not listed in FortiNAC. - tcpdump from appliance CLI indicates traps are not received. - Online status is updated after L2 poll of the FortiSwitch. |
Scope | FortiNAC version: 8.x and upper. |
Solution |
1) Verify the FortiSwitch is sending traps via the FortiSwitch CLI:
The output should show the FortiSwitch sending traps to the FortiNAC IP address:
2) If the FortiSwitch is sending traps, verify if the FortiNAC received the traps using tcpdump from the FortiNAC CLI.
FortiLink Mode:
Standalone:
- Source IP is the FortiGate (10.12.240.2).
13:02:16.847645 IP 10.12.240.2.673 > 10.12.240.7.162: C="fortinet" Trap(167) .1.3.6.1.4.1.12356.106 169.254.2.2 linkUp 502198510 .1.3.6.1.2.1.2.2.1.2.5="port5" .1.3.6.1.2.1.2.2.1.1.5=5 .1.3.6.1.2.1.2.2.1.7.5=1 .1.3.6.1.2.1.2.2.1.8.5=1 .1.3.6.1.4.1.12356.106.1.1.1.0="XXXXXXXXXXXXXX" .1.3.6.1.2.1.1.5.0="XXXXXXXXXXXXXX"
3) If FortiNAC is not receiving the traps, verify the policy configuration in the FortiGate. In the FortiGate GUI, navigate to Policy & Objects -> IPv4 Policy.
4) If the FortiNAC is receiving the traps, verify the system is processing them using the debug tools in FortiNAC CLI for SNMP activity:
nacdebug –name SnmpV1 true
Example output: <...> pdu=V1TRAP[reqestID=0,timestamp=58 days, 2:59:45.10,enterprise=1.3.6.1.4.1.12356.106,genericTrap=3,specificTrap=0, VBS[1.3.6.1.2.1.2.2.1.2.5 = port5; 1.3.6.1.2.1.2.2.1.1.5 = 5; 1.3.6.1.2.1.2.2.1.7.5 = 1; 1.3.6.1.2.1.2.2.1.8.5 = 1; 1.3.6.1.4.1.12356.106.1.1.1.0 = XXXXXXXXXXXXXX; 1.3.6.1.2.1.1.5.0 = XXXXXXXXXXXXXX ]], messageProcessingModel=0, securityName=fortinet, processed=false, peerAddress=10.12.240.2/673, transportMapping=org.snmp4j.transport.DefaultUdpTransportMapping@54f74762, tmStateReference=null]
yams.SnmpV1 FINER :: 2019-09-30 13:02:16:848 :: receiveTrap() name = 0.3 ip = 169.254.2.2 dbid = 519 possibleEventTypes = 0.3
yams.BridgeManager INFO :: 2019-09-30 13:02:27:689 :: lost client count = 0 new client count = 0 Link Up interface count = 1 Add Back to Queue = true
|
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 2023 Fortinet, Inc. All Rights Reserved.