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

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

目录

04-PoE命令

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

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/LA_wireless/H3C_LA6600/Command/Command_Manual/H3C_LA6600_CR(V7)-R0605-6W200/11/201703/981235_30005_0.htm

04-PoE命令


1 PoE

设备各款型对于本节所描述的特性支持情况有所不同,详细差异信息如下:

型号

特性

描述

LA6608-X1

PoE

支持

LA6616-X3

不支持

 

1.1  PoE配置命令

1.1.1  apply poe-profile

apply poe-profile命令用来将PoE profile应用到当前PoE接口。

undo apply poe-profile命令用来恢复缺省情况。

【命令】

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

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

【缺省情况】

未将PoE profile应用到当前PoE接口。

【视图】

PoE接口视图

【缺省用户角色】

network-admin

【参数】

index index:PoE profile的索引,取值范围为1~100。

name profile-name:PoE profile的名称,为1~15个字符的字符串,区分大小写。

【举例】

# 将名为forIPphone的PoE profile应用到PoE接口GigabitEthernet0/1。

<Sysname> system-view

[Sysname] interface gigabitethernet 0/1

[Sysname-GigabitEthernet0/1] apply poe-profile name forIPphone

【相关命令】

l     apply poe-profile interface

l     display poe-profile

1.1.2  apply poe-profile interface

apply poe-profile interface命令用来将PoE profile应用到PoE接口。

undo apply poe-profile interface命令用来取消指定PoE接口上应用的PoE profile。

【命令】

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

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

【缺省情况】

未将PoE profile应用到PoE接口。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

index index:PoE profile的索引,取值范围为1~100。

name profile-name:PoE profile的名称,为1~15个字符,区分大小写。

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

【举例】

# 将名称为forIPphone的PoE profile应用到PoE接口GigabitEthernet0/1。

<Sysname> system-view

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

# 将索引为1的PoE profile应用到PoE接口GigabitEthernet0/2至GigabitEthernet0/8。

<Sysname> system-view

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

【相关命令】

l     apply poe-profile

l     display poe-profile interface

1.1.3  display poe device

display poe device命令用来显示PSE的相关信息。

【命令】

display poe device

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【举例】

# 显示PSE的相关信息。

<Sysname> display poe device

PSE ID    Slot No.  PortNum   MaxPower(W)    State   Model                    

 16         0          8          90.0            On       LA6608

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

字段

描述

PSE ID

PSE编号

Slot No.

PSE所在槽位号

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命令用来显示设备指定PoE接口的供电状态。

【命令】

display poe interface [ interface-type interface-number ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

interface-type interface-number:指定接口类型及接口编号,显示指定PoE接口的供电状态。如果未指定本参数,则显示所有PoE接口的供电状态。

【举例】

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

<Sysname> display poe interface gigabitethernet 0/1

 PoE Status                         : Enabled

 Power Priority                    : Critical

 Oper                                : On

 IEEE Class                         : 1

 Detection Status                  : Delivering power

 Power Mode                         : Signal

 Current Power                      : 11592    mW

 Average Power                      : 11610    mW

 Peak Power                          : 11684    mW

 Max Power                           : 15400    mW

 Electric Current                   : 244      mA

 Voltage                              : 51.7     V

 PD Description                      : IP Phone For Room 101

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

字段

描述

PoE status

PoE接口远程供电功能是否开启:

Enabled:开启

Disabled:关闭

Power Priority

PoE接口供电优先级:

Critical:最高

High:高

Low:低

Oper

PoE接口工作状态:

Off:供电功能处于关闭状态

On:正在正常供电

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

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

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

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

IEEE Class

由IEEE规定的PD功率等级,取值为:0、1、2、3、4、-

其中,“-”表示不支持

Detection Status

PoE接口检测状态:

Disabled:PoE接口供电功能处于关闭状态

Searching:正在搜索PD

Delivering power:正在向PD供电

Fault:错误

Test:测试状态

Other fault:其他错误状态

PD disconnected:PD未连接

Power Mode

PoE接口供电方式:

Signal:信号线供电方式

Spare:空闲线供电方式

Current Power

PoE接口当前功率

包括PD消耗功率和传输损耗。一般损耗不超过1W

Average Power

PoE接口平均功率

Peak Power

PoE接口峰值功率

Max Power

PoE接口最大功率

Electric Current

PoE接口当前电流

Voltage

PoE接口当前电压

PD Description

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

 

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

<Sysname> display poe interface

Interface    PoE       Priority  CurPower  Oper      IEEE  Detection          

                                  (W)                 Class Status             

 GE0/0        Disabled  Low       0.0        Off       -      Disabled           

 GE0/1        Disabled  Low       0.0        Off       -      Disabled           

 GE0/2        Disabled  Low       0.0        Off       -      Disabled           

 GE0/3        Disabled  Low       0.0        Off       -      Disabled           

 GE0/4        Disabled  Low       0.0        Off       -      Disabled           

 GE0/5        Enabled   Low       0.0        Off       -      Searching          

 GE0/6        Disabled  Low       0.0        Off       -      Disabled           

 GE0/7        Disabled  Low       0.0        Off       -      Disabled           

   ---  On State Ports: 0; Used: 0.0(W); Remaining: 90.0(W)  ---

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

字段

描述

Interface

PoE接口名称简称

PoE

PoE接口远程供电功能是否开启:

Enabled:开启

Disabled:关闭

Priority

PoE接口供电优先级:

Critical:最高

High:高

Low:低

CurPower

PoE接口当前功率

Oper

PoE接口工作状态:

Off:供电功能处于关闭状态

On:正在正常供电

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

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

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

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

IEEE Class

由IEEE规定的PD功率等级,取值为:0、1、2、3、4、-

其中,“-”表示不支持

Detection Status

PoE接口检测状态:

Disabled:PoE接口供电处于关闭状态

Searching:正在搜索PD

Delivering Power:正在向PD供电

Fault:错误

Test:测试状态

Other Fault:其他错误状态

PD Disconnected:PD未连接

On State Ports

正在供电的PoE接口数量

Used

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

Remaining

系统总剩余功率

 

1.1.5  display poe interface power

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

【命令】

display poe interface power [ interface-type interface-number ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

interface-type interface-number:指定接口类型及接口编号,显示指定PoE接口的功率信息。如果未指定本参数,则显示所有PoE接口的功率信息。

【举例】

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

<Sysname> display poe interface power gigabitethernet 0/1

Interface    Current   Peak      Max       PD Description

               (W)       (W)       (W)

 GE0/1       15.0       15.3      15.4      Access Point on Room 509 for Peter

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

<Sysname> display poe interface power

Interface    Current   Peak      Max       PD Description

              (W)       (W)       (W)

 GE0/0        0.0       0.0       15.4

 GE0/1        0.0       0.0       15.4

 GE0/2        0.0       0.0       15.4

 GE0/3        0.0       0.0       15.4

 GE0/4        0.0       0.0       15.4

 GE0/5        0.0       0.0       15.4

 GE0/6        0.0       0.0       15.4

 GE0/7        0.0       0.0       15.4

   ---  On State Ports: 0; Used: 0.0(W); Remaining: 90.0(W)  ---

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

字段

描述

Interface

PoE接口简称

Current

PoE接口当前功率

Peak

PoE接口峰值功率

Max

PoE接口最大功率

PD Description

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

Ports On

正在供电的PoE接口数量

Used

所有PoE接口当前消耗功率

Remaining

系统总剩余功率

 

1.1.6  display poe power-usage

display poe power-usage命令用来显示PoE电源和PSE的功率信息。

【命令】

display poe power-usage

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【举例】

# 显示PoE电源和各PSE的功率信息。

<Sysname> dis poe power-usage

PoE Current Power                : 0     W

 PoE Max Power                    : 90    W

 Powered PoE Ports                : 0

 Statistics by PSE:

 PSE ID    Max       Current   Peak      Average   Remaining      Powered

            (W)       (W)        (W)       (W)       Guaranteed(W)  Ports

 16        90.0      0.0       0.0       0.0       90.0           0

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

字段

描述

PoE Current Power

PSE当前消耗功率总和

PoE Max Power

PoE最大功率

Powered PoE Ports

当前设备正在供电的PoE接口总数

PSE ID

PSE编号

Max

PSE最大功率

Current

PSE当前功率

Peak

PSE峰值功率

Average

PSE平均功率

Remaining Guaranteed

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

Powered Ports

PSE正在供电的PoE接口数量

 

1.1.7  display poe pse

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

【命令】

display poe pse

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【举例】

# 显示PSE的信息。

<Sysname> display poe pse

PSE ID                           : 16

 Slot No.                         : 0

 PSE Model                        : LA6608

 Current Power                    : 0.0      W

 Average Power                    : 0.0      W

 Peak Power                       : 0.0      W

 Max Power                        : 90.0     W

 Remaining Guaranteed Power       : 90.0     W

 PSE CPLD Version                 : 0

 PSE Software Version             : 612

 PSE Hardware Version             : 0

 Legacy PD Detection              : Disabled

 Power Utilization Threshold      : 80

 PD Power Policy                  : Disabled

 PD Disconnect-Detection Mode     : DC

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

字段

描述

PSE ID

PSE编号

Slot No.

PSE所在槽号

PSE Model

PSE模块型号

Current Power

PSE当前功率

Average Power

PSE平均功率

Peak Power

PSE峰值功率

Max Power

PSE最大功率

Remaining Guaranteed Power

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

PSE CPLD Version

PSE CPLD(Complex Programmable Logical Device,复杂可编程逻辑器件)版本

PSE Software Version

PSE软件版本

PSE Hardware Version

PSE硬件版本

Legacy PD Detection

PSE非标准PD检测:

Enabled:开启

Disabled:关闭

Power Utilization Threshold

PSE功率告警阈值

PSE Power Policy

PSE功率管理策略模式

PD Power Policy

PD功率管理策略模式

PD Disconnect Detection Mode

PD断开检测方式

 

1.1.8  display poe-profile

display poe-profile命令用来显示PoE Profile的相关信息。

【命令】

display poe-profile [ index index | name profile-name ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

index index:PoE Profile的索引,取值范围为1~100。

name profile-name:PoE Profile的名称,为1~15个字符的字符串,区分大小写。

【使用指导】

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

【举例】

# 显示当前的所有PoE Profile的相关信息。

<Sysname> display poe-profile

 PoE Profile     Index   ApplyNum  Interfaces     Configuration

 forIPphone      1        2           GE0/1          poe enable

                                         GE0/2         poe priority critical

forAP            2        2            GE0/3          poe enable

                                        GE0/4          poe max-power 14000

   ---  Total PoE profiles: 2, total ports: 4  ---

# 显示索引为1的PoE Profile的相关信息。

<Sysname> display poe-profile index 1

 PoE Profile     Index   ApplyNum  Interfaces   Configuration

 forIPphone      1        2          GE0/1         poe enable

                                       GE0/2         poe priority critical

   ---  Total ports: 2  ---

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

字段

描述

PoE Profile

PoE Profile的名称

Index

PoE Profile的索引

ApplyNum

应用到的PoE接口数量

Interfaces

应用了PoE Profile的PoE接口名称简称

Configuration

PoE Profile的配置项

Total PoE profiles

创建的PoE Profile数目

total ports

应用PoE Profile的PoE接口数目

 

1.1.9  display poe-profile interface

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

【命令】

display poe-profile interface interface-type interface-number

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

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

【举例】

# 显示PoE接口GigabitEthernet0/1的当前PoE Profile配置和应用的所有信息。

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

 PoEProfile     Index   ApplyNum  Interface   Effective configuration

 forIPphone      1        6          GE0/1      poe enable

                                                    poe priority critical

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

1.1.10  poe enable

poe enable命令用来开启PoE接口远程供电功能。

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

【命令】

poe enable

undo poe enable

【缺省情况】

PoE接口远程供电功能处于关闭状态。

【视图】

PoE接口视图/PoE profile视图

【缺省用户角色】

network-admin

【使用指导】

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

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

【举例】

# 开启PoE接口远程供电功能。

<Sysname> system-view

[Sysname] interface gigabitethernet 0/1

[Sysname-GigabitEthernet0/1] poe enable

#在PoE profile abc中,开启PoE接口远程供电功能。

<Sysname> system-view

[Sysname] poe-profile abc

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

【相关命令】

l     poe-profile

l     display poe interface

1.1.11  poe legacy enable

poe legacy enable命令用来开启PSE的检测非标准PD功能。

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

【命令】

poe legacy enable

undo poe legacy enable

【缺省情况】

PSE检测非标准PD功能处于关闭状态。

【视图】

系统视图

【缺省用户角色】

network-admin

【举例】

# 开启PSE的检测非标准PD功能。

<Sysname> system-view

[Sysname] poe legacy enable

【相关命令】

l     display poe pse

1.1.12  poe max-power

poe max-power命令用来配置PoE接口的最大功率。

undo poe max-power命令用来恢复缺省情况。

【命令】

poe max-power max-power

undo poe max-power

【缺省情况】

PoE接口的最大功率为15400毫瓦。

【视图】

PoE接口视图/PoE profile视图

【缺省用户角色】

network-admin

【参数】

max-power:为PoE接口分配的最大供电功率,单位为毫瓦,按照一定的步长取值。

【举例】

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

<Sysname> system-view

[Sysname] interface gigabitethernet 0/1

[Sysname-GigabitEthernet0/1] poe max-power 12000

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

<Sysname> system-view

[Sysname] poe-profile abc

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

1.1.13  poe pd-description

poe pd-description命令用来配置PoE接口连接PD的描述信息。

undo poe pd-description命令用来恢复缺省情况。

【命令】

poe pd-description text

undo poe pd-description

【缺省情况】

未配置PoE接口连接PD的描述信息。

【视图】

PoE接口视图

【缺省用户角色】

network-admin

【参数】

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

【举例】

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

<Sysname> system-view

[Sysname] interface gigabitethernet 0/1

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

1.1.14  poe pd-policy priority

poe pd-policy priority命令用来开启PoE接口功率管理优先级策略。

undo poe pd-policy priority命令用来恢复缺省情况。

【命令】

poe pd-policy priority

undo poe pd-policy priority

【缺省情况】

未配置PoE接口功率管理优先级策略。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

在没有开启PoE接口功率管理优先级策略时,如果PSE功率过载,则不对新接入的PD供电。

在开启PoE接口功率管理优先级策略时,如果PSE功率过载,接入新的PD,将对优先级低的PD断电,保证优先级高的PD供电。

【举例】

# 配置PD功率管理策略为优先级策略。

<Sysname> system-view

[Sysname] poe pd-policy priority

【相关命令】

l     poe priority

1.1.15  poe priority

poe priority命令用来配置PoE接口供电优先级。

undo poe priority命令用来恢复缺省情况。

【命令】

poe priority { critical | high | low }

undo poe priority

【缺省情况】

PoE接口供电优先级为low

【视图】

PoE接口视图/PoE profile视图

【缺省用户角色】

network-admin

【参数】

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

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

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

【使用指导】

当PSE功率过载的情况下,优先对供电优先级高的PoE接口进行供电。

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

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

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

【举例】

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

<Sysname> system-view

[Sysname] interface gigabitEthernet 0/1

[Sysname-GigabitEthernet0/1] poe priority critical

# 通过PoE profile配置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 0/1

[Sysname-GigabitEthernet0/1] apply poe-profile name abc

【相关命令】

l     poe pd-policy priority

1.1.16  poe update

poe update命令用来在线升级PSE固件。

【命令】

poe update { full | refresh } filename

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

full:用full模式升级PSE固件。

refresh:用refresh模式升级PSE固件。

filename:升级文件的名称,为1~64个字符的字符串,不区分大小写。该文件必须在设备文件系统的根目录下。

【使用指导】

refresh模式是在原PSE固件的基础上进行更新升级,升级过程简单快速。一般情况下使用该模式来升级PSE固件。

full模式是将原PSE固件删除,再安装新PSE固件。PSE固件被损坏的情况下(表现为所有的PoE命令执行不成功),可用full模式进行升级,使软件恢复。

【举例】

# 在线升级PSE固件。

<Sysname> system-view

[Sysname] poe update refresh POE-168.bin

1.1.17  poe-profile

poe-profile命令用来创建PoE profile,并进入PoE profile视图。如果指定的PoE profile已经存在,则直接进入PoE profile。

undo poe-profile命令用来删除指定的PoE profile 。

【命令】

poe-profile profile-name [ index ]

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

【缺省情况】

不存在PoE profile。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

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

index:PoE profile 的索引,取值范围为1~100。

【使用指导】

批量配置PoE接口时,一般采用PoE Profile配置。如果不指定索引值,系统会为此PoE profile 自动分配索引,从1开始。

如果PoE profile已经应用到接口,不允许删除该PoE profile,必须先执行undo apply poe-profile,取消PoE profile在指定PoE接口的应用后,才能删除该PoE profile 。

【举例】

# 创建名称为abc的PoE profile,指定索引为3。

<Sysname> system-view

[Sysname] poe-profile abc 3

[Sysname-poe-profile-abc-3]

#创建名称为def的PoE profile,不指定索引。

<Sysname> system-view

[Sysname] poe-profile def

[Sysname-poe-profile-def-1]

【相关命令】

l     apply poe-profile

l     poe enable

l     poe priority

l     poe max-power

1.1.18  poe utilization-threshold

poe utilization-threshold命令用来配置PSE的功率告警阈值。

undo poe utilization-threshold命令用来恢复缺省情况。

【命令】

poe utilization-threshold value

undo poe utilization-threshold

【缺省情况】

PSE的功率告警阈值为80%。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

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

【使用指导】

当PSE的功率使用百分比首次超过或者低于设置的告警阈值时,系统将生成告警信息,发送给设备的SNMP模块,通过设置SNMP中告警信息的发送参数,来决定告警信息输出的相关属性。

有关告警信息的详细介绍,请参见“网络管理和监控配置指导”中的“SNMP”。

【举例】

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

<Sysname> system-view

[Sysname] poe utilization-threshold 90

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

新华三官网
联系我们