We have multiple Fortiswitches managed by a Fortigate. I need a command to see the MAC addresses on a specific port on a managed switch. For example, I need to see the MAC addresses on port 1 of switch "1234."
I can use this command to see "port1":
diagnose switch-controller switch-info mac-table | grep port1
But this command lists all the port 1s for all the managed switches.
I need a command that let's me specify which managed switch I want to view.
Thanks.
Solved! Go to Solution.
Hello @peter-supply ,
Can you try like that?
diagnose switch-controller switch-info mac-table <SW_Serial_Number> | grep port1
Hello @peter-supply ,
Can you try like that?
diagnose switch-controller switch-info mac-table <SW_Serial_Number> | grep port1
Thank you! That works! Should have tried that before I posted. I greatly appreciate your help.
Hello @peter-supply ,
I'm happy that it worked.
If you mark as solution to my answer, they can easily find a solution who face with same issue.
User | Count |
---|---|
2554 | |
1356 | |
795 | |
647 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.