Configuring PoE on ICX and HP devices


Warning: Can't find topic Sandbox.WebSnippets

Introduction

CFMGR has functionality to manipulate PoE configuration on HP and ICX devices. Apart from basic functions check and align, user can enable/disable/restart PoE on exact port on the device. There is two approaches for configuring PoE on devices:

  • SNMP calls are used to configure HP switches
  • Generation of configuration and filtered align are used to configure ICX devices
Correct state of the PoE configuration of the devices is stored in LANDB in NetEquipment page. For comparison of the device's current state and desired configuration SNMP requests are used for both vendors.

Commands CFMGR

PoE show

Description:

Displays table with all PoE ports on the device and all information, related to this ports

Usage: cmfgr switches poe show [deviceName]

Example:

cfmgr:$ cfmgr switches poe show U363-1-PRZ-SBRPM-1
cfmgr: Initializing........
...

Equipment 0363-1:PR_Z/SBRPM_1 (device U363-1-PRZ-SBRPM-1):
poeProvider 1
+--------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+
| port | lanDBStatus | poeAdmin | poeDeliver | ethAdmin | ethOper | poeClass | poePrio | poeMaxWatts | poeWatts |
+--------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+
| 1/1/1 | Aligned | enabled | yes | up | up | class3 | low | 30000 | 8300 |
| 1/1/2 | Aligned | enabled | yes | up | up | class3 | low | 30000 | 8200 |
| 1/1/3 | Aligned | enabled | yes | up | up | class3 | low | 30000 | 8000 |
| 1/1/4 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/5 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/6 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/7 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/8 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/9 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/10 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/11 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/12 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/13 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/14 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/15 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/16 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/17 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/18 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/19 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/20 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/21 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/22 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/23 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
| 1/1/24 | Aligned | disabled | no | up | down | class0 | other | 0 | 0 |
+--------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+

PoE check

Description:

This command checks PoE configuration on the device with the information from LANDB.

Usage: cfmgr switches poe check [deviceName]

Example:

cfmgr:$ cfmgr switches poe check U363-1-PRZ-SBRPM-1                     
cfmgr: Initializing........
...

*** Changes required to align POE configuration
+-------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+
| port | lanDBStatus | poeAdmin | poeDeliver | ethAdmin | ethOper | poeClass | poePrio | poeMaxWatts | poeWatts |
+-------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+
| 1/1/5 | Not Aligned | enabled | no | up | down | class0 | low | 0 | 0 |
| 1/1/6 | Not Aligned | enabled | no | up | down | class0 | low | 0 | 0 |
+-------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+

PoE align

Description:

This command aligns PoE configuration on the device with the information from LANDB. For performing changes on HP switches it uses SNMP, but for ICX it generates configuration and use filtered align, in order to apply only PoE configuration.

Usage: cfmgr switches poe align [deviceName]

Example:

cfmgr:$ cfmgr switches poe align U363-1-PRZ-SBRPM-1
cfmgr: Initializing........
...

*** Changes required to align POE configuration
+-------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+
| port | lanDBStatus | poeAdmin | poeDeliver | ethAdmin | ethOper | poeClass | poePrio | poeMaxWatts | poeWatts |
+-------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+
| 1/1/8 | Not Aligned | enabled | no | up | down | class0 | low | 0 | 0 |
+-------+-------------+----------+------------+----------+---------+----------+---------+-------------+----------+
_DANGER: All ports will be aligned: Type confirm to confirm [] : confirm
....
Here goes standard ICX config generation process
....

show_port_connections

Description:

This command displays a table with the list of all devices, connected to the specified port on the device.

NOTE: this command is not a part of PoE menu, but it's widely used for single port operations (enable,disable and restart PoE)

Usage: cfmgr switches ops show_port_connections [deviceName] [--port=<port_number>]

Example:

cfmgr: $ cfmgr switches poe port_enable_poe U363-1-PRZ-SBRPM-1 
cfmgr: Initializing........
_Specify the port name (help=?) [] : 1/1/3
...

Devices connected to U363-1-PRZ-SBRPM-1, port 1/1/3:
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| name | poePowered | maker | hardwareType | genericType | mainUser | responsiblePerson |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| U363-1-PRZ-BARI3-3 | 1 | HPE-ARUBA | AP-205 | CTRL-BASED-WIFI-AP | INFRASTRUCTURE NETWORK | INFRASTRUCTURE NETWORK |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+

port_disable_PoE

Description:

This command disables PoE on a single port of the device.

Usage: cfmgr switches poe port_ disable_PoE [deviceName] [--port=<port_number>]

Example:

cfmgr: $ cfmgr switches poe port_disable_poe U363-1-PRZ-SBRPM-1 
cfmgr: Initializing........
_Specify the port name (help=?) [] : 1/1/1
...

PoE port 1/1/1:
port 1/1/1
lanDBStatus Aligned
poeAdmin enabled
poeDeliver yes
ethAdmin up
ethOper up
poeClass class3
poePrio low
poeMaxWatts 30000
poeWatts 8300

Devices connected to U363-1-PRZ-SBRPM-1, port 1/1/1:
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| name | poePowered | maker | hardwareType | genericType | mainUser | responsiblePerson |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| U363-1-PRZ-BARI3-1 | 1 | HPE-ARUBA | AP-205 | CTRL-BASED-WIFI-AP | INFRASTRUCTURE NETWORK | INFRASTRUCTURE NETWORK |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
_DANGER: disable PoE on U363-1-PRZ-SBRPM-1 port 1/1/1?: Type confirm to confirm [] :

port_enable_PoE

Description:

This command activates/enables PoE on a single port of the device.

Usage: cfmgr switches poe port_ enable_PoE [deviceName] [--port=<port_number>]

Example:

cfmgr: $ cfmgr switches poe port_enable_poe U363-1-PRZ-SBRPM-1 
cfmgr: Initializing........
_Specify the port name (help=?) [] : 1/1/1
...

PoE port 1/1/1:
port 1/1/1
lanDBStatus Aligned
poeAdmin enabled
poeDeliver yes
ethAdmin up
ethOper up
poeClass class3
poePrio low
poeMaxWatts 30000
poeWatts 8300

Devices connected to U363-1-PRZ-SBRPM-1, port 1/1/1:
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| name | poePowered | maker | hardwareType | genericType | mainUser | responsiblePerson |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| U363-1-PRZ-BARI3-1 | 1 | HPE-ARUBA | AP-205 | CTRL-BASED-WIFI-AP | INFRASTRUCTURE NETWORK | INFRASTRUCTURE NETWORK |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+

_DANGER: enable PoE on U363-1-PRZ-SBRPM-1 port 1/1/1?: Type confirm to confirm [] :

port_restart_PoE

Description:

This command restarts PoE on a single port of the device.

Usage: cfmgr switches poe port_restart_PoE [deviceName] [--port=<port_number>]

Example:

cfmgr: $ cfmgr switches poe port_restart_poe U363-1-PRZ-SBRPM-1 
cfmgr: Initializing........
_Specify the port name (help=?) [] : 1/1/1
...

PoE port 1/1/1:
port 1/1/1
lanDBStatus N/A
poeAdmin enabled
poeDeliver yes
ethAdmin up
ethOper up
poeClass class3
poePrio low
poeMaxWatts 30000
poeWatts 8400

Devices connected to U363-1-PRZ-SBRPM-1, port 1/1/1:
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| name | poePowered | maker | hardwareType | genericType | mainUser | responsiblePerson |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
| U363-1-PRZ-BARI3-1 | 1 | HPE-ARUBA | AP-205 | CTRL-BASED-WIFI-AP | INFRASTRUCTURE NETWORK | INFRASTRUCTURE NETWORK |
+--------------------+------------+-----------+--------------+--------------------+------------------------+------------------------+
_DANGER: Restart PoE on the U363-1-PRZ-SBRPM-1 port 1/1/1?: Type confirm to confirm [] :

queue _show

Description:

This command displays content of the PORT_OPERATION queue table.

Usage: cmfgr switches poe queue_show

Example:

cfmgr:$ cfmgr switches poe queue_show
cfmgr: Initializing........
+-------+----------+---------------------+-------------+------------------+
| id | portName | deviceName | operation | enqueueDate |
+-------+----------+---------------------+-------------+------------------+
| 29593 | 1 | U887-RE-PRY-SHPYL-1 | ENABLE_POE | 2018-09-11 09:09 |
| 29594 | 1/1/1 | U363-1-PRZ-SBRPM-1 | DISABLE_POE | 2018-09-11 09:09 |
| 29595 | 1 | U887-RE-PRY-SHPYL-1 | DISABLE_POE | 2018-09-11 09:09 |
| 29596 | 1/1/1 | U363-1-PRZ-SBRPM-1 | ENABLE_POE | 2018-09-11 09:09 |
+-------+----------+---------------------+-------------+------------------+

queue_process

Description:

This command processes elements (actions) from PORT_OPERATION queue. User's confirmation is needed to process every action. Use --force parameter to trigger non-interactive mode (processes all elements from the queue).

Usage: cfmgr switches poe queue_process [--force]

Example:

cfmgr:$ cfmgr switches poe queue_process
cfmgr: Initializing........
* ENABLE_POE on port 1 on U887-RE-PRY-SHPYL-1
_Process this action? [y] : y

PoE port 1:
port 1
lanDBStatus Aligned
poeAdmin disabled
poeDeliver no
ethAdmin up
ethOper up
poeClass class0
poePrio low
poeDetection disabled

Devices connected to U887-RE-PRY-SHPYL-1, port 1: NONE

*** PoE successfully enabled on U887-RE-PRY-SHPYL-1 port 1.
PORT_OPERATION_QUEUE element was deleted successfully
Action was successfully deleted
* DISABLE_POE on port 1 on U887-RE-PRY-SHPYL-1
_Process this action? [y] :

PoE port 1:
port 1
lanDBStatus Not Aligned
poeAdmin enabled
poeDeliver no
ethAdmin up
ethOper up
poeClass class0
poePrio low
poeDetection searching

Devices connected to U887-RE-PRY-SHPYL-1, port 1: NONE

*** PoE successfully disabled on U887-RE-PRY-SHPYL-1 port 1.
PORT_OPERATION_QUEUE element was deleted successfully
Action was successfully deleted
* All actions in PORT_OPERATION_QUEUE were completed. (TOTAL: 2, SUCCEEDED: 2, FAILED: 0, SKIPPED: 0)

queue_clear

Description:

This command deletes elements (actions) from PORT_OPERATION queue. User's confirmation is needed for deletion of every action. Use --force parameter to trigger non-interactive mode (deletes all elements from the queue).

Usage: cfmgr switches poe queue_clear [--force]

Example:

cfmgr:$ cfmgr switches poe queue_clear
cfmgr: Initializing........
* ENABLE_POE on port 1 on U887-RE-PRY-SHPYL-1
_Delete this action? [y] : y
PORT_OPERATION_QUEUE element was deleted successfully
Action was successfully deleted
* DISABLE_POE on port 1 on U887-RE-PRY-SHPYL-1
_Delete this action? [y] : n

batch poe_check

Description:

This command executes poe check for multiple devices. You can specify either a regexp or provide a file with devices. Use --regexp=all to match all PoE devices

Usage: cfmgr switches batch poe_check [--regexp| --file]

batch poe_align

Description:

This command executes poe align for multiple devices. You can specify either a regexp or provide a file with devices. Use --regexp=all to match all PoE devices. As other batch commands, poe_align supports dry run mode, which displays what is going to be aligned, but not changing configuration on the device. To perform align operation --run parameter should be passed to the command

Usage: cfmgr switches batch poe_align [--regexp| --file] [--run]

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2018-09-12 - ArkadiyShevrikuko
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback