Correct answer: B
> show system state filter-pretty sys.sl.p8.phy
Explanation
Explanation:
The question asks for the CLI command that displays the physical media connected to ethernet1/8 on a Palo Alto Networks firewall. This requires identifying a command that provides detailed interface information, specifically related to the physical layer (e.g., media type, connection status). Let’s evaluate the options to determine the correct one.
Why > show system state filter-pretty sys.sl.p8.phy?
Purpose:
The show system state filter-pretty command is used to display detailed system state information in a human-readable format, filtered by specific parameters. The filter sys.sl.p8.phy targets the physical layer details of slot 1, port 8 (corresponding to ethernet1/8, where "p8" denotes port 8). This command provides information about the physical media, such as the type of cable or connection (e.g., copper, fiber) and its status.
Output:
The command will display details like the media type, link state, and speed/duplex settings for ethernet1/8. This is useful for troubleshooting physical connectivity issues.
Syntax Breakdown:
sys: System state.
sl: Slot (typically 1 for most firewalls, as ethernet1/8 is in slot 1).
p8: Port 8 (matching ethernet1/8).
phy: Physical layer information.
Reference:
Palo Alto Networks CLI Reference Guide indicates that show system state filter-pretty sys.sl.pX.phy is used to view physical media details for a specific port, where pX is the port number.
Why Not the Other Options?
A. > show system state filter-pretty sys.si.p8.stats:
Explanation:
The filter sys.si.p8.stats likely refers to interface statistics (e.g., packet counters) for port 8 in slot 1. While this provides performance data, it does not specifically display physical media details (e.g., cable type or connection status).
Why Incorrect: This command focuses on statistics, not physical media.
C. > show system state filter-pretty sys.sl.p8.med:
Explanation:
The filter sys.sl.p8.med appears to be a typo or incorrect syntax. There is no standard med parameter in the show system state command for physical media; the correct term is phy for physical layer details. This command would likely return no meaningful output or an error.
Why Incorrect: Invalid filter syntax makes this option non-functional.
D. > show interface ethernet1/8:
Explanation:
The show interface ethernet1/8 command displays operational status and configuration details for the specified interface, including IP address, speed, duplex, and link state. While it provides some physical layer information (e.g., link up/down), it is less detailed than the show system state filter-pretty sys.sl.p8.phy command for physical media specifics (e.g., media type).
Why Incorrect: This command is broader and less targeted to physical media details compared to the correct option.
Additional Context:
Interface Naming: On Palo Alto Networks firewalls, ethernet1/8 refers to slot 1, port 8. The CLI uses this notation to identify physical interfaces.
Troubleshooting Tip: To verify physical connectivity, use > show system state filter-pretty sys.sl.p8.phy alongside > show interface ethernet1/8 for a comprehensive view.
Best Practices:
Check cable type and compatibility (e.g., copper vs. fiber) using the physical media details.
Ensure the interface is administratively up (> configure; set interface ethernet1/8 enable yes).
PCNSE Exam Relevance: This question tests your knowledge of CLI commands for interface troubleshooting, a key skill in the PCNSE exam. It requires understanding the nuances of show system state filters.
Conclusion:
The CLI command that displays the physical media connected to ethernet1/8 is > show system state filter-pretty sys.sl.p8.phy, as it specifically targets the physical layer details for that port.
References:
Palo Alto Networks CLI Reference Guide: System State Commands
Palo Alto Networks Documentation: Interface Management
ExamTopics PCNSE Discussion: CLI Interface Commands