send_config
Send configuration commands in batch to network switches. Automatically executes commands sequentially, ideal for applying multiple settings at once.
Instructions
批量发送配置命令给交换机。自动逐条执行,适合批量配置场景。
使用前请确保已进入 system-view(系统视图)。 示例命令:
sysname Switch01
vlan 100
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
quit
每行一条命令,按顺序执行。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | 要批量执行的配置命令列表,每行一条 |