信创交换机(S5300G/S6300G、S3200G)

信锐技术自主研发的千兆盒式交换机产品,支持主流协议标准和应用程序,可方便快速的部署和管理,满足下一代企业网、数据中心、城域网和超融合等多种应用场合需求。
{{sendMatomoQuery("信创交换机(S5300G/S6300G、S3200G)","设备管理命令")}}

设备管理命令

更新时间:2025-07-14

15.1STM命令

15.1.1stm prefer

命令功能

STM是系统表项管理的简称,您可以使用STM prefer命令来合理配置交换机的表项资源,以便最大程度地支持您的应用程序正在使用的功能。您可以选择STM模版来使系统支持最大的单播MAC条目数;或者最大程度的支持(QoS)以及访问控制条目数(ACE)。使用这个命令的no形式返回到默认配置文件。

命令语法

stm prefer ( default | layer3 | ipv6 | mpls | extended-buffer )

no stm prefer

参数

参数说明

参数取值

default

默认模版,保持系统所有特性均衡

-

layer3

适合用户三层网络,一般用于路由器或者网络中间的汇聚层

-

ipv6

适合用户需要ipv6三层网络,一般用于路由器或者网络中间的汇聚层

-

mpls

mpls模板,支持最大数目的MPLS/MAC条目。

-

extended-buffer

支持更多的qos buffer,减少丢包数量。

-

命令模式

全局配置模式

默认配置

Default模版,此配置文件平衡所有功能。

使用说明

当你改变配置后,必须重启交换机配置才能生效。

举例说明

下面的例子描述了如何使系统最大程度的支持路由功能

Switch# configure terminal
Switch(config)# stm prefer layer3
Switch(config)# exit
Switch# reload

相关命令

show stm prefer

15.1.2show stm prefer

命令功能

该命令显示特定模版的系统资源分配信息。如果该命令后不带参数,则显示当前正在使用的系统配置信息以及重启之后准备使用的系统资源分配情况。

命令语法

show stm prefer ( default | layer3 | ipv6 | mpls | extended-buffer | )

参数

参数说明

参数取值

default

默认模版,保持系统所有特性均衡

-

layer3

适合用户三层网络,一般用于路由器或者网络中间的汇聚层

-

ipv6

适合用户需要ipv6三层网络,一般用于路由器或者网络中间的汇聚层

-

mpls

mpls模板,支持最大数目的MPLS/MAC条目。

-

extended-buffer

支持更多的qos buffer,减少丢包数量。

-

命令模式

特权模式

默认配置

使用说明

当您改变配置但是没有重启交换机,那么显示的是当前正在使用的系统资源信息。重启交换机之后,配置才会真正生效。

举例说明

下面的例子显示了改变配置但没有重启交换之前的系统资源分配状况

Switch# show stm prefer
Current profile is :default
   number of vlan instance                                : 1/4094
   number of vlan stats                                   : 0/128
   number of unicast mac address                          : 0/32768
   number of multicast mac address                        : 0/2048
   number of blackhole mac address                        : 0/128
   number of max applied vlan mapping                     : 0/1024
   number of bfd sessions                                 : 0/128
   number of CFM loacl&remote MEPs                        : 0/1024
   number of CFM lm                                       : 0/256
   number of CFM lck                                      : 0/24
   number of G8031 groups                                 : 0/256
   number of G8032 rings                                  : 0/256
   number of G8032 member ports                           : 0/256
   number of mac based vlan class                         : 0/512
   number of ipv4 based vlan class                        : 0/512
   number of ipv6 based vlan class                        : 0/0
   number of dot1x mac based                              : 0/256
   number of unicast ipv4 host routes                     : 0/3072
   number of unicast ipv4 indirect routes                 : 0/6144
   number of unicast ipv4 policy based routes             : 0/128
   number of unicast ipv6 host routes                     : 0/0
   number of unicast ipv6 indirect routes                 : 0/0
   number of unicast ecmp groups                          : 0/240
   number of unicast ip tunnel peers                      : 0/8
   number of multicast ipv4 routes                        : 0/1023
   number of mvr entries                                  : 0/511
   number of mvr6 entries                                 : 0/0
   number of multicast ipv6 routes                        : 0/0
   number of ipv4 source guard entries                    : 0/1024
   number of ingress security acl flow entries            : 0/2464
   number of ingress security acl flow stats              : 0/1022
   number of ingress qos flow entries                     : 0/1280
   number of ingress qos flow stats                       : 0/511
   number of ingress telnet flow entries                  : 0/64
   number of ingress ssh flow entries                     : 0/64
   number of ingress worm anti-attack flow entries        : 0/32
   number of ingress ipfix flow entries                   : 0/256
   number of ingress udf acl flow entries                 : 0/64
   number of ingress udf acl flow stats                   : 0/64
   number of ingress copp flow entries                    : 0/251
   number of ingress copp flow stats                      : 0/251
   number of egress security acl flow entries             : 0/928
   number of egress security acl flow stats               : 0/511
   number of egress ipfix flow entries                    : 0/512
   number of link aggregation (static & lacp)             : 0/64
   number of ipfix cache                                  : 0/4096
   number of mka policy                                   : 1/64

相关命令

stm prefer

15.2日志管理命令

15.2.1clear logging buffer

命令功能

使用此命令清除日志缓冲区中的记录。

命令语法

clear logging buffer

命令模式

特权模式

默认配置

使用说明

清除日志缓存中的日志。

举例说明

清除日志缓冲区中的日志

Switch# clear logging buffer

相关命令

show logging buffer

15.2.2logging alarm-trap

命令功能

在日志服务器收到大量日志时,使用此命令设置日志服务器是否发送报警日志以及发送报警日志消息的级别。

命令语法

logging alarm-trap ( enable | disable | level ( high | lower | middle | minor ) )

no logging alarm-trap level

参数

参数说明

参数取值

enable

设置把报警日志通过trap消息发送出去

-

disable

取消把报警日志通过trap消息发送出去

-

level high

设置把high报警日志通过trap消息发送出去

-

level lower

设置把lower(包括lower以上)报警日志通过trap消息发送出去

-

level middle

设置把middle(包括middle以上)报警日志通过trap消息发送出去

-

level minor

设置把minor(包括minor以上)报警日志通过trap消息发送出去

-

命令模式

全局配置模式

默认配置

关闭

使用说明

该命令用于提示用户,日志服务器接收了大量的日志信息。

举例说明

设置把报警日志通过trap消息发送出去

Switch# configure terminal
Switch(config)# logging alarm-trap enable
Switch(config)# logging alarm-trap level high

相关命令

logging alarm-trap level middle

15.2.3logging file

命令功能

使用此命令设置是否把日志信息写入到日志文件中。

命令语法

logging file ( enable | disable )

参数

参数说明

参数取值

enable

把日志信息写入到日志文件中

-

disable

取消日志信息写入到日志文件中

-

命令模式

全局配置模式

默认配置

缺省系统将会把日志信息写入到日志文件中。

使用说明

一旦启用,日志将当前产生的日志每6小时一次写入到flash/log文件中。

举例说明

把日志信息写入到日志文件中

Switch# configure terminal
Switch(config)# logging file enable

相关命令

show logging

15.2.4logging level file

命令功能

使用此命令设置可被记入到日志文件的日志消息的阈值;高于等于此阈值的日志都将被记入到日志文件。

命令语法

logging level file ( alert | critical | debug | emergency | error | information | notice | warning | SEVERITY_LEVEL )

no logging level file

参数

参数说明

参数取值

0 | emergency

系统无法使用

-

1 | alert

需要立即行动

-

2 | critical

决定调整

-

3 | error

错误调整

-

4 | warning

警告调整

-

5 | notice

正常且适当调整

-

6 | information

信息性消息

-

7 | debug

调试消息

-

SEVERITY_LEVEL

安全等级

0-7

命令模式

全局配置模式

默认配置

默认等级为information

使用说明

使用此命令设置可以被记入到日志文件的日志消息的阈值,高于等于此阈值的日志消息会被记录到日志文件,而低于此阈值的不会被记入文件。

如果指定debug,则所有日志消息都将被记入日志文件中。

举例说明

设置等级3的告警日志文件

Switch# configure terminal
Switch(config)# logging level file 3

相关命令

logging level module

15.2.5logging buffer

命令功能

使用此命令设置系统临时缓冲区保存的log数量。no命令恢复默认值。

命令语法

logging buffer BUFFERSIZE

no logging buffer

参数

参数说明

参数取值

BUFFERSIZE

缓冲区日志数量

10-1000

命令模式

全局配置模式

默认配置

500

使用说明

该功能指定show logging buffer能显示的最多log条目。

举例说明

设置对系统保存1000条日志

Switch# configure terminal
Switch(config)# logging buffer 1000

相关命令

show logging buffer

15.2.6logging level module

命令功能

使用此命令设置发往终端和记入到buffer(日志缓冲区)的日志消息的阈值;高于等于此阈值的日志都将被者显示在终端上(terminal),并被记入到buffer(日志缓冲区)。

命令语法

logging level module ( alert | critical | debug | emergency | error | information | notice | warning | SEVERITY_LEVEL )

no logging level module

参数

参数说明

参数取值

0 | emergency

系统无法使用

-

1 | alert

需要立即行动

-

2 | critical

决定调整

-

3 | error

错误调整

-

4 | warning

警告调整

-

5 | notice

正常且适当调整

-

6 | information

信息性消息

-

7 | debug

调试消息

-

SEVERITY_LEVEL

安全等级

0-7

命令模式

全局配置模式

默认配置

默认等级debug

使用说明

使用此命令设置发往终端和记入到buffer(日志缓冲区)的日志消息的阈值,高于等于此阈值的日志消息会被显示到终端并写入到日志缓冲区,而低于此阈值的不会被显示在终端,也不会被写入到日志缓冲区。

如果指定debug,则所有日志消息都将被显示在终端并被进入日志缓冲区。

举例说明

设置所有日志消息都显示在终端(terminal)上

Switch# configure terminal
Switch(config)# logging level module debug

相关命令

logging level file

15.2.7logging merge

命令功能

使用此命令设置对系统日志进行合并,以减少日志数量。

命令语法

logging merge ( enable | disable | fifo-size SIZE | timeout SECONDS )

no logging merge ( fifo-size | timeout )

参数

参数说明

参数取值

enable

设置对系统日志进行合并

-

disable

设置不对系统日志进行合并

-

fifo-size SIZE

设置后台日志合并缓冲区的大小;以条目为单位,缺省为1024

100-10240

timeout SECONDS

指定时间段;在此时间段内出现的相同的日志会被合并为一条;缺省为10

1-300

命令模式

全局配置模式

默认配置

启用

使用说明

启用了此功能以后,交换机会把在指定时间段内出现的相同的日志合并为一条;而在此时间段内,交换机会把收到的日志放在后台的指定大小的临时缓冲区中。可以使用timeout参数指定此时间段的大小;可以使用fifo-size参数指定后台临时缓冲区的大小。

举例说明

设置对系统日志进行合并

Switch# configure terminal
Switch(config)# logging merge enable

相关命令

logging merge timeout 30

15.2.8logging sync

命令功能

使用此命令将内存缓冲区中的日志写到flash中的syslog文件中。

命令语法

logging sync

命令模式

特权模式

默认配置

使用说明

启用logging merge功能后log不会马上显示到终端或者logging buffer中,使用这条命令是将log马上显示到终端或者logging buffer中去,并将内存缓冲区中的日志写到flash中的syslog文件中。

举例说明

启用同步缓冲区日志

Switch# logging sync

相关命令

logging merge enable

logging sync timeout

15.2.9logging sync timeout

命令功能

使用此命令设置系统日志写到flash中的syslog文件的时间间隔。

命令语法

logging sync timeout INTERVAL

no logging sync timeout

参数

参数说明

参数取值

INTERVAL

设置同步时间间隔(单位:分钟)

5-1440

命令模式

全局配置模式

默认配置

360分钟

使用说明

举例说明

设置每5分钟同步一次系统日志到syslog

Switch# configure terminal
Switch(config)# logging sync timeout 5

相关命令

logging sync

15.2.10logging operate

命令功能

使用此命令设置是否发送操作日志。

命令语法

logging operate ( enable | disable )

参数

参数说明

参数取值

enable

设置发送操作日志

-

disable

设置不发送操作日志

-

命令模式

全局配置模式

默认配置

禁用

使用说明

如果启用了日志记录操作,所有的CLI中配置模式或更高将被保存到记录器的缓冲区。

举例说明

设置发送操作日志

Switch# configure terminal
Switch(config)# logging operate enable

相关命令

logging server

15.2.11logging server

命令功能

使用此命令设置是否使用远程日志服务器。

命令语法

logging server ( enable | disable )

参数

参数说明

参数取值

enable

启用

-

disable

禁用

-

命令模式

全局配置模式

默认配置

禁用

使用说明

此命令用于发送到远程服务器上的记录器。

举例说明

启用远程日志服务器

Switch# configure terminal
Switch(config)# logging server enable

相关命令

logging server severity

15.2.12logging server address

命令功能

使用此命令设置日志服务器的IP地址;交换机可以把日志信息发往此服务器。

命令语法

logging server address ( mgmt-if | vrf NAME | ) ( IPV4_ADDR | IPV6_ADDR ) ( dest-port PORT_NUM | ) ( transport ( tcp | udp ) | ) ( source-interface IFNAME | source-ip SRC_IP_ADDR | )

no logging server address ( mgmt-if | vrf NAME | ) ( IPV4_ADDR | IPV6_ADDR )

参数

参数说明

参数取值

mgmt-if

管理口

-

vrf NAME

表示日志服务器所在的VRF

-

IPV4_ADDR

表示日志服务器的IPv4地址

IPv4 地址

IPV6_ADDR

表示的日志服务器的IPv6地址

IPv6 地址

PORT_NUM

表示连接日志服务器的端口号

1-65535

tcp

表示连接日志服务器的连接类型为tcp

TCP

udp

表示连接日志服务器的连接类型为udp

UDP

IFNAME

指定源接口名称

支持所有类型端口

SRC_IP_ADDR

指定源IP地址

IPv4 地址

命令模式

全局配置模式

默认配置

默认系统没有配置Log server

配置server时如不指定,默认使用udp方式连接,端口号514

使用说明

为了使交换机能正确的把系统日志信息发往日志服务器,请确保此服务器在正常工作状态。如果指定源接口或者源IP地址,将会使用对应的IP地作为发出报文的源IP地址。

举例说明

设置日志服务器为209.165.202.169

Switch# configure terminal
Switch(config)# logging server address 209.165.202.169

相关命令

logging server

15.2.13logging server facility

命令功能

使用此命令来配置在服务器上的日志守护进程。

命令语法

logging server facility ( kern | user | mail | daemon | auth | syslog | lpr | news | uucp | cron | authpriv | ftp | FACILITY_TYPE | FACILITY_LOCAL )

no logging server facility

参数

参数说明

参数取值

0 | kern

Kernel

-

1 | user

User

-

2 | mail

Mail system

-

3 | daemon

System daemon

-

4 | auth

Authorization system

-

5 | syslog

System log

-

6 | lpr

Line printer system

-

7 | news

USENET news

-

8 | uucp

UNIX-to-UNIX

-

9 | cron

Cron facility

-

10 | authpriv

Authorization priv system

-

11 | ftp

FTP sytem

-

16 | local0

预留设备号local0

-

17 | local1

预留设备号local1

-

18 | local2

预留设备号local2

-

19 | local3

预留设备号local3

-

20 | local4

预留设备号local4

-

21 | local5

预留设备号local5

-

22 | local6

预留设备号local6

-

23 | local7

预留设备号local7

-

FACILITY_TYPE

系统定义的设备号

0-11

FACILITY_LOCAL

本地预留的设备号

6-23

命令模式

全局配置模式

默认配置

Local4

使用说明

举例说明

配置在服务器上的日志守护进程为local3

Switch# configure terminal
Switch(config)# logging server facility local3

相关命令

logging server

15.2.14logging server severity

命令功能

设置发往远程日志服务器的日志信息的阈值;高于或等于此阈值的日志都将被发往日志服务器。

命令语法

logging server severity ( alert | critical | debug | emergency | error | information | notice | warning | SEVERITY_LEVEL )

no logging server severity

参数

参数说明

参数取值

0 | emergency

系统无法使用

-

1 | alert

需要立即行动

-

2 | critical

决定调整

-

3 | error

错误调整

-

4 | warning

警告调整

-

5 | notice

正常且适当调整

-

6 | information

信息性消息

-

7 | debug

调试消息

-

SEVERITY_LEVEL

安全等级

0-7

命令模式

全局配置模式

默认配置

默认等级为warning

使用说明

如果设置阈值为debug,则所有日志消息都将被发往日志服务器。

举例说明

设置发往日志服务器的日志信息的重要程度是debug等级

Switch# configure terminal
Switch(config)# logging server severity 3

相关命令

logging level module

logging level file

15.2.15logging timestamp

命令功能

使用此命令设置日志信息的时间戳格式。

命令语法

logging timestamp ( bsd | date | iso | none | rfc3164 | rfc3339 )

no logging timestamp

参数

参数说明

参数取值

bsd

BSD 时间格式

-

date

使用date命令时显示的时间格式

-

iso

ISO 时间格式

-

none

日志信息不打时间戳

-

rfc3164

RFC 3164 时间格式

-

rfc3339

RFC 3339 时间格式

-

命令模式

全局配置模式

默认配置

BSD时间格式

使用说明

此命令是用来指定记录消息所带的时间戳。

举例说明

设置时间戳格式为iso模式

Switch# configure terminal
Switch(config)# logging timestamp iso

相关命令

show logging

15.2.16show logging

命令功能

使用此命令查看系统关于日志管理的设置。

命令语法

show logging

命令模式

特权模式

默认配置

使用说明

举例说明

显示系统的登录配置信息

Switch# show logging
Current logging configuration:
============================================================
logging buffer 500
logging timestamp date
logging file enable
logging level file warning
logging level module debug
logging server disable
logging server severity warning
logging server facility local7
logging alarm-trap enable
logging alarm-trap level middle
logging merge disable
logging merge fifo-size 1024
logging merge timeout 10
logging operate disable

相关命令

logging level

15.2.17show logging buffer

命令功能

显示系统的日志配置信息。

命令语法

show logging buffer ( LINES | statistics | )

参数

参数说明

参数取值

LINES

显示存储在日志缓冲区的信息,后面所跟参数为条目, 正数表示从新到旧显示,负数表示从旧到新显示。

-1000-1000

statistics

显示存储在日志缓冲区信息的数量

-

命令模式

特权模式

默认配置

不指定消息数时默认显示20,从新到旧显示。

使用说明

举例说明

显示在交换机日志缓冲区中的所有日志信息数量

Switch# show logging buffer statistics
Logging buffer statistics:
============================================================
Total processed 153 entries
Total dropped 0 entries
Current have 153 entries
The latest message is:
Aug  6 16:06:44 Switch3 IMISH-6: ready to service
The oldest message is:
Aug  6 13:38:38 Switch LOGGING-5: logging starting up; version=\'2.0rc4\'

相关命令

show logging

15.3Mirror 命令

15.3.1monitor session destination interface

命令功能

使用“monitor session destination interface”命令配置镜像目的端口。

在原命令之前加上关键字“no”删除该配置。

命令语法

monitor session SESSION-ID destination interface IFNAME

no monitor session SESSION destination

参数

参数说明

参数取值

SESSION-ID

镜像会话编号

1-3

IFNAME

镜像目的端口

支持物理口,聚合口和隧道口

命令模式

全局配置模式

默认配置

使用说明

同一个镜像会话只能有一个镜像目的,不能同时配置本地镜像目的端口和远程镜像目的vlan

(关于远程镜像,详见3.8 monitor session destination remote这一章节。)

举例说明

配置eth-0-1为镜像会话1的目的端口

Switch# configure terminal
Switch(config)# monitor session 1 destination interface eth-0-1

删除该配置

Switch# configure terminal
Switch(config)# no monitor session 1 destination

相关命令

monitor session SESSION-ID source interface

monitor session SESSION-ID source vlan

show monitor

15.3.2monitor session destination cpu

命令功能

使用“monitor session destination cpu”命令配置镜像目的为cpu

在原命令之前加上关键字“no”删除该配置。

命令语法

monitor session SESSION-ID destination cpu

no monitor session SESSION-ID destination

参数

参数说明

参数取值

SESSION-ID

镜像会话编号

1-3

destination cpu

镜像目的端口

-

命令模式

全局配置模式

默认配置

使用说明

镜像目的支持配置cpu

同一个镜像会话只能有一个镜像目的,不能同时配置本地镜像目的端口和远程镜像目的vlan

(关于远程镜像,详见monitor session destination remote这一章节。)

举例说明

配置cpu为镜像会话1的目的

Switch# configure terminal
Switch(config)# monitor session 1 destination cpu

删除该配置

Switch# configure terminal
Switch(config)# no monitor session 1 destination

相关命令

monitor session SESSION-ID source interface

monitor session SESSION-ID source vlan

show monitor

15.3.3monitor session destination group

命令功能

使用“monitor session destination group”命令创建镜像目的端口组,并进入镜像目的端口组模式。

在原命令之前加上关键字“no”删除该配置。

命令语法

monitor session SESSION-ID destination group GROUP-ID

no monitor session SESSION-ID destination

参数

参数说明

参数取值

SESSION-ID

镜像会话编号

1-3

Destination group GROUP-ID

镜像目的端口组编号

1-32

命令模式

全局配置模式

默认配置

使用说明

支持多个镜像会话可以配置为镜像目的端口组,一个目的端口组可以配置多个镜像目的端口, 这个端口可以是物理口,也可以是聚合链路口。

同一个镜像会话只能有一个镜像目的组,不能同时配置本地镜像目的端口和远程镜像目的vlan

(关于远程镜像,详见monitor session destination remote这一章节。)

举例说明

配置创建镜像会话1的目的端口组1

Switch# configure terminal
Switch(config)# monitor session 1 destination group 1

删除该配置

Switch# configure terminal
Switch(config)# no monitor session 1 destination

相关命令

monitor session SESSION-ID source interface

member

show monitor

15.3.4member

命令功能

使用“member”命令配置镜像目的组的目的端口。

在原命令之前加上关键字“no”删除该配置。

命令语法

member ( IFPHYSICAL | AGG )

参数

参数说明

参数取值

IFPHYSICAL

镜像目的端口组成员端口

支持物理口

AGG

镜像目的端口组成员端口

支持聚合口

命令模式

多目的镜像组配置模式

默认配置

使用说明

镜像目的端口可以是物理端口,也可以是聚合端口,vlan端口不行。

同一个镜像会话只能有一个镜像目的组,不能同时配置本地镜像目的端口组和远程镜像目的vlan

(关于远程镜像,详见monitor session destination remote这一章节。)

举例说明

配置eth-0-1为镜像会话目的端口组1的目的端口成员

Switch# configure terminal
Switch(config)# monitor session 1 destination group 1
Switch(config-monitor-d-group)# member eth-0-1

删除该配置

Switch# configure terminal
Switch(config)# monitor session 1 destination group 1
Switch(config-monitor-d-group)# no member eth-0-1

相关命令

monitor session SESSION-ID source interface

monitor session SESSION-ID destination group GROUP-ID

show monitor

15.3.5monitor session source interface

命令功能

使用“monitor session source interface”命令,配置镜像源端口。

在原命令前加上关键字“no”删除该配置。

命令语法

monitor session SESSION-ID source interface interface ( both | tx | rx )

no monitor session SESSION-ID source interface IFNAME ( both | tx | rx )

参数

参数说明

参数取值

SESSION-ID

镜像会话编号

1-3

source interface IFNAME

指定镜像源端口

支持物理口和聚合口

both

镜像源端口上收到和发送的报文流量

-

rx

镜像源端口上收到的报文流量

-

tx

镜像源端口上发送的报文流量

-

命令模式

全局配置模式

默认配置

使用说明

镜像源端口可以是物理端口,也可以是聚合端口。

如果不特别指明方向(双向、接收、发送),那么默认值是双向。

举例说明

配置eth-0-11为镜像会话1的源端口

Switch# configure terminal
Switch(config)# monitor session 1 source interface eth-0-11

删除该配置

Switch# configure terminal
Switch(config)# no monitor session 1 source interface eth-0-11

相关命令

monitor session SESSION-ID destination

show monitor

15.3.6monitor session source vlan

命令功能

使用“monitor session source vlan”命令,配置镜像源vlan

在原命令前加上关键字”no”删除该配置。

命令语法

monitor session SESSION-ID source vlan VLAN-ID ( both | tx | rx )

no monitor session SESSION-ID source vlan VLAN-ID ( both | tx | rx )

参数

参数说明

参数取值

SESSION-ID

镜像会话编号

1-3

VLAN-ID

镜像源vlan

1-4094

both

镜像源vlan上收到和发送的报文流量

-

rx

镜像源vlan上收到的报文流量

-

tx

镜像源vlan上发送的报文流量

-

命令模式

全局配置模式

默认配置

使用说明

如果不特别指明方向(双向、接收、发送),那么默认值是双向。

配置镜像源vlan之前,必须先在“vlan database”模式下创建vlan,且在全局创建vlan Interface

举例说明

创建vlanvlan Interface

Switch# configure terminal
Switch(config)# vlan database
Switch(config-vlan)# vlan 2
Switch(config-vlan)# exit
Switch(config)#interface vlan2
Switch(config-if)#exit

配置vlan 2为镜像会话1的源vlan

Switch# configure terminal
Switch(config)# monitor session 1 source vlan 2 both

配置vlan 2为镜像会话1的源vlan,观察接收方向的报文

Switch# configure terminal
Switch(config)# monitor session 1 source vlan 2 rx

配置vlan 2为镜像会话1的源vlan,观察发送方向的报文

Switch# configure terminal
Switch(config)# monitor session 1 source vlan 2 tx

删除配置镜像

Switch# configure terminal
Switch(config)#no monitor session 1 source vlan 2 both

删除vlan 2

Switch# configure terminal
Switch(config)#no interface vlan2
Switch(config)# vlan database
Switch(config-vlan)# no vlan 2
Switch(config-vlan)# exit

相关命令

monitor session destination

show monitor

vlan database

vlan VLAN-ID

interface vlan VLAN-ID

15.3.7monitor session source cpu

命令功能

使用“monitor session source cpu”命令,配置镜像源cpu

在原命令前加上关键字”no”删除该配置。

命令语法

monitor session SESSION-ID source cpu ( both | tx | rx )

no monitor session SESSION-ID source cpu ( both | tx | rx )

参数

参数说明

参数取值

SESSION-ID

镜像会话编号,有效值为1,只支持配置session 1

1-3

cpu

镜像源cpu

-

both

镜像源cpu上收到和发送的报文流量

-

rx

镜像源cpu上收到的报文流量

-

tx

镜像源cpu上发送的报文流量

-

命令模式

全局配置模式

默认配置

使用说明

如果不特别指明方向(双向、接收、发送),那么默认值是双向。

镜像源cpu 只支持配在session 1上,其他session不可以配置。

举例说明

配置cpu为镜像会话1的源

Switch# configure terminal
Switch(config)# monitor session 1 source cpu both

配置cpu为镜像会话1的源,观察接收方向的报文

Switch# configure terminal
Switch(config)# monitor session 1 source cpu rx

配置cpu为镜像会话1的源,观察发送方向的报文

Switch# configure terminal
Switch(config)# monitor session 1 source cpu tx

删除配置镜像

Switch# configure terminal
Switch(config)#no monitor session 1 source cpu both

相关命令

monitor session destination

show monitor

15.3.8monitor session destination interface tunnel

命令功能

使用“monitor session destination interface tunnel”命令配置ERSPAN目的。

在原命令前加上关键字“no”删除该配置。

命令语法

monitor session SESSION-ID destination interface IFTUNNEL

no monitor session SESSION-ID destination interface IFTUNNEL

参数

参数说明

参数取值

SESSION-ID

镜像会话编号,有效范围1-3

1-3

IFTUNNEL

镜像报文的出口tunnel,有效范围0-1023

0-1023

命令模式

全局配置模式

默认配置

使用说明

在配置ERSPAN目的之前,必须先配置tunnel及其 mode

目的只能是tunnel

Tunnel相关配置参考文档”IP_Service_CLI_ch.doc”

举例说明

创建tunnel

Switch# configure terminal
Switch (config)# interface tunnel
Switch (config-vlan)# tunnel mode erspan
Switch (config-vlan)# exit

指定tunnel1ERSPAN镜像会话1的目的:

Switch# configure terminal
Switch(config)# monitor session 1 destination interface tunnel1

删除远程镜像目的配置:

Switch# configure terminal
Switch(config)# no monitor session 1 destination

删除tunnel

Switch# configure terminal
Switch (config)# no interface tunnel1
Switch (config-vlan)# exit

相关命令

monitor session SESSION-ID source interface

monitor session SESSION-ID source vlan

interface tunnel

tunnel mode mode

15.3.9monitor session destination remote

命令功能

使用“monitor session destination remote”命令配置远程端口镜像的目的vlan和出端口。

在原命令前加上关键字“no”删除该配置。

命令语法

monitor session SESSION-ID destination remote vlan VLAN-ID interface IFNAME

no monitor session SESSION-ID destination remote vlan

参数

参数说明

参数取值

SESSION-ID

镜像会话编号

1-3

VLAN-ID

远程端口镜像的目的vlan

2-4094

IFNAME

镜像报文的出端口

支持物理口和聚合口

命令模式

全局配置模式

默认配置

使用说明

在配置远程端口镜像目的vlan之前,必须先在““vlan database”中配置该vlan

出端口可以是物理端口,也可以是聚合端口。

为了防止出端口中出现泛洪的报文,影响观察结果,可以将默认vlan移出该端口。(详见vlan命令手册中的“switchport trunk allowed vlan remove 1”章节)

举例说明

创建vlan2

Switch# configure terminal
Switch(config)# vlan database
Switch(config-vlan)# vlan 2
Switch(config-vlan)# exit

指定vlan 2为镜像会话1的远程目的vlaneth-0-1为出端口

Switch# configure terminal
Switch(config)# monitor session 1 destination remote vlan 2 interface eth-0-1

删除远程镜像目的配置

Switch# configure terminal
Switch(config)# no monitor session 1 destination remote vlan

删除vlan

Switch# configure terminal
Switch(config)# vlan database
Switch(config-vlan)# no vlan 2
Switch(config-vlan)# exit

相关命令

monitor session SESSION-ID source interface

monitor session SESSION-ID source vlan

vlan database

vlan VLAN-ID

15.3.10monitor mac escape

命令功能

使用“monitor mac escape”命令配置远程镜像的mac地址例外功能。配置了mac地址例外表项以后,报文的目的地址匹配到表项的时候就不会被远程镜像复制(不包括ERSPAN)。

在原命令前加上关键字“no”删除mac地址例外表项。

命令语法

monitor mac escape MAC MASK

no monitor mac escape ( MAC MASK | )

参数

参数说明

参数取值

MAC

mac地址

mac地址,格式为HHHH. HHHH. HHHH

MASK

mac地址掩码

mac地址掩码,格式为HHHH. HHHH. HHHH

命令模式

全局配置模式

默认配置

使用说明

Mac地址例外表项只对远程镜像有效,不影响本地镜像。

配置了mac地址例外表项以后,报文的目的地址匹配到表项的时候就不会被远程镜像复制。

全局最多支持两个表项。删除的时候如果不指定mac地址和mac掩码,将会删除所有表项。

举例说明

配置mac地址00cc.1122.3344,掩码ffff.ffff.0000的表项

Switch# configure terminal
Switch(config)# monitor mac escape 00cc.1122.3344 ffff.ffff.0000

删除该表项

Switch# configure terminal
Switch(config)# no monitor mac escape 00cc.1122.3344 ffff.ffff.0000

相关命令

monitor session SESSION-ID destination remote

15.3.11show monitor

命令功能

使用“show monitor”命令,显示镜像相关配置。

命令语法

show monitor ( session SESSION-ID )

参数

参数说明

参数取值

SESSION-ID

镜像会话编号

1-3

命令模式

特权模式

默认配置

使用说明

如果不指定镜像会话号,所有表项都会被显示。

举例说明

显示命令的输出结果

DUT1# show monitor
session 1
Session   1
----------
Status             : Valid
Type               : Local Session
Source Ports       :
  Receive Only     :
  Transmit Only    :
  Both             : eth-0-2
Source VLANs       :
  Receive Only     :
  Transmit Only    :
  Both             :
Destination Port   : eth-0-1

相关命令

monitor session SESSION-ID source interface

monitor session SESSION-ID source vlan

monitor session SESSION-ID source cpu

monitor session SESSION-ID destination interface

monitor session SESSION-ID destination remote

monitor session SESSION-ID destination cpu

15.3.12show monitor mac escape

命令功能

使用“show monitor mac escape”显示mac地址例外的表项。

命令语法

show monitor mac escape

命令模式

特权模式

默认配置

使用说明

该命令可以显示出mac地址例外的表项个数和表项内容。

举例说明

显示命令的输出结果

Switch# show monitor mac escape
-------------------------------------------------------------
            monitor rspan mac escape database
-------------------------------------------------------------
count   : 1
-------------------------------------------------------------
Mac     : 00:cc:11:22:33:44
Mask    : ff:ff:ff:ff:00:00
-------------------------------------------------------------

相关命令

monitor mac escape MAC MASK

15.3.13monitor destination forwarding enable

命令功能

使用该命令,配置镜像目的端口可支持报文正常转发。

在原命令前加上关键字“no”删除该配置。

命令语法

monitor destination forwarding enable

no monitor destination forwarding enable

命令模式

全局配置模式

默认配置

使用说明

如果有任何镜像目的端口已配,不可以改变本特性。

举例说明

配置目的端口支持转发

Switch# configure terminal
Switch(config)# monitor destination forwarding enable

相关命令

monitor session SESSION-ID destination

show monitor

15.3.14monitor cpu set packet buffer

命令功能

使用该命令,配置mirror cpu的报文存储空间大小,默认值最大为1000个包

在原命令前加上关键字“no”删除该配置。

命令语法

monitor cpu set packet buffer SIZE

no monitor cpu set packet buffer

参数

参数说明

参数取值

SIZE

缓冲区大小

1-1000, 单位:报文

命令模式

全局配置模式

默认配置

默认值为1000

使用说明

<1-1000>为报文mirrorcpu存储报文的个数,默认值为1000

举例说明

配置mirror cpu的报文内存存储空间

Switch# configure terminal
Switch(config)# monitor cpu set packet buffer 50

相关命令

show monitor cpu packet buffer size

15.3.15monitor cpu capture packet

命令功能

使用该命令,使能将mirror cpu的报文写入文件中,默认未使能。

命令语法

monitor cpu capture packet ( start | stop )

参数

参数说明

参数取值

start

开始抓包

-

stop

停止抓包

-

命令模式

特权模式

默认配置

stop

使用说明

当执行start命令,使能将mirror cpu 的报文写入txt 文本中,文件名是默认创建,存储在flash/mirror/下。

当执行stop命令,去使能(停止)mirrorcpu的报文写入txt文本中。

举例说明

使能mirror cpu的抓包功能,写入文件中

Switch# configure terminal
Switch(config)# monitor cpu capture packet start

去使能mirror cpu的抓包功能

Switch# configure terminal
Switch(config)# monitor cpu capture packet stop

相关命令

pcap convert FILENAMEA FILENAMEB

15.3.16monitor cpu capture strategy

命令功能

使用该命令,配置mirror cpu的抓包策略,默认值情况为replace,即当内存buffer 满之后,用新报文替换旧报文。

命令语法

monitor cpu capture strategy ( replace | drop )

参数

参数说明

参数取值

replace

mirror cpu 内存buffer满之后,新来的报文会替换最旧的报文

-

drop

mirror cpu 内存buffer 满之后,丢弃新来的报文

-

命令模式

全局配置模式

默认配置

默认是replace模式

使用说明

举例说明

配置mirror cpu 抓包策略为replace

Switch# configure terminal
Switch(config)# monitor cpu capture strategy replace

配置 mirror cpu 抓包策略为drop

Switch# configure terminal
Switch(config)# monitor cpu capture strategy drop

相关命令

show monitor cpu capture strategy

15.3.17show monitor cpu packet

命令功能

使用该命令,显示mirror cpu的内存中存储的报文。

命令语法

show monitor cpu packet ( all | PACKET-ID )

参数

参数说明

参数取值

all

显示所有mirror cpu的报文

-

PACKET-ID

显示指定报文

1-1000

命令模式

特权模式

默认配置

使用说明

举例说明

显示所有mirror cpu的报文

show monitor cpu packet all

Switch(config)# show monitor cpu packet all

相关命令

monitor session SESSION-ID destination cpu

15.3.18clear monitor cpu packet all

命令功能

使用该命令,清除mirror cpu的内存中存储的报文。

命令语法

clear monitor cpu packet all

命令模式

特权模式

默认配置

使用说明

清除mirror cpu 内存buffer里面所有的报文

举例说明

清除mirror cpu内存buffer 里面所有的报文

clear monitor cpu packet all

Switch(config)# clear monitor cpu packet all

相关命令

show monitor cpu packet (all|<1-1000>)

15.3.19show monitor cpu packet buffer-size

命令功能

使用该命令,显示mirror cpu 当前申请的内存空间大小

命令语法

show monitor cpu packet buffer-size

命令模式

特权模式

默认配置

使用说明

显示mirror cpu当前申请的内存空间大小,该大小为最大存储报文个数

举例说明

显示mirror cpu 当前申请的内存空间大小

show monitor cpu packet buffer-size

Switch(config)# show monitor cpu packet buffer-size

相关命令

monitor cpu set packet buffer <1-1000>

15.3.20show monitor cpu capture strategy

命令功能

使用该命令,显示mirror cpu 当前抓包策略

命令语法

show monitor cpu capture strategy

命令模式

特权模式

默认配置

使用说明

显示mirror cpu当前的抓包策略,replace或者drop

举例说明

显示mirror cpu 当前抓包策略

show monitor cpu capture strategy

Switch(config)# show monitor cpu capture strategy

相关命令

monitor cpu capture strategy (replace|drop)

15.4设备管理命令

15.4.1temperature

命令功能

使用此命令配置系统温度阈值。

命令语法

termperature LOW HIGH CRITICAL

no termperature

参数

参数说明

参数取值

LOW

低温温度范围

45-50, 单位:摄氏度

HIGH

高温温度范围

50-85, 单位:摄氏度

CRITICAL

高危温度范围

55-100, 单位:摄氏度

命令模式

全局配置模式

默认配置

默认阈值是低温5,高温75,高危温度90

使用说明

温度单位为摄氏度。

高危温度必须高于高温温度至少5度。

高温温度必须高于低温温度至少5度。

举例说明

以下示例显示如何配置温度阈值

Switch# configure terminal
Switch(config)# temperature 5 70 90

相关命令

show environment

15.4.2show environment

命令功能

使用此命令显示硬件环境信息。

命令语法

show environment ( slot ID | )

参数

参数说明

参数取值

ID

堆叠情况下的member号,非堆叠情况下不支持slot id

1-29

命令模式

特权模式

默认配置

使用说明

举例说明

以下示例显示如何查看硬件环境信息

Switch# show environment
Fan tray status:
Index     Status   
1         PRESENT
FanIndex   Status SpeedRate Mode
1-1        OK      30%      Auto
1-2        OK      30%      Auto
1-3        OK      30%      Auto
---------------------------------------------------------
Power status:
Index     Status    Power     Type      Alert    
1         PRESENT   OK        AC        NO       
2         ABSENT    -         -         -        
---------------------------------------------------------
Sensor status (Degree Centigrade):
Index Temperature  Lower_alarm  Upper_alarm Critical_limit
1     64           5            75          90

相关命令

temperature

15.4.3boot system

命令功能

使用此命令指定交换机启动时加载的系统image

命令语法

boot system ( GFLASHFILE | tftp: mgmt-if IP_ADDR GTFTPFLIE )

参数

参数说明

参数取值

GFLASHFILE

这个文件将会在系统启动时被加载

Flash上的文件路径和文件名

IP_ADDR

tftp服务器的IP地址

IPv4 地址

tftp: mgmt-if

使用管理口

-

GTFTPFLIE

这个文件将会在系统启动时被加载

Tftp服务器上的文件名

命令模式

特权模式

默认配置

使用说明

举例说明

以下示例显示如何指定交换机启动时从tftp加载image

Switch# boot system tftp: mgmt-if 10.10.29.160 uImage.r

相关命令

15.4.4show transceiver

命令功能

使用此命令显示光模块收发器信息。

命令语法

show transceiver ( interface | ) ( detail | )

参数

参数说明

参数取值

interface

显示指定物理口的信息

-

detail

显示包括DDM信息在内的详细信息

-

命令模式

特权模式

默认配置

使用说明

举例说明

以下示例显示如何查看光模块收发器的信息

Switch# show transceiver detail
Port eth-1-2 transceiver info:
Transceiver Type: 10G Base-SR
Transceiver Vendor Name : OEM            
Transceiver PN          : SFP-10GB-SR    
Transceiver S/N         : 201033PST1077C 
Transceiver Output Wavelength: 850 nm
Supported Link Type and Length:
      Link Length for 50/125um multi-mode fiber: 80 m
      Link Length for 62.5/125um multi-mode fiber: 30 m
----------------------------------------------------------------------------
Transceiver is internally calibrated.
mA: milliamperes, dBm: decibels (milliwatts), NA or N/A: not applicable.
++ : high alarm, +  : high warning, -  : low warning, -- : low alarm.
The threshold values are calibrated.
----------------------------------------------------------------------------
             High Alarm   High Warn   Low Warn    Low Alarm
Temperature   Threshold    Threshold    Threshold     Threshold 
Port  (Celsius)      (Celsius)     (Celsius)     (Celsius)      (Celsius) 
--------- ------------------  ----------  ----------  ----------  ----------
eth-1-2  25.92       95.00         90.00      -20.00        -25.00     
--------------------------------------------------------------------------------------------------
                   High Alarm   High Warn   Low Warn    Low Alarm
       Voltage     Threshold     Threshold   Threshold     Threshold
Port     (Volts)      (Volts)       (Volts)      (Volts)       (Volts) 
--------- ----------------- ----------------  ----------------  ---------------  ---------------
eth-1-2   3.32        3.80         3.70        2.90          2.80   
---------------------------------------------------------------------------------------------------
                    High Alarm   High Warn   Low Warn    Low Alarm
         Current     Threshold     Threshold   Threshold     Threshold  
Port   (milliamperes)  (mA)         (mA)        (mA)        (mA)  
--------- ------------------  ---------------  ----------------  -----------------  -------------
eth-1-2    6.41        20.00       18.00       1.00           0.50       
-----------------------------------------------------------------------------------------------------
        Optical      High Alarm   High Warn   Low Warn    Low Alarm 
     Transmit Power   Threshold    Threshold    Threshold     Threshold   
Port   (dBm)         (dBm)       (dBm)        (dBm)       (dBm)  
--------- ------------------  ---------------  ----------------  ----------------  ---------------
eth-1-2    -2.41        2.01        1.00         -6.99         -7.96     
-------------------------------------------------------------------------------------------------------
        Optical      High Alarm   High Warn    Low Warn    Low Alarm   
     Receive Power    Threshold    Threshold     Threshold     Threshold
Port    (dBm)         (dBm)       (dBm)       (dBm)        (dBm)
--------- ------------------  ---------------  -----------------  ----------------  ----------------
eth-1-2     -12      -     1.00        0.00        -19.00      -20.00     
-------------------------------------------------------------------------------------------------------

相关命令

15.4.5update bootrom

命令功能

使用此命令更新bootrom image

命令语法

update bootrom ( flash | udisk )

参数

参数说明

参数取值

flash

源文件目录

-

udisk

源文件目录

-

命令模式

全局配置模式

默认配置

使用说明

举例说明

以下示例显示如何更新bootrom image

Switch# configure terminal
Switch(config)# update bootrom flash:/boot/ bootrom.bin

相关命令

15.4.6show reboot-info

命令功能

用此命令显示reboot info

命令语法

show reboot-info ( slot ID | )

参数

参数说明

参数取值

ID

堆叠情况下的member号,非堆叠情况下不支持slot id

1-29

命令模式

特权模式

默认配置

使用说明

重启类型

说明

POWER

断电重启

MANUAL

系统下手动reboot/reload重启

HIGH-TMPR

高温异常重启

BHMDOG

BHM看门狗重启,用于监控系统各个功能模块

LCMDOG

LCM看门狗重启,用于监控LC

SCHEDULE

定时重启

SNMP-RELOAD

SNMP重启

HALFAIL

HAGTHSRV通讯异常重启,需要stack功能开启

ABNORMAL

系统非正常方式重启,包括shell下的reboot

CTCINTR

按键重启

LCATTACH

LC匹配异常重启

OTHER

其他重启

举例说明

以下示例显示如何显示reboot info

Switch# show reboot-info
Times      Reboot Type     Reboot Time (UTC)  
----------+---------------+--------------------
1          MANUAL          2023-01-04 20:54:22
2          MANUAL          2023-01-04 21:00:30
3          MANUAL          2023-01-04 21:06:53
4          MANUAL          2023-01-04 21:10:13
5          MANUAL          2023-01-04 21:14:16
6          MANUAL          2023-01-04 21:20:50

相关命令

15.5Bootrom 命令

15.5.1version

命令功能

使用此命令显示Bootrom 版本信息。

命令语法

version

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何查看Bootrom版本

bootrom:> version

U-Boot A.1.0 (Jun 25 2018 - 12:32:40)
aarch64-linux-gnu-gcc (Linaro GCC 6.3-2017.02) 6.3.1 20170109
GNU ld (Linaro_Binutils-2017.02) 2.27.0.20161019

相关命令

15.5.2setenv

命令功能

使用此命令设置Bootrom环境变量。

命令语法

setenv ( ipaddr | serverip IP_ADDR | bootcmd boot arguments )

参数

参数说明

参数取值

IP_ADDR

本地或者tftp服务器的IP地址

IPv4 地址

boot arguments

flash或者从tftp服务器加载image重启

-

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何设置设备IP地址作为环境变量

bootrom:> setenv ipaddr 10.10.29.48

以下示例显示如何设置TFTP服务器IP地址作为环境变量

bootrom:> setenv serverip 10.10.29.160

以下示例显示如何设置boot命令作为环境变量

bootrom:> setenv bootcmd boot_flash OS-ma-v3.0.1.it.r.bin

相关命令

15.5.3saveenv

命令功能

使用此命令永久保存Bootrom环境变量。

命令语法

saveenv

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何永久保存Bootrom环境变量

bootrom:> saveenv

相关命令

printenv

15.5.4printenv

命令功能

使用此命令永久保存Bootrom环境变量。

命令语法

printenv

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何查看Bootrom环境变量

bootrom:> printenv
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=spi0.0:1m(uboot),5m(kernel),1m(dtb),9m(file_system) bootimage=TftpFile://10.10.38.160:switchOS-v6.0.1.33.r.bin U-Boot A.1.0  selfip=10.10.39.83 eeprom_info=ff ff ff ff ff ff ff ff ff ff
bootcmd=boot_flash
bootdelay=10
eth1addr=00:1E:08:11:06:5C
ethact=FM1@DTSEC3
ethaddr=00:1E:08:11:06:5C
ethprime=FM1@DTSEC3
fdtcontroladdr=fbc26638
fman_ucode=fbc33650
ipaddr=10.10.39.83
serverip=10.10.38.160
stderr=serial
stdin=serial
stdout=serial

Environment size: 576/8188 bytes

相关命令

setenv

15.5.5reset

命令功能

使用此命令完成CPU的复位。

命令语法

reset

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何在Bootrom下将CPU复位

bootrom:> reset

相关命令

saveenv

15.5.6ping

命令功能

使用此命令发送ICMP ECHO_REQUEST到网络主机。

命令语法

ping IP_ADDR

参数

参数说明

参数取值

IP_ADDR

远端IPaddress

IPv4 地址

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

这个例子用来说明怎样在Bootrom下使用ping命令

Bootrom:> ping 10.10.38.160
Using FM1@DTSEC3 device
host 10.10.38.160 is alive

相关命令

saveenv

15.5.7ctcls

命令功能

使用此命令列出一个目录下的文件(默认为 /)

命令语法

ctcls

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何列出一个目录中的文件(默认为 /)

Bootrom:>ctcls
Bootrom:> ctcls
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
<DIR>       4096 boot
<DIR>       4096 cfg
<DIR>       4096 info
<DIR>       4096 log
<DIR>       4096 conf
<DIR>       4096 cold
<DIR>       4096 reboot-info
<DIR>       4096 monitor
<DIR>       4096 capwap
            1682 startup-config.conf

相关命令

15.5.8boot_tftp

命令功能

使用此命令指定TFTP服务器中的image启动系统。

命令语法

boot_tftp IMAGE_NAME

参数

参数说明

参数取值

IMAGE_NAME

tftp服务器上Image名字

-

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何通过TFTP服务器boot系统

bootrom:> boot_tftp OS-ma-v3.0.1.it.r.bin

相关命令

15.5.9boot_tftp_nopass

命令功能

使用此命令指定TFTP服务器中默认配置的系统image启动系统。

命令语法

boot_tftp_nopass IMAGE_NAME

参数

参数说明

参数取值

IMAGE_NAME

tftp服务器上Image名字

-

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何通过TFTP服务器boot系统

bootrom:> boot_tftp_nopass OS-ma-v3.0.1.it.r.bin

相关命令

15.5.10boot_flash

命令功能

使用此命令指定flash中系统image或默认的image来启动系统。

命令语法

boot_flash IMAGE_NAME

参数

参数说明

参数取值

IMAGE_NAME

flash上的Image名字

-

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何在boot系统通过flash中指定的系统image

bootrom:> boot_flash

相关命令

15.5.11boot_flash_nopass

命令功能

使用此命令能指定flash中系统image或默认image启动系统。

命令语法

boot_flash_nopass IMAGE_NAME

参数

参数说明

参数取值

IMAGE_NAME

flash上的Image名字

-

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何通过flash中指定的image启动系统

bootrom:> boot_flash_nopass /boot/OS-ma-v3.0.1.it.r.bin
Do you want to  revert  to the default config file ? [Y|N|E]:Y

相关命令

15.5.12upgrade_uboot

命令功能

使用此命令通过TFTP服务器更新Bootromimage

命令语法

upgrade_uboot IMAGE_NAME

参数

参数说明

参数取值

IMAGE_NAME

TFTP服务器Image 名字

-

命令模式

Bootrom CLI

默认配置

使用说明

举例说明

以下示例显示如何通过TFTP服务器更新U-bootimage

bootrom:> upgrade_uboot u-boot.bin

相关命令

15.6Bootup Diagnostic命令

15.6.1diagnostic bootup level

命令功能

使用这个命令可以配置交换机下次启动的启动诊断等级。

命令语法

diagnostic bootup level ( minimal | complete )

no diagnostic bootup level

参数

参数说明

参数取值

minimal

最小bootup level 测试

-

complete

完全bootup level 测试

-

命令模式

全局配置模式

默认配置

使用说明

举例说明

这个样例用来显示如何配置启动诊断等级

Switch# configure terminal
Switch(config)# diagnostic bootup level minimal

相关命令

15.6.2show diagnostic bootup level

命令功能

使用这个命令可以查看启动诊断等级。

命令语法

show diagnostic bootup level

命令模式

特权模式

默认配置

使用说明

举例说明

这个样例用来显示查看启动诊断等级

Switch# show diagnostic bootup level
The current running bootup diag level is complete
The next running bootup diag level is complete

相关命令

15.6.3show diagnostic bootup result

命令功能

使用这个命令可以查看系统启动后,启动诊断的诊断结果。

命令语法

show diagnostic bootup result ( detail | ) ( slot ID | )

参数

参数说明

参数取值

detail

详细信息

-

ID

堆叠情况下的member

1-29

命令模式

特权模式

默认配置

使用说明

举例说明

这个样例用来显示查看启动诊断的诊断结果

Switch# show diagnostic bootup result detail
#########################################################
Item Name                      Attribute Result Time(usec)
1    EPLD TEST                 C         Pass   57
2    EEPROM0 TEST              C         Pass   101262
3    PHY TEST                  C         Pass   1161
4    FAN TEST                  C         Pass   4668
5    SENSOR TEST               C         Pass   5472
6    PSU TEST                  C         Pass   1370
7    L2 UCAST FUNC TEST        C         Pass   40126

相关命令

15.7SmartConfig 命令

15.7.1smart-config

命令功能

使用此命令配置smartconfig功能。使用no关键字,取消某项设置。

命令语法

smart-config ( initial-switch-deployment | hostname-prefix )

no smart-config ( initial-switch-deployment | hostname-prefix )

参数

参数说明

参数取值

initial-switch-deployment

启用smartconfig初始化配置功能

-

hostname-prefix

启用主机名获得功能

-

命令模式

全局配置模式

默认配置

Smartconfig初始化配置功能和主机名获得功能被启用。

使用说明

Smartconfig是一种设备启动时完成初始化配置的功能。设备在启动时如果没有startup-config文件,并且initial-switch-deployment功能被启用,则开始启动smartconfig工作流程。

举例说明

启用smartconfig功能

Switch# configure terminal
Switch(config)# smart-config initial-switch-deployment

关闭smartconfig功能

Switch# configure terminal
Switch(config)# no smart-config initial-switch-deployment

相关命令

ip address dhcp

show smart-config config

15.7.2show smart-config config

命令功能

使用此命令显示smartconfig的配置信息。

命令语法

show smart-config config

命令模式

特权模式

默认配置

使用说明

举例说明

查看smartconfig功能当前的配置

Switch# show smart-config config
Smart-Config config:
initial-switch-deployment: on
hostname-prefix: on

Send log message to console: on

相关命令

ip address dhcp

smart-config

15.8Debian命令

15.8.1bash

命令功能

使用此命令进入debian shell模式

命令语法

bash

命令模式

特权模式

默认配置

使用说明

仅在带debian功能的image下可见

举例说明

以下示例显示如何进入debian shell

Switch# bash
switch@ Switch:~$

相关命令

15.8.2show debian-version

命令功能

使用此命令查看debian版本信息

命令语法

show debian-version

命令模式

特权模式

默认配置

使用说明

仅在带debian功能的image下可见

举例说明

以下示例显示如何查看debian版本信息

Switch# show debian-version
Debian version is 8.11

相关命令

15.9设备阈值管理命令

15.9.1cpu threshold alarm

命令功能

使用此命令配置cpu告警阈值以及清除告警阈值。

使用此命令的no格式将cpu告警阈值以及清除告警阈值恢复为缺省值。

命令语法

cpu threshold alarm ALARM restore RESTORE ( slot SLOT | )

no cpu threshold ( slot SLOT | )

参数

参数说明

参数取值

ALARM

告警阈值

[5, 100]

RESTORE

清除告警阈值

[1, alarm-value - 3]

SLOT

堆叠情况下的member号,非堆叠情况下不支持slot id

[1, 15]

命令模式

全局配置模式

默认配置

CPU告警阈值缺省值为90CPU清除告警阈值缺省值为50

使用说明

非堆叠设备不支持配置SLOT

当堆叠设备配置此命令而不指定SLOT时,表示配置全局阈值;当堆叠设备的SLOT和全局都有配置时,优先生效的是指定SLOT的配置值。

举例说明

设置告警阈值以及清除告警阈值

Switch# configure terminal
Switch(config)# cpu threshold alarm 50 restore 20

恢复cpu告警阈值以及清除告警阈值为默认值

Switch# configure terminal
Switch(config)# no cpu threshold

设置堆叠设备特定SLOTCPU告警阈值以及清除告警阈值

Switch# configure terminal
Switch(config)# cpu threshold alarm 50 restore 20 slot 1

恢复堆叠设备特定SLOTCPU告警阈值以及清除告警阈值为默认值

Switch# configure terminal

Switch(config)# no cpu threshold alarm slot 1

相关命令

show cpu threshold

15.9.2show cpu threshold

命令功能

使用此命令显示CPU阈值的配置信息。

命令语法

show cpu threshold ( slot SLOT | )

参数

参数说明

参数取值

SLOT

堆叠情况下的member号,非堆叠情况下不支持slot id

[1, 15]

命令模式

特权模式

默认配置

使用说明

非堆叠设备不支持指定SLOT

举例说明

查看CPU告警阈值以及清除告警阈值

Switch# show cpu threshold
Slot 1 CPU alarm threshold: 90%; restore threshold: 50%
Slot 2 CPU alarm threshold: 30%; restore threshold: 20%

查看堆叠设备指定SLOTCPU告警阈值以及清除告警阈值

Switch# show cpu threshold slot 1
Slot 1 CPU alarm threshold: 90%; restore threshold: 50%

相关命令

cpu threshold alarm

15.9.3memory threshold alarm

命令功能

使用此命令配置内存告警阈值以及清除告警阈值。

使用此命令的no格式将内存告警阈值以及清除告警阈值恢复为缺省值。

命令语法

memory threshold alarm ALARM restore RESTORE ( slot SLOT | )

no memory threshold ( slot SLOT | )

参数

参数说明

参数取值

ALARM

告警阈值

[5, 100]

RESTORE

清除告警阈值

[1, alarm-value - 3]

SLOT

堆叠情况下的member号,非堆叠情况下不支持slot id

[1, 15]

命令模式

全局配置模式

默认配置

内存告警阈值缺省值为90,内存清除告警阈值缺省值为50

使用说明

非堆叠设备不支持配置SLOT

当堆叠设备配置此命令而不指定SLOT时,表示配置全局阈值;当堆叠设备的SLOT和全局都有配置时,优先生效的是指定SLOT的配置值。

举例说明

设置告警阈值以及清除告警阈值

Switch# configure terminal
Switch(config)# memory threshold alarm 50 restore 20

恢复内存告警阈值以及清除告警阈值为默认值

Switch# configure terminal
Switch(config)# no memory threshold

设置堆叠设备指定slot的内存告警阈值以及清除告警阈值

Switch# configure terminal
Switch(config)# memory threshold alarm 50 restore 20 slot 1

恢复堆叠设备指定slot的内存告警阈值以及清除告警阈值为默认值

Switch# configure terminal

Switch(config)# no memory threshold alarm slot 1

相关命令

show memory threshold

15.9.4show memory threshold

命令功能

使用此命令显示内存阈值的配置信息。

命令语法

show memory threshold ( slot SLOT | )

参数

参数说明

参数取值

SLOT

堆叠情况下的member号,非堆叠情况下不支持slot id

[1, 15]

命令模式

特权模式

默认配置

使用说明

非堆叠设备不支持指定SLOT

举例说明

查看内存告警阈值以及清除告警阈值

Switch# show memory threshold
Slot 1 memory alarm threshold: 90%; restore threshold: 50%
Slot 2 memory alarm threshold: 30%; restore threshold: 20%

查看堆叠设备指定SLOT的内存告警阈值以及清除告警阈值

Switch# show memory threshold slot 1
Slot 1 memory alarm threshold: 90%; restore threshold: 50%

相关命令

memory threshold alarm

15.10POE命令

15.10.1poe global

命令功能

使用该命令配置系统PoE的全局功能使能或者禁用

命令语法

poe global ( enablb | disable )

参数

参数说明

参数取值

enable

全局使能poe

-

disable

全局禁用poe

-

命令模式

全局配置模式

默认配置

默认使能全局poe

使用说明

举例说明

如下示例,配置全局使能poe

Switch# configure terminal
Switch(config)# poe global enable

如下示例,配置全局禁用poe

Switch# configure terminal
Switch(config)# poe global disable

相关命令

show poe summary

show poe status

15.10.2poe global max-power

命令功能

使用该命令配置系统PoE的全局功耗限制。

使用该命令的no格式恢复默认全局功耗限制。

命令语法

poe global max-power PSU_POWER

no poe global max-power

参数

参数说明

参数取值

PSU_POWER

全局功耗最大值

1-6000w

命令模式

全局配置模式

默认配置

默认全局功耗以实际设备为准,请咨询售后。

使用说明

部分型号设备不支持限制全局功耗,以实际为准。

举例说明

如下示例,配置全局功耗限制

Switch# configure terminal
Switch(config)# poe global max-power 1000

如下示例,配置全局功耗限制为默认值

Switch# configure terminal
Switch(config)# no poe global max-power

相关命令

show poe summary

show poe status

15.10.3poe power-reserved

命令功能

使用该命令配置设备PoE预留功率。

使用该命令的no格式恢复默认的预留功率。

命令语法

poe power-reserved RSV_POWER

no poe power-reserved

参数

参数说明

参数取值

RSV_POWER

设备PoE预留功率

1-150000 W

命令模式

全局配置模式

默认配置

30000mw

使用说明

举例说明

如下示例,配置预留功率

Switch# configure terminal
Switch(config)# poe power-reserved 1000

如下示例,恢复预留功率为默认值

Switch# configure terminal
Switch(config)# no poe power-reserved

相关命令

show poe summary

show poe status

15.10.4poe power-threshold

命令功能

使用该命令配置设备PoE系统功率告警阈值

使用该命令的no格式恢复默认的告警阈值。

命令语法

poe power-threshold THRESHOLD

no poe power-threshold

参数

参数说明

参数取值

THRESHOLD

设备PoE系统功率告警阈值

1-100%

命令模式

全局配置模式

默认配置

0.9

使用说明

举例说明

如下示例,配置功率告警阈值

Switch# configure terminal
Switch(config)# poe power-threshold 65

如下示例,恢复功率告警阈值为默认值

Switch# configure terminal
Switch(config)# no poe power-threshold

相关命令

show poe summary

show poe status

15.10.5poe power-management policy

命令功能

使用该命令配置pse系统电源管理功率模式。

命令语法

poe power-management policy ( dynamic | static )

参数

参数说明

参数取值

dynamic

配置pse系统电源管理功率模式为动态模式;根据PD实际消耗功率分配功率

-

static

配置pse系统电源管理功率模式为静态模式;根据PD分类结果分配功率

-

命令模式

全局配置模式

默认配置

默认为动态模式

使用说明

举例说明

如下示例,配置电源管理功率模式为动态

Switch# configure terminal
Switch(config)# poe power-management policy dynamic

如下示例,配置电源管理功率模式为静态

Switch# configure terminal
Switch(config)# poe power-management policy static

相关命令

show poe summary

show poe status

15.10.6poe power-management limit-mode

命令功能

使用该命令配置pse系统最大功率模式。

命令语法

poe power-management limit-mode ( class | port )

参数

参数说明

参数取值

class

基于Class分类限制功率

-

port

基于Port端口限制功率

-

命令模式

全局配置模式

默认配置

默认为功率限制模式class

使用说明

举例说明

如下示例,配置电源管理功率模式为动态

Switch# configure terminal
Switch(config)# poe power-management policy dynamic

如下示例,配置电源管理功率模式为静态

Switch# configure terminal
Switch(config)# poe power-management policy static

相关命令

show poe summary

show poe status

15.10.7poe legacy ( disable | af | at )

命令功能

配置PSE对非标准PD的检测识别能力。

命令语法

poe power-management limit-mode ( class | port )

参数

参数说明

参数取值

disable

关闭Legacy设备检测,使能非标poe设备检测

-

af

配置端口poe模式为af模式

-

at

配置端口poe模式为at模式

-

命令模式

全局配置模式

默认配置

默认为disable

使用说明

默认关闭非标PD设备供电功能;

at:开启at协议非标d供电功能,

af:开启af非标供电功能

举例说明

如下示例,配置电源管理功率模式为动态

Switch# configure terminal
Switch(config)# poe power-management policy dynamic

如下示例,配置电源管理功率模式为静态

Switch# configure terminal
Switch(config)# poe power-management policy static

相关命令

show poe summary

show poe status

15.10.8poe

命令功能

使用该命令配置端口PoE的使能或禁用

使用该命令的no格式取消定时供电/禁用供电功能。

命令语法

poe ( enable | disable ) ( time-range NAME | )

no poe ( enable | disable ) time-range NAME

参数

参数说明

参数取值

enable

端口使能poe

-

disable

端口禁用poe

-

time-range NAME

使能或关闭Poe功能的时间段

系统存在的时间段名称

命令模式

端口配置模式

默认配置

默认端口使能poe

使用说明

举例说明

如下示例,配置端口eth-0-3使能poe

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe enable

如下示例,配置端口eth-0-3禁用poe

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe disable

相关命令

show poe status interface

show poe schedule

time-range

15.10.9poe mode

命令功能

使用该命令配置端口PoE的工作模式

命令语法

poe mode ( af | at | bt )

no poe mode

参数

参数说明

参数取值

af

配置端口poe模式为af模式

-

at

配置端口poe模式为at模式

-

bt

配置端口poe模式为bt模式

-

命令模式

端口配置模式

默认配置

默认端口为at模式

使用说明

举例说明

如下示例,配置端口eth-0-3poe模式为af

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe mode af

如下示例,配置端口eth-0-3poe模式为at

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe mode at

如下示例,配置端口eth-0-3poe模式为bt

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe mode bt

相关命令

15.10.10poe priority

命令功能

使用该命令配置端口PoE的优先级。

使用该命令的no格式恢复默认的优先级

命令语法

poe priority ( critical | high | low )

no poe priority

参数

参数说明

参数取值

critical

配置端口为poe最高优先级

-

high

配置端口为poe高优先级

-

low

配置端口为poe低优先级

-

命令模式

端口配置模式

默认配置

默认端口是最低优先级

使用说明

举例说明

如下示例,配置端口eth-0-3poe优先级为最高级

Switch# configure terminal
Switch(config-if-eth-0-3)# poe priority critical

如下示例,配置端口eth-0-3poe优先级为高级

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe priority high

如下示例,配置端口eth-0-3poe优先级为低级

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe priority low

相关命令

15.10.11poe max-power

命令功能

使用该命令配置端口PoE功耗限制。

使用该命令的no格式恢复默认功耗限制。

命令语法

poe max-power POE_POWER_CHANNLE

no poe max-power

参数

参数说明

参数取值

POE_POWER_CHANNLE

端口PoE功耗最大值

1-120000

命令模式

端口配置模式

默认配置

90000mv

使用说明

举例说明

如下示例,配置端口eth-0-3poe通道内功耗限制为15.4W

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe max-power 15400

相关命令

15.10.12poe force-power

命令功能

使用该命令配置端口PoE强制上电

使用该命令的no格式取消强制上电。

命令语法

poe force-power

no poe force-power

命令模式

端口配置模式

默认配置

不使能

使用说明

举例说明

如下示例,配置端口eth-0-3poe强制上电

Switch# configure terminal
Switch# interface eth-0-3
Switch(config-if-eth-0-3)# poe force-power

相关命令

15.10.13show poe summary

命令功能

使用此命令显示系统poe的汇总信息

命令语法

show poe summary

命令模式

特权模式

默认配置

使用说明

poe信息并不是实时更新的,存在6-15s左右的延时

举例说明

如下示例,显示poe的汇总信息

Switch# show poe summary
-------------------------------------------------
Power Source Equipment NO: 1
Operation status: enable
Channel Num for power: 48
PSE Software Version: V01.00.01.07
PSE PSU Information
      PSU1: 370 W Present
      PSU2: Absent
PSE Power Policy: Dynamic Mode
Power Limit: 370000 mW
Power Available: 367700 mW
Power Actual Consump: 2200 mW
Power Allocated: 2300 mW
Power Reserved: 30000 mW
Power Threshold: 90%
PSE Reserved Power Alert: -
PSE Threshold Power Alert: -

相关命令

15.10.14show poe status

命令功能

使用此命令系显示系统的poe状态信息

命令语法

show poe status ( interface IFNAME | )

参数

参数说明

参数取值

IFNAME

显示特定端口的poe状态

-

命令模式

特权模式

默认配置

使用说明

poe信息并不是实时更新的,存在6-15s左右的延时

举例说明

如下示例,显示所有支持poe的端口的状态信息

Switch# show poe status
Switch# show poe status
Codes : IF - interface  CH - channel    ST - enable status
        MD - mode       CL - class      PR - priority
        V - voltage(V)          mA - current(mA)        TP - temperature('C)
        GT - granted power(W)   LM - power limit(W)     CS - consumption(W)
        AP - available power(W)
        DIS - disable   EN - enable
        CR - critical   HI - high       LO - low
        OP - operation status of poe
------+----------+----+----+----+---+---+------+------+---+------+------+------
IF         CH    ST   OP   MD   CL  PR  V      mA     TP  LM      CS      AP     
eth-0-1    1-1   EN   OFF  AT   --  LO  0.0    0      31  --      0.000   --     
eth-0-2    1-2   EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-3    1-3   EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-4    1-4   EN   OFF  AT   --  LO  0.0    0      31  --      0.000   --     
eth-0-5    1-5   EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-6    1-6   EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-7    1-7   EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-8    1-8   EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-9    1-9   EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-10   1-10  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-11   1-11  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-12   1-12  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-13   1-13  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-14   1-14  EN   OFF  AT   --  LO  0.0    0      28  --      0.000   --     
eth-0-15   1-15  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-16   1-16  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-17   1-17  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-18   1-18  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-19   1-19  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-20   1-20  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-21   1-21  EN   OFF  AT   --  LO  0.0    0      32  --      0.000   --     
eth-0-22   1-22  EN   OFF  AT   --  LO  0.0    0      31  --      0.000   --     
eth-0-23   1-23  EN   OFF  AT   --  LO  0.0    0      32  --      0.000   --     
eth-0-24   1-24  EN   OFF  AT   --  LO  0.0    0      32  --      0.000   --     
eth-0-25   1-25  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-26   1-26  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-27   1-27  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-28   1-28  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-29   1-29  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-30   1-30  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-31   1-31  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-32   1-32  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-33   1-33  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-34   1-34  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-35   1-35  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-36   1-36  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-37   1-37  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-38   1-38  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-39   1-39  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-40   1-40  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-41   1-41  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-42   1-42  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-43   1-43  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-44   1-44  EN   OFF  AT   --  LO  0.0    0      28  --      0.000   --     
eth-0-45   1-45  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-46   1-46  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     
eth-0-47   1-47  EN   ON   AT   3   LO  54.5   27     30  30.000  1.500   28.500 
eth-0-48   1-48  EN   OFF  AT   --  LO  0.0    0      30  --      0.000   --     

如下示例,显示端口eth-0-1poe的状态信息

Switch# show poe status interface eth-0-1
Interface Name: eth-0-1
PoE State: enable
Legacy PD Detect: Disable
Power Channel: 1
Power limit: 55.000 W
Power Mode: AT
Port Priority: Low
Power Operation: OFF
Power Class: --
Voltage: 0.0 V
Current: 0 mA
Power Granted: 55.000 W
Power Consump: 0.000 W
Power available: 55.000 W
Temperature: 0 C
Port Fault Counter
      Disconnect Counter: 0
      Overload Counter: 0
      Short Counter: 0
      Invalid Counter: 53
      Power Deny Counter: 0

相关命令

15.10.15show poe schedule

命令功能

使用此命令查看端口设置poe定时供电计划表

命令语法

show poe schedule ( interface IFNAME | )

参数

参数说明

参数取值

IFNAME

显示特定端口的供电计划

-

命令模式

特权模式

默认配置

使用说明

举例说明

Switch# show poe schedule
Interface Action  Name     Time Range                                                                     
--------------------------------------------------------------------------------
eth-0-1   -       -        -                                                                              
eth-0-2   -       -        -                                                                              
eth-0-3   -       -        -                                                                              
eth-0-4   -       -        -                                                                              
eth-0-5   -       -        -                                                                              
eth-0-6   -       -        -                                                                              
eth-0-7   -       -        -                                                                              
eth-0-8   -       -        -                                                                              
eth-0-9   -       -        -                                                                              
eth-0-10  -       -        -                                                                              
eth-0-11  -       -        -                                                                              
eth-0-12  -       -        -                                                                              
eth-0-13  -       -        -                                                                              
eth-0-14  -       -        -                                                                              
eth-0-15  -       -        -                                                                              
eth-0-16  -       -        -                                                                              
eth-0-17  -       -        -                                                                              
eth-0-18  -       -        -                                                                              
eth-0-19  -       -        -                                                                              
eth-0-20  -       -        -                                                                              
eth-0-21  -       -        -                                                                              
eth-0-22  -       -        -                                                                              
eth-0-23  -       -        -                                                                              
eth-0-24  -       -        -                                                                              
eth-0-25  -       -        -                                                                              
eth-0-26  -       -        -                                                                              
eth-0-27  -       -        -                                                                              
eth-0-28  -       -        -                                                                              
eth-0-29  -       -        -                                                                              
eth-0-30  -       -        -                                                                              
eth-0-31  -       -        -                                                                              
eth-0-32  -       -        -                                                                              
eth-0-33  -       -        -                                                                              
eth-0-34  -       -        -                                                                              
eth-0-35  -       -        -                                                                              
eth-0-36  -       -        -                                                                              
eth-0-37  -       -        -                                                                              
eth-0-38  -       -        -                                                                              
eth-0-39  -       -        -                                                                              
eth-0-40  -       -        -                                                                              
eth-0-41  -       -        -                                                                              
eth-0-42  -       -        -                                                                              
eth-0-43  -       -        -                                                                              
eth-0-44  -       -        -                                                                              
eth-0-45  -       -        -                                                                              
eth-0-46  -       -        -                                                                              
eth-0-47  -       -        -                                                                              
eth-0-48  -       -        -                                                                              

Switch# show poe schedule interface eth-0-1
Interface Action  Name     Time Range                                                                     
--------------------------------------------------------------------------------
eth-0-1   -       -        -                                                                           

相关命令

poe