Created on
‎09-28-2018
01:42 AM
Edited on
‎09-27-2024
08:25 AM
By
Anthony_E
Description
This article describes basic steps to troubleshoot SNMP Communication Issues.
Scope
FortiNAC, FortiNAC-F.
Solution
- Confirm community string is correct.by navigating to Network -> Inventory, select Validate Credentials button under the Credentials tab for the device model in Topology.
In FortiNAC-F 7.4 and greater versions it is possible to validate SNMP credentials through CLI:
diagnose network device test-snmp ip <ip>
Usage: diagnose network device test-snmp (ip <ip> | mac <mac> | dbid <dbid> | device-name <device-name> | group <group> | container-name <container-name> | class-id <class-id> | attribute-name <attribute-name> | all) all select all devices
attribute-name <attribute-name> select by device attribute
class-id <class-id> select device(s) by class in the range 0-56
container-name <container-name> select device by container name
dbid <dbid> select device by database Id
device-name <device-name> select device by name
group <group> select device(s) by group name
ip <ip> select device by IP Address
mac <mac> select device by MAC Address
- Confirm SNMP credentials used has read-write permissions. Read-only permissions will still pass credential validation, yet will be unable to change configurations.
User Name
Authentication Protocol (MD5 or SHA1)
Authentication Password
Privacy Protocol (DES or AES-128. Used only for AuthPriv)
Privacy Password (Used only for AuthPriv)
- Determine the nature of the failure by looking for SNMP errors using one or both of the following methods:
- SNMPv1:
- SNMPv2c:
- SNMPv3:
If the following response is returned, NAC does not have all the required permissions:
SNMPv2-SMI::mib-x.x.x.x.x.x.= No more variables left in this MIB View (It is past the end of the MIB tree)
In FortiNAC-F 7.4 and greater versions perform a snmpwalk using the following command:
diagnose network snmp walk <ip>
Usage: diagnose network snmp walk <ip> <oid> [--bulk] [--debug] [--c <context>]
<ip> IP Address of the device
<oid> OID value to manipulate data through snmp4j commands
--c, --context <context> The context value
--debug Turns on detailed debug
--bulk Does a bulk get instead of a getNext
- SNMP Failure event result when Engine ID doesn't match NAC's cache would contain the message 'Received engine Id <id string> is not correct'.
- SNMP Failure event result when device is not responding to SNMP would contain the message '<ip address> Timed out'. Refer to the related KB article below.
- SNMP Failure event result would contain 'Error reading Snmp object'. This can occur when the account used by FortiNAC does not have all the required SNMP server group permissions. For tips on configuring and validating Cisco SNMP v3, refer to related KB article below.
- SNMP test fails with an error - "Error: passphrase chosen is below the length requirements of the USM (min=8).". The error could happen when the passphrases used in SNMPv3 consist '$' sign. To be able to test SNMP communication, type both passwords inside single quotes ('). *If still getting error, most probably network device trying to add can not verify the password due to any specific symbols. Our suggestion is to try to skip specific symbols, at least " @, $, (', single quotes)".
Related articles:
Technical Note: Troubleshooting SNMP Timeout Errors
Technical Tip: Configure and validate Cisco SNMPv3
Technical Note: SNMPv3 Communication Fails for Certain Devices
Technical Note: Cannot discover device in Topology due to SNMP failure
Technical Note: SNMP OID access requirements for management of Juniper switches