Technical Tip: Requesting SNMP trap support in FortiNAC
Description
FortiNAC, FortiNAC-F.
Solution
- Snmpwalk of system OID from the device: Snmpwalk can be performed using the snmpwalk tool in the FortiNAC CLI:
- FortiNAC (CentOS): Depending on SNMP version configured apply the following by replacing <communitystring> <ip_address> and other arguments with the parameters of the modeled device.
snmpwalk -v1 -c <communitystring> <ip_address> system
snmpwalk -v2c -c <communitystring> <ip_address> system
snmpwalk -v3 -u <username> -l <AuthPriv or authNoPriv> -a <MD5 or SHA> -A <password> -x <DES or AES> -X <password> <ip_address> system
- FortiNAC-F (NACOS):
diagnose network snmp walk
Usage: diagnose network snmp walk <ip> <oid> [--bulk] [--debug] [--c <context>]
Provides SNMP Walk data for an OID of a given IP
<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
- Collect a Packet capture of the trap (.pcap format). To obtain capture using the appliance, type the following in the CLI:
- FortiNAC (CentOS):
logs
tcpdump -i any host <IP_Address> and port 161 or port162 -w Trapfile.pcap
Generate the trap by connecting a host or bouncing the switch port. When finished, stop the capture by pressing ctrl+c. The 'Trapfile.pcap' will be located in /bsc/logs.
Use WinSCP or SCP protocol to collect the file.
- FortiNAC-F (NACOS):
execute tcpdump -i any host <IP_Address> and port 161 or port162 -w Trapfile.pcap
Generate the trap by connecting a host or bouncing the switch port. When finished stop the capture by pressing ctrl+c. The 'Trapfile.pcap' will be located /home/admin.
To collect the file, install a TFTP or SSH server in the local machine and transfer the file:
Technical Tip: Run tcpdump in FortiNAC-F and save capture as a file.
- Provide any additional documentation related to the device vendor (MIBs, etc).
- Current appliance version under Help -> About.
- snmpwalk output.
- Packet capture.
- Additional documented collected.
- Description of trap (link up/link down, MAC notification trap, etc).
Related article:
Technical Tip: Troubleshooting SNMP communication issues
