API Guide

输入 $ ssh admin@ip-address "show-command" 命令其中 ip-address 是交换机的 IP 地址。
$ ssh admin@10.11.98.39 "show version"
admin@10.11.98.39's password:
Dell EMC Networking OS10 Enterprise
Copyright (c) 1999-2019 by Dell Inc. All Rights Reserved.
OS Version: 10.5.0.0
Build Version: 10.5.0.270
Build Time: 2019-07-29T23:35:01+0000
System Type: S4148F-ON
Architecture: x86_64
Up Time: 1 day 00:54:13
Identifier GUID-ED17611B-4556-4679-BDDF-58CEA44957CD
Version 6
Status Translation approved
使用 OS9 命令
要使用 OS 9 命令语法输入配置命令请在 CONFIGURATION 模式下使用 feature config-os9-style 命令并注销会话。如果不
注销 OS10 会话则使用 OS9 命令语法进行的配置更改将不会生效。再次登录后您可以输入 OS9 命令但只能在新会话中输入。
例如要使用 OS9 命令配置以太网端口 1/1/15 上的 VLAN 11
OS10(config)# feature config-os9-style
OS10(config)# interface vlan 11
OS10(conf-if-vl-11)# tagged ethernet 1/1/15
OS10(conf-if-vl-11)# show configuration
!
interface vlan11
no shutdown
tagged ethernet 1/1/15
要禁用 OS9 配置样式模式请使用 no feature config-os9-style 命令。
Identifier
GUID-F5FE6A37-09CB-4607-8888-6DF9BC734C2B
Version 4
Status Translation approved
feature config-os9-style
启用命令行接口以接受 OS9 命令语法。
语法
feature config-os9-style
参数
默认 未配置
命令模式
CONFIGURATION
使用情况信息
输入 feature config-os9-style 命令后注销会话并重新登录。在下一个会话中您可以在 OS9 语法
中输入配置命令。命令的 no 版本将禁用此功能。
示例
OS10(config)# feature config-os9-style
OS10(config)# interface vlan 11
OS10(conf-if-vl-11)# tagged ethernet 1/1/15
支持的版本
10.3.0E or later
98 高级 CLI 任务