NSE7 Troubleshooting and Diagnostics Practice Question
Which of the following is a valid command to check the status of all BGP neighbors on a FortiGate?
⚠ Common exam trap
The trap here is that candidates familiar with Cisco IOS often default to 'show bgp neighbors' (Option C), but FortiGate uses a different CLI syntax with 'get router info' for operational state queries, and 'diagnose' commands are reserved for low-level debugging, not standard status checks.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
get router info bgp summary
'get router info bgp summary' is the standard FortiGate CLI command to display the status of all BGP neighbors, including their state, uptime, and prefixes received. This command retrieves the BGP routing table summary from the FortiGate's routing daemon, which is essential for verifying neighbor relationships and troubleshooting BGP peering issues.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
diagnose router bgp summary
Why it's wrong here
diagnose router bgp summary omits the required ip keyword and is not valid FortiOS syntax. The diagnose prefix is tempting because FortiGate uses it for debugging, but BGP neighbour status requires get router info bgp summary. diagnose commands target packet flow, not routing table output.
- ✓
get router info bgp summary
Why this is correct
'get router info bgp summary' is the FortiOS diagnostic command that lists all BGP neighbours with their state, peer address and prefix counts, letting an administrator verify neighbour status directly from the CLI. It satisfies the requirement to check all BGP neighbours.
- ✗
show bgp neighbors
Why it's wrong here
show bgp neighbors is Cisco IOS syntax, not FortiOS. It is tempting because engineers familiar with Cisco expect show commands, but FortiGate uses get router info bgp summary to display all BGP neighbours and their states. FortiOS reserves show for configuration, not live routing status.
- ✗
diagnose ip router bgp all
Why it's wrong here
FortiOS BGP neighbour status is checked with get router info bgp summary; diagnose ip router bgp all is not a valid syntax. The diagnose prefix is tempting because FortiGate uses it for packet and session debugging, but BGP routing tables and neighbours are inspected through get router info commands.
Go deeper
Related to this question
About these practice questions
This NSE7 question is part of Courseiva's 718-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This NSE7 practice question is part of Courseiva's free Fortinet certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the NSE7 exam.