If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:switch cli
BoxMatrix >> Shell-Commands >> switch_cli | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
Startup-Scr | Hotplug-Scr | BusyBox-Cmds | Bash-Cmds | AVM-Cmds | Chipset-Cmds | Linux-Cmds | Shared-Libs | Kernel-Mods | Research |
Linux-Command
Command: | switch_cli - type Exec | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Shell-Commands >> Linux-Commands - Origin: Intel | ||||||
Path: | Release: /usr/bin Lab+Rel: /usr/bin | ||||||
Properties: | Size: 227k - 596k - Firmware: 6.51 - 8.00 | ||||||
Function: | Advanced Utility for Ethernet Switch driver with ioctl support |
Goto: Examples - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
switch_cli is an Advanced Utility for Ethernet Switch driver with ioctl support
for the Falcon PRX300 and
Seale GRX300/GRX500 series of SoCs. It is a closed source part of the
but its Makefile is public.
Lantiq Intel Switch API
switch_cli is used by the supportdata plugin basis_vendor_common and by dsl_monitor, see the Examples.
Fw 7.39 help:
root@fake:/var/mod/root# switch_cli --help Usage: switch_cli <Command> <Arg1> <Arg2> ... Getting command help text: switch_cli <Command> --help
It supports 220 commands - each one with a verbose --help
function - fw 7.39:
GSW_8021X_EAPOL_RULE_GET GSW_8021X_EAPOL_RULE_SET GSW_8021X_PORT_CFG_GET GSW_8021X_PORT_CFG_SET GSW_BRIDGE_ALLOC GSW_BRIDGE_CONFIG_GET GSW_BRIDGE_CONFIG_SET GSW_BRIDGE_FREE GSW_BRIDGE_PORT_ALLOC GSW_BRIDGE_PORT_CONFIG_GET GSW_BRIDGE_PORT_CONFIG_SET GSW_BRIDGE_PORT_FREE GSW_BRIDGE_PORT_RMON_GET GSW_CAP_GET GSW_CFG_GET GSW_CFG_SET GSW_CPU_PORT_CFG_GET GSW_CPU_PORT_CFG_SET GSW_CPU_PORT_EXTEND_CFG_GET GSW_CPU_PORT_EXTEND_CFG_SET GSW_CTP_PORT_ASSIGNMENT_ALLOC GSW_CTP_PORT_ASSIGNMENT_FREE GSW_CTP_PORT_ASSIGNMENT_GET GSW_CTP_PORT_ASSIGNMENT_SET GSW_CTP_PORT_CONFIG_GET GSW_CTP_PORT_CONFIG_RESET GSW_CTP_PORT_CONFIG_SET GSW_CTP_PORT_PCEBYPASS_RMON_GET GSW_CTP_PORT_RMON_GET GSW_DEBUG_BRDGPORTTABLE_STATUS GSW_DEBUG_BRDGTABLE_STATUS GSW_DEBUG_CTP_STATISTICS GSW_DEBUG_CTPTABLE_STATUS GSW_DEBUG_DEF_BYP_QMAP GSW_DEBUG_DEF_QMAP GSW_DEBUG_DSCP2PCPTABLE_STATUS GSW_DEBUG_EXVLANTABLE_STATUS GSW_DEBUG_LP_STATISTICS GSW_DEBUG_METERTABLE_STATUS GSW_DEBUG_PCERULETABLE_STATUS GSW_DEBUG_PMAC_BP GSW_DEBUG_PMAC_EG GSW_DEBUG_PMAC_IG GSW_DEBUG_PMAC_RMON_GET_ALL GSW_DEBUG_PMAPPER_STATUS GSW_DEBUG_RMON_ALL_GET GSW_DEBUG_RMON_PORT_GET GSW_DEBUG_VLANFILTERTABLE_STATUS GSW_DEFAUL_PCE_BYPASS_QMAP_GET GSW_DEFAUL_PCE_QMAP_GET GSW_DISABLE GSW_ENABLE GSW_EXTENDEDVLAN_ALLOC GSW_EXTENDEDVLAN_FREE GSW_EXTENDEDVLAN_GET GSW_EXTENDEDVLAN_SET GSW_HW_INIT GSW_IG_CFG_PMAC_GET GSW_IRQ_GET GSW_IRQ_MASK_GET GSW_IRQ_MASK_SET GSW_IRQ_STATUS_CLEAR GSW_MAC_TABLE_CLEAR GSW_MAC_TABLE_ENTRY_ADD GSW_MAC_TABLE_ENTRY_QUERY GSW_MAC_TABLE_ENTRY_READ GSW_MAC_TABLE_ENTRY_REMOVE GSW_MDIO_CFG_GET GSW_MDIO_CFG_SET GSW_MDIO_DATA_READ GSW_MDIO_DATA_WRITE GSW_MMD_DATA_READ GSW_MMD_DATA_WRITE GSW_MONITOR_PORT_CFG_GET GSW_MONITOR_PORT_CFG_SET GSW_MULTICAST_ROUTER_PORT_ADD GSW_MULTICAST_ROUTER_PORT_READ GSW_MULTICAST_ROUTER_PORT_REMOVE GSW_MULTICAST_SNOOP_CFG_GET GSW_MULTICAST_SNOOP_CFG_SET GSW_MULTICAST_TABLE_ENTRY_ADD GSW_MULTICAST_TABLE_ENTRY_READ GSW_MULTICAST_TABLE_ENTRY_REMOVE GSW_PCE_EG_VLAN_CFG_GET GSW_PCE_EG_VLAN_CFG_SET GSW_PCE_EG_VLAN_ENTRY_READ GSW_PCE_EG_VLAN_ENTRY_WRITE GSW_PCE_RULE_ALLOC GSW_PCE_RULE_DELETE GSW_PCE_RULE_DISABLE GSW_PCE_RULE_ENABLE GSW_PCE_RULE_FREE GSW_PCE_RULE_READ GSW_PCE_RULE_WRITE GSW_PMAC_BM_CFG_GET GSW_PMAC_BM_CFG_SET GSW_PMAC_COUNT_GET GSW_PMAC_EG_CFG_GET GSW_PMAC_EG_CFG_SET GSW_PMAC_GLBL_CFG_GET GSW_PMAC_GLBL_CFG_SET GSW_PMAC_IG_CFG_GET GSW_PMAC_IG_CFG_SET GSW_PMAC_RMON_GET GSW_PORT_CFG_GET GSW_PORT_CFG_SET GSW_PORT_LINK_CFG_GET GSW_PORT_LINK_CFG_SET GSW_PORT_PHY_ADDR_GET GSW_PORT_PHY_QUERY GSW_PORT_REDIRECT_GET GSW_PORT_REDIRECT_SET GSW_PORT_RGMII_CLK_CFG_GET GSW_PORT_RGMII_CLK_CFG_SET GSW_QOS_CLASS_DSCP_GET GSW_QOS_CLASS_DSCP_SET GSW_QOS_CLASS_PCP_GET GSW_QOS_CLASS_PCP_SET GSW_QOS_DSCP_CLASS_GET GSW_QOS_DSCP_CLASS_SET GSW_QOS_DSCP_DROP_PRECEDENCE_CFG_GET GSW_QOS_DSCP_DROP_PRECEDENCE_CFG_SET GSW_QOS_FLOWCTRL_CFG_GET GSW_QOS_FLOWCTRL_CFG_SET GSW_QOS_FLOWCTRL_PORT_CFG_GET GSW_QOS_FLOWCTRL_PORT_CFG_SET GSW_QOS_METER_ACT GSW_QOS_METER_ALLOC GSW_QOS_METER_CFG_GET GSW_QOS_METER_CFG_SET GSW_QOS_METER_FREE GSW_QOS_METER_PORT_ASSIGN GSW_QOS_METER_PORT_DEASSIGN GSW_QOS_METER_PORT_GET GSW_QOS_PCP_CLASS_GET GSW_QOS_PCP_CLASS_SET GSW_QOS_PORT_CFG_GET GSW_QOS_PORT_CFG_SET GSW_QOS_PORT_REMARKING_CFG_GET GSW_QOS_PORT_REMARKING_CFG_SET GSW_QOS_QUEUE_BUFFER_RESERVE_CFG_GET GSW_QOS_QUEUE_BUFFER_RESERVE_CFG_SET GSW_QOS_QUEUE_PORT_GET GSW_QOS_QUEUE_PORT_SET GSW_QOS_SCHEDULER_CFG_GET GSW_QOS_SCHEDULER_CFG_SET GSW_QOS_SHAPER_CFG_GET GSW_QOS_SHAPER_CFG_SET GSW_QOS_SHAPER_QUEUE_ASSIGN GSW_QOS_SHAPER_QUEUE_DEASSIGN GSW_QOS_SHAPER_QUEUE_GET GSW_QOS_STORM_CFG_GET GSW_QOS_STORM_CFG_SET GSW_QOS_SVLAN_CLASS_PCP_PORT_GET GSW_QOS_SVLAN_CLASS_PCP_PORT_SET GSW_QOS_SVLAN_PCP_CLASS_GET GSW_QOS_SVLAN_PCP_CLASS_SET GSW_QOS_WRED_CFG_GET GSW_QOS_WRED_CFG_SET GSW_QOS_WRED_PORT_CFG_GET GSW_QOS_WRED_PORT_CFG_SET GSW_QOS_WRED_QUEUE_CFG_GET GSW_QOS_WRED_QUEUE_CFG_SET GSW_READ_PCE_TABLE GSW_REGISTER_GET GSW_REGISTER_SET GSW_RESET GSW_RMON_CLEAR GSW_RMON_EXTEND_GET GSW_RMON_IF_GET GSW_RMON_METER_GET GSW_RMON_MODE_SET GSW_RMON_PORT_GET GSW_RMON_REDIRECT_GET GSW_RMON_ROUTE_GET GSW_STP_BPDU_RULE_GET GSW_STP_BPDU_RULE_SET GSW_STP_PORT_CFG_GET GSW_STP_PORT_CFG_SET GSW_SVLAN_CFG_GET GSW_SVLAN_CFG_SET GSW_SVLAN_PORT_CFG_GET GSW_SVLAN_PORT_CFG_SET GSW_TIMESTAMP_PORT_READ GSW_TIMESTAMP_TIMER_GET GSW_TIMESTAMP_TIMER_SET GSW_TRUNKING_CFG_GET GSW_TRUNKING_CFG_SET GSW_TRUNKING_PORT_CFG_GET GSW_TRUNKING_PORT_CFG_SET GSW_VERSION_GET GSW_VLAN_COUNTER_MAPPING_GET GSW_VLAN_COUNTER_MAPPING_SET GSW_VLANFILTER_ALLOC GSW_VLANFILTER_FREE GSW_VLANFILTER_GET GSW_VLANFILTER_SET GSW_VLAN_ID_CREATE GSW_VLAN_ID_DELETE GSW_VLAN_ID_GET GSW_VLAN_MEMBER_INIT GSW_VLAN_PORT_CFG_GET GSW_VLAN_PORT_CFG_SET GSW_VLAN_PORT_MEMBER_ADD GSW_VLAN_PORT_MEMBER_READ GSW_VLAN_PORT_MEMBER_REMOVE GSW_VLAN_RESERVED_ADD GSW_VLAN_RESERVED_REMOVE GSW_VLAN_RMON_CLEAR GSW_VLAN_RMON_CONTROL_GET GSW_VLAN_RMON_CONTROL_SET GSW_VLAN_RMON_GET GSW_VXLAN_CFG_GET GSW_VXLAN_CFG_SET GSW_WOL_CFG_GET GSW_WOL_CFG_SET GSW_WOL_PORT_CFG_GET GSW_WOL_PORT_CFG_SET
If called without an argument a help menu starts which offers listing groups of these commands:
***** Switch CLI Help Menu ***** Please select any of the below Switch Feature Operations,to display the related Switch CLI Commands 0. Quit 1. RMON Operation 2. MAC Operations 3. VLAN Operation 4. Extended VLAN Operations 5. VLAN Filter Operations 6. Bridge Port and Bridge Operations 7. PCE Operations 8. QOS Operations 9. 8021x Operations 10. Multicast Operations 11. Trunking Operations 12. WOL Operations 13. MonitorPort Operations 14. PMAC Operations 15. PAE Operation 16. MDIO Operation 17. MMD operations 18. MAC Filter Operation 19. Debug Operation 20. Xgmac Operation 21. GSW Sub-system Operation 22. Display All Switch Operation Enter the option (0 to 22) to continue : 0
Examples
From basis_vendor_common fw 7.39:
switch_cli GSW_MDIO_DATA_READ dev=$dev nAddressDev=$phyaddr nAddressReg=$mdioreg
From dsl_monitor fw 7.39:
switch_cli dev=1 GSW_RMON_PORT_GET nPortId=%d
Dependencies
Daily updated index of all dependencies of this command. Last update: 2024-11-17 07:59 GMT.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Depends on | lib | ld.so | 7 | 7.08 - 7.15 | Dynamic linker / loader | Linux |
Depends on | lib | libc.so | 12 | 6.51 - 8.00 | Standard C library | Linux |
2 dependencies for this command |
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2024-11-17 06:06 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl)
label in the Model
column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.
Model | Firmware | Path | Size |
---|---|---|---|
FRITZ!Box 5530 Fiber (main) | 7.21 - 8.00 | /usr/bin | 571k - 596k |
FRITZ!Box 5590 Fiber (prx) | 7.29 - 8.00 | /usr/bin | 575k - 596k |
FRITZ!Box 6850 LTE | 7.26 - 7.39 | /usr/bin | 343k - 567k |
FRITZ!Box 6890 LTE (main) | 6.84 - 7.57 | /usr/bin | 227k - 596k |
FRITZ!Box 6890 LTE v1 (main) | 6.84 - 7.57 | /usr/bin | 227k - 596k |
FRITZ!Box 6890 LTE v2 (main) | 6.84 - 7.57 | /usr/bin | 227k - 596k |
FRITZ!Box 7560 (main) | 6.51 - 7.30 | /usr/bin | 227k - 343k |
FRITZ!Box 7580 (main) | 6.53 - 7.30 | /usr/bin | 227k - 343k |
FRITZ!Box 7583 (main) | 7.01 - 7.59 | /usr/bin | 227k - 596k |
FRITZ!Box 7583 VDSL (main) | 7.19 - 8.00 | /usr/bin | 343k - 596k |
FRITZ!Box 7590 (main) | 6.83 - 8.00 | /usr/bin | 227k - 596k |
FRITZ!Box 7590 AX (main) | 7.19 - 8.00 | /usr/bin | 343k - 596k |
12 models use this command |
Symbols
Daily updated index of all symbols of this command. Last update: 2024-11-17 07:59 GMT.
Firmware | Symbol |
---|---|
6.51 - 8.00 | checkValidMAC_Address |
6.51 - 8.00 | cli_ioctl |
6.51 - 8.00 | findStringParam |
7.21 - 8.00 | get_mac_idx |
7.21 - 8.00 | gsw_gswss_reg_read |
7.21 - 8.00 | gsw_gswss_reg_write |
7.21 - 8.00 | gsw_lmac_reg_read |
7.21 - 8.00 | gsw_mac_reg_read |
7.21 - 8.00 | gsw_mac_reg_write |
7.21 - 8.00 | gswss_cli_reg_rd |
7.21 - 8.00 | gswss_help |
7.21 - 8.00 | gswss_main |
7.21 - 8.00 | gswss_reg_rd |
7.21 - 8.00 | lmac_help |
7.21 - 8.00 | lmac_main |
7.21 - 8.00 | lmac_reg_read |
7.21 - 8.00 | lmac_reg_write |
6.51 - 8.00 | main |
6.51 - 8.00 | printHex32Value |
6.51 - 7.39 | printIPv4_Address |
6.51 - 7.39 | printIPv6_Address |
6.51 - 8.00 | printMAC_Address |
7.21 - 8.00 | removeSpace |
6.51 - 8.00 | scanIPv4_Arg |
6.51 - 8.00 | scanIPv6_Arg |
6.51 - 8.00 | scanMAC_Arg |
7.19 - 8.00 | scanPMAC_Arg |
7.19 - 8.00 | scanPMAP_Arg |
6.51 - 8.00 | scanParamArg |
7.21 - 8.00 | set_data |
7.21 - 8.00 | set_pdata |
7.19 - 8.00 | t_olower |
7.21 - 8.00 | test_cli |
7.21 - 8.00 | test_cli_adap |
7.21 - 8.00 | test_lmac_cli |
7.21 - 8.00 | xgmac_cli_init |
7.21 - 8.00 | xgmac_main |
7.21 - 8.00 | xgmac_menu |
7.21 - 8.00 | xgmac_reg_rd |
7.19 - 8.00 | xstrncasecmp |
40 symbols for this command |