Skip to main content
Glama
yangyu2729

console-switch-mcp

by yangyu2729

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_portsA

列出计算机上所有可用的串口(COM口)。用于查找通过Console线连接的交换机所在的端口号。

connectA

通过Console口连接到网络设备(如华为/H3C/思科交换机)。连接后可以发送命令进行配置和调试。

常用波特率:华为/H3C 默认 9600,部分设备 115200。 Windows 端口示例: COM1, COM3 Linux 端口示例: /dev/ttyUSB0, /dev/ttyS0 macOS 端口示例: /dev/cu.usbserial-xxxx

send_commandA

向已连接的交换机发送一条命令,并获取返回结果。

华为交换机常用命令示例:

  • display version 查看设备版本

  • display current-configuration 查看当前配置

  • display interface brief 查看接口概要

  • display vlan 查看VLAN信息

  • display mac-address 查看MAC地址表

  • display arp 查看ARP表

  • display ip routing-table 查看路由表

  • display device 查看设备状态

  • display logbuffer 查看日志缓冲

  • ping 192.168.1.1 测试网络连通性

  • system-view 进入系统视图

  • display cpu-usage 查看CPU使用率

  • display memory-usage 查看内存使用率

注意:进入 system-view 后提示符会从 变为 [Huawei],此时可执行配置命令。

send_configA

批量发送配置命令给交换机。自动逐条执行,适合批量配置场景。

使用前请确保已进入 system-view(系统视图)。 示例命令:

  • sysname Switch01

  • vlan 100

  • interface GigabitEthernet0/0/1

  • port link-type access

  • port default vlan 100

  • quit

每行一条命令,按顺序执行。

disconnectA

断开与交换机的Console口连接。

get_statusA

获取当前连接状态,包括是否已连接、端口、波特率、检测到的设备类型等信息。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yangyu2729/console-switch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server