• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

09-网络管理和监控命令参考

目录

04-PoE命令

本章节下载 04-PoE命令  (203.97 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/WiNet/S5120-WiNet/Command/Command_Manual/H3C_S5120-WiNet_CR-Release_151x-6W102/09/201706/999248_30005_0.htm

04-PoE命令


1 PoE配置命令

1.1  PoE配置命令

1.1.1  apply poe-profile

【命令】

apply poe-profile { index index | name profile-name }

undo apply poe-profile { index index | name profile-name }

【视图】

PoE接口视图

【缺省级别】

2:系统级

【参数】

index index:PoE配置文件的索引,取值范围为1~100。

name profile-name:PoE配置文件的名称,为1~15个字符的字符串。

【描述】

apply poe-profile命令用来将PoE配置文件应用到当前PoE接口。undo apply poe-profile命令用来取消PoE配置文件在当前PoE接口的应用。

需要注意的是,当用命令display this显示PoE接口的配置情况时,会按照PoE配置文件的索引值显示。

相关配置可参考命令display poe-profileapply poe-profile interface

【举例】

# 将名为forIPphone的PoE配置文件应用到PoE接口GigabitEthernet1/0/1。

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] apply poe-profile name forIPphone

[Sysname-GigabitEthernet1/0/1] display this

#

interface GigabitEthernet1/0/1

 apply poe-profile index 1

#

return

1.1.2  apply poe-profile interface

【命令】

apply poe-profile { index index | name profile-name } interface interface-range

undo apply poe-profile { index index | name profile-name } interface interface-range

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

index index:PoE配置文件的索引,取值范围为1~100。

name profile-name:PoE配置文件的名称,为1~15个字符。

interface-range:以太网接口范围,表示多个以太网接口。表示方式为interface-rangeinterface-type interface-number [ to interface-type interface-number ]。其中, interface-type interface-number为接口类型和接口编号。起始接口号要小于结束接口号。接口范围可以任意,如果指定范围内存在不支持PoE的接口,PoE配置文件应用时将忽略这类接口。

【描述】

apply poe-profile interface命令用来将PoE配置文件应用到一个或多个PoE接口。undo apply poe-profile interface命令用来取消PoE配置文件在PoE接口的应用。

相关配置可参考命令display poe-profile interfaceapply poe-profile

【举例】

# 将名称为forIPphone的PoE配置文件应用到PoE接口GigabitEthernet1/0/1。

<Sysname> system-view

[Sysname] apply poe-profile name forIPphone interface gigabitethernet 1/0/1

# 将索引为1的PoE配置文件应用到PoE接口GigabitEthernet1/0/2至GigabitEthernet1/0/8。

<Sysname> system-view

[Sysname] apply poe-profile index 1 interface gigabitethernet 1/0/2 to gigabitethernet 1/0/8

1.1.3  display poe device

【命令】

display poe device [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe device命令用来显示PSE(Power Sourcing Equipment,供电设备)的相关信息。

【举例】

# 显示PSE的相关信息。(显示信息与设备的型号相关,请以设备的实际情况为准)

<Sysname> display poe device

 PSE ID  SlotNo SubSNo PortNum  MaxPower(W)  State  Model

 4        1       0       24        170            on      LSW124POED

表1-1 display poe device命令显示信息描述表

字段

描述

PSE ID

PSE编号

SlotNo

PSE所在槽位号,该字段取值为1

SubSNo

PSE所在子槽位号,该字段取值为0

PortNum

PSE上PoE接口的数量

MaxPower(W)

PSE最大供电功率(单位为:瓦)

State

PSE状态:

·     on:PSE正在供电

·     off:PSE停止供电

·     faulty:PSE故障

Model

PSE型号

 

1.1.4  display poe interface

【命令】

display poe interface [ interface-type interfece-number ] [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

interface-type interfece-number:指定接口类型及接口编号。

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe interface命令用来显示设备指定PoE接口的供电状态。

如果不指定接口,将显示所有PoE接口的供电状态。

【举例】

# 显示PoE接口GigabitEthernet1/0/1的供电状态。

<Sysname> display poe interface gigabitethernet 1/0/1

 Port Power Enabled               : disabled

 Port Power Priority              : low

 Port Operating Status            : power-deny

 Port IEEE Class                  : 0

 Port Detection Status            : disabled

 Port Power Mode                  : signal

 Port Current Power               : 0        mW

 Port Average Power               : 0        mW

 Port Peak Power                  : 0        mW

 Port Max Power                   : 30000    mW

 Port Current                     : 0        mA

 Port Voltage                     : 0.0      V

 Port PD Description              : IP Phone For Room 101

表1-2 display poe interface gigabitethernet命令显示信息描述表

字段

描述

Port Power Enabled

PoE接口远程供电功能使能/禁用:

·     enabled:使能

·     disabled:禁用

Port Power Priority

PoE接口供电优先级:

·     critical:最高

·     high:高

·     low:低

Port Operating Status

PoE接口工作状态:

·     off:供电功能禁用

·     on:正在正常供电

·     power-lack:PSE剩余保证功率不够,导致无法对优先级为Critical的PoE接口供电

·     power-deny:拒绝供电,PD要求功率大于配置功率

·     power-itself:外接设备正在自己供电

·     power-limit:正在受限供电,PD要求功率大于配置功率,PSE仍按配置功率供电

Port IEEE class

PD功率等级:0、1、2、3、4、-

-表示不支持

Port Detection Status

PoE接口检测状态:

·     disabled:PoE接口供电禁止

·     searching:正在搜索PD

·     delivering-power:正在向PD供电

·     fault:错误

·     test:测试状态

·     other-fault:其他错误状态

·     pd-disconnect:PD未连接

Port Power Mode

PoE接口供电方式为signal(信号线供电方式)

Port Current Power

PoE接口当前功率

包括PD消耗功率和传输损耗。

Port Average Power

PoE接口平均功率

Port Peak Power

PoE接口峰值功率

Port Max Power

PoE接口最大功率

Port Current

PoE接口当前电流

Port Voltage

PoE接口当前电压

Port PD Description

PoE接口所连接PD的描述信息,用于辅助用户识别PD的类型和位置等

 

# 显示设备所有PoE接口的供电状态。

<Sysname> display poe interface

 Interface    Status   Priority CurPower Operating  IEEE   Detection

                                (W)      Status     Class  Status

 GE1/0/1      disabled low      0.0      power-deny 0      disabled

 GE1/0/2      disabled low      0.0      power-deny 0      disabled

 GE1/0/3      disabled low      0.0      power-deny 0      disabled

 GE1/0/4      disabled low      0.0      power-deny 0      disabled

 GE1/0/5      disabled low      0.0      power-deny 0      disabled

 GE1/0/6      disabled low      0.0      power-deny 0      disabled

 GE1/0/7      disabled low      0.0      power-deny 0      disabled

 GE1/0/8      disabled low      0.0      power-deny 0      disabled

 GE1/0/9      disabled low      0.0      power-deny 0      disabled

 GE1/0/10     disabled low      0.0      power-deny 0      disabled

 GE1/0/11     disabled low      0.0      power-deny 0      disabled

 GE1/0/12     disabled low      0.0      power-deny 0      disabled

 GE1/0/13     disabled low      0.0      power-deny 0      disabled

 GE1/0/14     disabled low      0.0      power-deny 0      disabled

 GE1/0/15     disabled low      0.0      power-deny 0      disabled

 GE1/0/16     disabled low      0.0      power-deny 0      disabled

 GE1/0/17     disabled low      0.0      power-deny 0      disabled

 GE1/0/18     disabled low      0.0      power-deny 0      disabled

 GE1/0/19     disabled low      0.0      power-deny 0      disabled

 GE1/0/20     disabled low      0.0      power-deny 0      disabled

 GE1/0/21     disabled low      0.0      power-deny 0      disabled

 GE1/0/22     disabled low      0.0      power-deny 0      disabled

 GE1/0/23     disabled low      0.0      power-deny 0      disabled

 GE1/0/24     disabled low      0.0      power-deny 0      disabled

   ---  0 port(s) on,    0.0 (W) consumed,   170.0 (W) remaining ---

表1-3 display poe interface命令显示信息描述表

字段

描述

Interface

PoE接口名称简称

Enable

PoE接口远程供电功能使能/禁用:

·     enabled:使能

·     disabled:禁用

Priority

PoE接口供电优先级:

·     critical:最高

·     high:高

·     low:低

CurPower

PoE接口当前功率

Operating Status

PoE接口工作状态:

·     off:供电功能禁用

·     on:正在正常供电

·     power-lack PSE:剩余保证功率不够,导致无法给Critical接口供电

·     power-deny:拒绝供电,PD要求功率大于配置功率

·     power-itself:外接设备正在自己供电

·     power-limit:正在受限供电,PD要求功率大于配置功率,PSE仍按配置功率供电

IEEE class

由IEEE所规定的PD功率等级

Detection Status

PoE接口检测状态:

·     disabled:接口供电禁止

·     searching:正在搜索PD

·     delivering-power:正在向PD供电

·     fault:错误

·     test:测试状态

·     other-fault:其他错误状态

·     pd-disconnect:PD未连接

port(s) on

正在供电的PoE接口数量

consumed

当前供电PoE接口消耗的功率

Remaining

系统总剩余功率

 

1.1.5  display poe interface power

【命令】

display poe interface power [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

interface-type interface-number:指定接口类型及接口编号。

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe interface power命令用来显示PoE接口的功率信息。

如果不指定接口,将显示所有PoE接口的功率信息。

【举例】

# 显示PoE接口GigabitEthernet1/0/1的功率信息。

<Sysname> display poe interface power gigabitethernet 1/0/1

Interface   CurPower  PeakPower   MaxPower  PD Description

             (W)       (W)         (W)

 GE1/0/1     0.0       0.0         30.0        Acess Point on Room 509 for Peter

# 显示所有PoE接口的功率信息。

<Sysname> display poe interface power

Interface   CurPower  PeakPower   MaxPower  PD Description

             (W)       (W)         (W)

 GE1/0/1     0.0       0.0         30.0

 GE1/0/2     0.0       0.0         30.0

 GE1/0/3     0.0       0.0         30.0

 GE1/0/4     0.0       0.0         30.0

 GE1/0/5     0.0       0.0         30.0

 GE1/0/6     0.0       0.0         30.0

 GE1/0/7     0.0       0.0         30.0

 GE1/0/8     0.0       0.0         30.0

 GE1/0/9     0.0       0.0         30.0

 GE1/0/10    0.0       0.0         30.0

 GE1/0/11    0.0       0.0         30.0

 GE1/0/12    0.0       0.0         30.0

 GE1/0/13    0.0       0.0         30.0

 GE1/0/14    0.0       0.0         30.0

 GE1/0/15    0.0       0.0         30.0

 GE1/0/16    0.0       0.0         30.0

 GE1/0/17    0.0       0.0         30.0

 GE1/0/18    0.0       0.0         30.0

 GE1/0/19    0.0       0.0         30.0

 GE1/0/20    0.0       0.0         30.0

 GE1/0/21    0.0       0.0         30.0

 GE1/0/22    0.0       0.0         30.0

 GE1/0/23    0.0       0.0         30.0

 GE1/0/24    0.0       0.0         30.0

   ---  0 port(s) on,    0.0 (W) consumed,   170.0 (W) remaining ---   

表1-4 display poe interface power命令显示信息描述表

字段

描述

Interface

PoE接口简称

CurPower

PoE接口当前功率

PeakPower

PoE接口峰值功率

MaxPower

PoE接口最大功率

PD Description

PoE接口连接PD描述信息。当显示的字符串长度超过34时,显示30个字符,其后面加“....”

port(s) on

正在供电的PoE接口数量

consumed

所有PoE接口当前消耗功率

Remaining

系统总剩余功率

 

1.1.6  display poe pse

【命令】

display poe pse [ pse-id ] [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

pse-id:PSE编号,可以用display poe device命令查看PSE编号和槽号的对应关系。如果不指定该参数,则显示设备上所有在位的PSE的信息。

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe pse命令用来显示PSE的信息。

【举例】

# 显示PSE 7的信息。

<Sysname> display poe pse 7

 PSE ID                           : 7

 PSE Slot No                      : 1

 PSE SubSlot No                   : 0

 PSE Model                        : LSW124POED

 PSE Power Enabled                : enabled

 PSE Power Priority               : -

 PSE Current Power                : 0        W

 PSE Average Power                : 0        W

 PSE Peak Power                   : 0        W

 PSE Max Power                    : 170      W

 PSE Remaining Guaranteed         : 170      W

 PSE CPLD Version                 : -

 PSE Software Version             : 380

 PSE Hardware Version             : 57601

 PSE Legacy Detection             : disabled

 PSE Utilization-threshold        : 80

 PSE PD Disconnect Detect Mode    : AC

表1-5 display poe pse命令显示信息描述表

字段

描述

PSE ID

PSE编号

PSE Slot No

PSE所在槽号,该字段取值为1

PSE SubSlot No

PSE所在子槽号

PSE Model

PSE模块型号

PSE Power Enabled

PSE供电使能状态

PSE Power Priority

PSE供电优先级

PSE Current Power

PSE当前功率

PSE Average Power

PSE平均功率

PSE Peak Power

PSE峰值功率

PSE Max Power

PSE最大功率

PSE Remaining Guaranteed

PSE剩余保证功率=PSE最大保证功率-该PSE中优先级为Critical的接口最大功率之和

PSE CPLD Version

PSE CPLD版本

PSE Software Version

PSE软件版本

PSE Hardware Version

PSE硬件版本

PSE Legacy Detection

PSE非标准PD检测:

·     enabled:使能

·     disabled:禁用

PSE Utilization-threshold

PSE功率告警阈值

PSE PD Disconnect Detect Mode

PD断开检测方式

 

1.1.7  display poe pse interface

【命令】

display poe pse pse-id interface [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

pse pse-id:PSE编号,可以用display poe device命令查看PSE编号和槽号的对应关系。

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe pse interface命令用来显示指定PSE上PoE接口的供电状态。

【举例】

# 显示PSE 7上连接的所有PoE接口的供电状态。

<Sysname> display poe pse 7 interface

 Interface    Status   Priority CurPower Operating  IEEE   Detection

                                (W)      Status     Class  Status

 GE1/0/1      disabled low      0.0      power-deny 0      disabled

 GE1/0/2      disabled low      0.0      power-deny 0      disabled

 GE1/0/3      disabled low      0.0      power-deny 0      disabled

 GE1/0/4      disabled low      0.0      power-deny 0      disabled

 GE1/0/5      disabled low      0.0      power-deny 0      disabled

 GE1/0/6      disabled low      0.0      power-deny 0      disabled

 GE1/0/7      disabled low      0.0      power-deny 0      disabled

 GE1/0/8      disabled low      0.0      power-deny 0      disabled

 GE1/0/9      disabled low      0.0      power-deny 0      disabled

 GE1/0/10     disabled low      0.0      power-deny 0      disabled

 GE1/0/11     disabled low      0.0      power-deny 0      disabled

 GE1/0/12     disabled low      0.0      power-deny 0      disabled

 GE1/0/13     disabled low      0.0      power-deny 0      disabled

 GE1/0/14     disabled low      0.0      power-deny 0      disabled

 GE1/0/15     disabled low      0.0      power-deny 0      disabled

 GE1/0/16     disabled low      0.0      power-deny 0      disabled

 GE1/0/17     disabled low      0.0      power-deny 0      disabled

 GE1/0/18     disabled low      0.0      power-deny 0      disabled

 GE1/0/19     disabled low      0.0      power-deny 0      disabled

 GE1/0/20     disabled low      0.0      power-deny 0      disabled

 GE1/0/21     disabled low      0.0      power-deny 0      disabled

 GE1/0/22     disabled low      0.0      power-deny 0      disabled

 GE1/0/23     disabled low      0.0      power-deny 0      disabled

 GE1/0/24     disabled low      0.0      power-deny 0      disabled

   ---  0 port(s) on,    0.0 (W) consumed,   170.0 (W) remaining ---

表1-6 display poe pse interface命令显示信息描述表

字段

描述

Interface

PoE接口简称

Enable

PoE接口远程供电功能使能/禁用,取值请参见表1-2

Priority

PoE接口优先级,取值请参见表1-2

CurPower

PoE接口当前功率

Operating

PoE接口工作状态,取值请参见表1-2

IEEE

PD功率等级

Detection

PoE接口检测状态,取值请参见表1-2

port(s) on

正在供电的PoE接口数量

consumed

该PSE上供电PoE接口消耗的功率

Remaining

此PSE上剩余功率

 

1.1.8  display poe pse interface power

【命令】

display poe pse pse-id interface power [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

pse pse-id:PSE编号,可以用display poe device命令查看PSE编号和槽号的对应关系。

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe pse interface power命令用来显示指定PSE上PoE接口的功率信息。

【举例】

# 显示PSE 7连接的PoE接口的功率信息。

<Sysname> display poe pse 7 interface power

Interface   CurPower  PeakPower   MaxPower  PD Description

             (W)       (W)         (W)

 GE1/0/1     0.0       0.0         30.0

 GE1/0/2     0.0       0.0         30.0

 GE1/0/3     0.0       0.0         30.0

 GE1/0/4     0.0       0.0         30.0

 GE1/0/5     0.0       0.0         30.0

 GE1/0/6     0.0       0.0         30.0

 GE1/0/7     0.0       0.0         30.0

 GE1/0/8     0.0       0.0         30.0

 GE1/0/9     0.0       0.0         30.0

 GE1/0/10    0.0       0.0         30.0

 GE1/0/11    0.0       0.0         30.0

 GE1/0/12    0.0       0.0         30.0

 GE1/0/13    0.0       0.0         30.0

 GE1/0/14    0.0       0.0         30.0

 GE1/0/15    0.0       0.0         30.0

 GE1/0/16    0.0       0.0         30.0

 GE1/0/17    0.0       0.0         30.0

 GE1/0/18    0.0       0.0         30.0

 GE1/0/19    0.0       0.0         30.0

 GE1/0/20    0.0       0.0         30.0

 GE1/0/21    0.0       0.0         30.0

 GE1/0/22    0.0       0.0         30.0

 GE1/0/23    0.0       0.0         30.0

 GE1/0/24    0.0       0.0         30.0

   ---  0 port(s) on,    0.0 (W) consumed,   170.0 (W) remaining ---   

表1-7 display poe pse interface power命令显示信息描述表

字段

描述

Interface

PoE接口简称

CurPower

PoE接口当前功率

PeakPower

PoE接口峰值功率

MaxPower

PoE接口最大功率

PD Description

PoE接口连接PD描述信息。当显示的字符串长度超过32时,其后面加“....”

port(s) on

正在供电的PoE接口数量

consumed

所有PoE接口当前消耗功率

Remaining

此PSE上剩余功率

 

1.1.9  display poe-profile

【命令】

display poe-profile [ index index | name profile-name ] [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

index index:PoE配置文件的索引,取值范围为1~100。

name profile-name:PoE配置文件的名称,为1~15个字符的字符串。

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe-profile命令用来显示PoE配置文件的相关信息。

如果不指定参数,将显示当前已存在的PoE配置文件的配置和应用的所有信息。

【举例】

# 显示当前的所有PoE配置文件的相关信息。

<Sysname> display poe-profile

 Poe-profile     Index   ApplyNum  Interface   Configuration

 forIPphone      1        6          GE1/0/5        poe enable

                                       GE1/0/6         poe priority critical

                                       GE1/0/7

                                       GE1/0/8

                                       GE1/0/9

                                       GE1/0/10

 forAP            2        2          GE1/0/11       poe enable

                                       GE1/0/12       poe max-power 14000

 ---  2 poe-profile(s) created, 8 port(s) applied  ---

# 显示索引为1的PoE配置文件的相关信息。

<Sysname> display poe-profile index 1

 Poe-profile     Index   ApplyNum  Interface   Configuration

 forIPphone      1        6          GE1/0/5        poe enable

                                       GE1/0/6        poe priority critical

                                       GE1/0/7

                                       GE1/0/8

                                       GE1/0/9

                                       GE1/0/10

 ---  6 port(s) applied  --- 

# 显示PoE配置文件forIPphone的相关信息。

<Sysname> display poe-profile name forIPphone

 Poe-profile     Index   ApplyNum  Interface   Configuration

 forIPphone      1        6          GE1/0/5        poe enable

                                        GE1/0/6        poe priority critical

                                        GE1/0/7

                                        GE1/0/8

                                        GE1/0/9

                                        GE1/0/10

 ---  6 port(s) applied  ---

表1-8 display poe-profile命令显示信息描述表

字段

描述

Poe-profile

PoE配置文件的名称

Index

PoE配置文件的索引

ApplyNum

应用到的PoE接口数量

Interface

应用了PoE配置文件的PoE接口名称简称

Configuration

PoE配置文件的配置项

poe-profile(s) created

创建的PoE配置文件数目

port(s) applied

应用PoE配置文件的PoE接口数目

 

1.1.10  display poe-profile interface

【命令】

display poe-profile interface interface-type interface-number [ | { begin | exclude | include } regular-expression ]

【视图】

任意视图

【缺省级别】

1:监控级

【参数】

interface-type interfece-number:指定接口类型及接口编号。

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display poe-profile interface命令用来显示指定PoE接口当前生效的PoE配置文件配置项和应用的所有信息。

【举例】

# 显示PoE接口GigabitEthernet1/0/1的当前PoE配置文件配置和应用的所有信息。

<Sysname> display poe-profile interface gigabitethernet 1/0/1

 Poe-profile     Index   ApplyNum  Interface   Current Configuration

 forIPphone      1        6          GE1/0/1      poe enable

                                                      poe priority critical

因为PoE配置文件的配置项(Configuration)可能只有部分应用成功,所以显示的是该接口当前生效的配置项(Current Configuration),其它字段的描述请参见表1-8

1.1.11  poe disconnect

【命令】

poe disconnect { ac | dc }

undo poe disconnect

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

ac:PD断开检测方式为交流检测方式。

dc:PD断开检测方式为直流检测方式。

【描述】

poe disconnect命令用来配置PD断开检测的方式。undo poe disconnect命令用来恢复缺省情况。

缺省情况下,PD断开检测的方式为交流检测方式。

需要注意的是:

·     改变PD断开的检测方式,可能导致连接的PD断电。

·     Release 1517及以上版本不支持该命令。

【举例】

# 配置PD断开检测的方式直流检测方式。

<Sysname> system-view

[Sysname] poe disconnect dc

1.1.12  poe enable

【命令】

poe enable

undo poe enable

【视图】

PoE接口视图/PoE配置文件视图

【缺省级别】

2:系统级

【参数】

【描述】

poe enable命令用来使能PoE接口远程供电功能。undo poe enable命令用来禁用PoE接口远程供电功能。

缺省情况下,PoE接口远程供电功能为禁用状态。

注意

·     在PoE配置文件视图下配置时,如果该PoE配置文件已经应用到PoE接口,需先取消该PoE配置文件在PoE接口的应用。

·     在接口视图下配置时,若已用PoE配置文件对该PoE接口进行过配置,应先取消PoE配置文件在该PoE接口的应用。

 

【举例】

# 使能PoE接口远程供电功能。

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] poe enable

# 通过PoE配置文件使能PoE接口远程供电功能。

<Sysname> system-view

[Sysname] poe-profile abc

[Sysname-poe-profile-abc-1] poe enable

[Sysname-poe-profile-abc-1] quit

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] apply poe-profile name abc

1.1.13  poe legacy enable

【命令】

poe legacy enable pse pse-id

undo poe legacy enable pse pse-id

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

pse pse-id:PSE编号。

【描述】

poe legacy enable命令用来使能PSE的检测非标准PD功能。undo poe legacy enable命令用来禁用PSE的检测非标准PD功能。

缺省情况下,PSE检测非标准PD功能是禁止状态。

【举例】

# 使能PSE 7的检测非标准PD功能。

<Sysname> system-view

[Sysname] poe legacy enable pse 7

1.1.14  poe max-power

【命令】

poe max-power max-power

undo poe max-power

【视图】

PoE接口视图/PoE配置文件视图

【缺省级别】

2:系统级

【参数】

max-power:为PoE接口分配的最大供电功率,单位为毫瓦。取值范围为1000~30000。

【描述】

poe max-power命令用来配置PoE接口的最大功率。undo poe max-power命令用来恢复缺省情况。

缺省情况下,PoE接口的最大功率为30000毫瓦。

【举例】

# 配置PoE接口的最大功率为12000毫瓦。

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] poe max-power 12000

# 通过PoE配置文件配置PoE接口的最大供电功率为12000毫瓦。

<Sysname> system-view

[Sysname] poe-profile abc

[Sysname-poe-profile-abc-1] poe max-power 12000

[Sysname-poe-profile-abc-1] quit

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] apply poe-profile name abc

1.1.15  poe mode

【命令】

poe mode signal

undo poe mode

【视图】

PoE接口视图/PoE配置文件视图

【缺省级别】

2:系统级

【参数】

signal:PoE接口远程供电方式为采用信号线供电,即使用3/5类双绞线中传输数据所用的线对(1、2、3、6)同时传输直流电。

【描述】

poe mode命令用来配置PoE接口远程供电模式。undo poe mode命令用来恢复缺省情况。

缺省情况下,PoE接口远程供电模式为采用信号线供电。

【举例】

# 配置PoE接口远程供电的方式为采用信号线供电。

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] poe mode signal

# 通过PoE配置文件配置PoE接口远程供电的方式为采用信号线供电。

<Sysname> system-view

[Sysname] poe-profile abc

[Sysname-poe-profile-abc-1] poe mode signal

[Sysname-poe-profile-abc-1] quit

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] apply poe-profile name abc

1.1.16  poe pd-description

【命令】

poe pd-description text

undo poe pd-description

【视图】

PoE接口视图

【缺省级别】

2:系统级

【参数】

text:PoE接口连接PD的描述信息,为1~80个字符的字符串。

【描述】

poe pd-description命令用来配置PoE接口连接PD的描述信息。undo poe pd-description命令用来恢复缺省情况。

缺省情况下,PoE接口连接PD的描述信息为空,即没有描述信息。

【举例】

# 配置PoE接口连接PD的描述信息为连接101室的IP电话。

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] poe pd-description IP Phone For Room 101

1.1.17  poe priority

【命令】

poe priority { critical | high | low }

undo poe priority

【视图】

PoE接口视图/PoE配置文件视图

【缺省级别】

2:系统级

【参数】

critical:配置PoE接口供电优先级为最高,即将该PoE接口置为供电保证模式,插入该接口的PD可以最高优先级得到供电。

high:配置PoE接口供电优先级为高。

low配置PoE接口供电优先级为低。

【描述】

poe priority命令用来配置PoE接口供电优先级。undo poe priority命令用来恢复缺省情况。

缺省情况下,PoE接口供电优先级为low

需要注意的是:

·     当设备对外供电功率不足情况下,优先对供电优先级高的PoE接口进行供电。

·     在PoE配置文件视图下配置时,如果该PoE配置文件已经应用到PoE接口,需先取消该PoE配置文件在PoE接口的应用。

·     在PoE接口视图下配置时,若已用PoE配置文件对该PoE接口进行过配置应先取消PoE配置文件在该PoE接口的应用。

·     如果配置了相同的优先级,接口编号小的PoE接口的优先级高。

【举例】

# 配置PoE接口供电优先级为Critical。

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] poe priority critical

# 通过PoE配置文件配置PoE接口供电优先级为Critical。

<Sysname> system-view

[Sysname] poe-profile abc

[Sysname-poe-profile-abc-1] poe priority critical

[Sysname-poe-profile-abc-1] quit

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] apply poe-profile name abc

1.1.18  poe update

【命令】

poe update { full | refresh } filename [ pse pse-id ]

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

fullPSE处理软件不可用时使用full升级模式。

refreshPSE处理软件可用时使用refresh升级模式。

filename:升级文件的名称,取值范围为164个字符。该文件必须在设备文件系统的根目录下。

pse pse-id:PSE编号。

【描述】

poe update命令用来在线升级PSE处理软件。

注意

·     full模式的升级方式是在用refresh模式升级出现异常的情况下使用的,其它情况下,请勿用full模式进行升级。

·     PSE固件处理软件损坏的情况下(表现为所有的PoE命令执行不成功)可以用full模式进行升级,使固件恢复。

 

【举例】

# 在线升级PSE 7处理软件。

<Sysname> system-view

[Sysname] poe update refresh 0400_001.S19 pse 7

1.1.19  poe utilization-threshold

【命令】

poe utilization-threshold utilization-threshold-value pse pse-id

undo poe utilization-threshold pse pse-id

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

utilization-threshold-value:功率告警阈值,取值范围为1~99,单位为百分比。

pse pse-id:PSE编号。

【描述】

poe utilization-threshold命令用来配置PSE的功率告警阈值。undo poe utilization-threshold命令用来恢复PSE的功率告警阈值为缺省值。

缺省情况下,PSE的功率告警阈值为80%。

需要注意的是,功率使用百分比超过告警阈值时,系统将发送Trap告警信息一次。若功率使用百分比一直在告警阈值之上,系统不再告警;而是当功率使用百分比降低到告警阈值之下时,系统产生一个Trap告警信息。

【举例】

# 配置PSE 7的功率告警阈值为90%。

<Sysname> system-view

[Sysname] poe utilization-threshold 90 pse 7

1.1.20  poe-profile

【命令】

poe-profile profile-name [ index ]

undo poe-profile { index index | name profile-name }

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

profile-name:PoE配置文件的名称,为1~15个字符的字符串,以英文字母[a-z,A-Z]开始,并且不能为保留关键字undoallnameinterfaceuserpoedisablemax-powermodepriorityenable等。

index:PoE配置文件的索引,取值范围为1~100。

【描述】

poe-profile命令用来创建PoE配置文件,并进入PoE配置文件视图。undo poe-profile命令用来删除指定的PoE配置文件。

如果不指定索引值,系统会为此PoE配置文件都自动分配索引,从1开始。

需要注意的是,如果PoE配置文件已经应用,不允许删除该PoE配置文件。必须先执行undo apply poe-profile,取消PoE配置文件在指定PoE接口的应用后,才能删除该PoE配置文件。

【举例】

# 用指定索引方式创建的PoE配置文件abc,索引号为3。

<Sysname> system-view

[Sysname] poe-profile abc 3

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们