A network engineer notices that a device is not sending SNMP traps to the NMS. Which operational command should be used to verify SNMP configuration?
Trap 1: show system uptime
The 'show system uptime' command displays system uptime, load averages, and the time since last reboot. It provides no visibility into SNMP protocol operations, trap generation, or the SNMP agent's configuration. While SNMP may report uptime as part of a MIB object, this command does not help determine why a device is failing to send SNMP notifications.
Trap 2: show route
The 'show route' command displays the routing table, including active routes and next hops, which is used for IP forwarding decisions. Although SNMP notifications are transported over IP, this command does not reveal whether the SNMP agent is enabled, whether trap destinations are configured, or if authentication/community strings are correct. It is irrelevant to diagnosing why SNMP traps are not being sent.
Trap 3: show interfaces terse
The 'show interfaces terse' command lists interface names, their administrative status, protocol status, and configured IP addresses. It only provides layer 2/layer 3 connectivity information, not the SNMP application-layer configuration. Even if all interfaces appear up, SNMP traps may fail to send due to misconfigured trap options or disabled agent, so this command cannot diagnose the root cause.
- A
show system uptime
Why wrong: The 'show system uptime' command displays system uptime, load averages, and the time since last reboot. It provides no visibility into SNMP protocol operations, trap generation, or the SNMP agent's configuration. While SNMP may report uptime as part of a MIB object, this command does not help determine why a device is failing to send SNMP notifications.
- B
show route
Why wrong: The 'show route' command displays the routing table, including active routes and next hops, which is used for IP forwarding decisions. Although SNMP notifications are transported over IP, this command does not reveal whether the SNMP agent is enabled, whether trap destinations are configured, or if authentication/community strings are correct. It is irrelevant to diagnosing why SNMP traps are not being sent.
- C
show snmp
The 'show snmp' command is the correct diagnostic tool on Junos devices for verifying SNMP configuration and operation. It displays whether the SNMP agent is enabled, configured trap groups, target addresses, community strings, and various SNMP statistics. This command directly shows why a device might not send traps, such as missing trap-group definitions, incorrect targets, or an explicitly disabled SNMP service.
- D
show interfaces terse
Why wrong: The 'show interfaces terse' command lists interface names, their administrative status, protocol status, and configured IP addresses. It only provides layer 2/layer 3 connectivity information, not the SNMP application-layer configuration. Even if all interfaces appear up, SNMP traps may fail to send due to misconfigured trap options or disabled agent, so this command cannot diagnose the root cause.