iTop-br-powersocket

Copyright (c) 2021-2026 Björn Rudner License

Overview

This extension adds the concept of individual power sockets to PDUs in iTop and allows Datacenter Devices to be connected to specific PDU sockets.

It introduces a new class PowerSocket and provides automatic synchronization logic between:

Each DatacenterDevice can be connected to:

The extension ensures that:

Features

Power Supply

Power Supply

PDU

PDU

Conceptual Model

PowerSocket

A PowerSocket represents a physical outlet on a PDU.

Each socket:

DatacenterDevice

Each DatacenterDevice can have:

Slot assignment is automatic and enforced by consistency checks.

How to Use

This section explains how to use the PowerSocket extension in daily operations.

1. Creating PowerSockets

PowerSockets represent physical outlets on a PDU.

  1. Open the PDU object in iTop.
  2. Scroll to the PowerSockets list.
  3. Add one or more PowerSockets.
  4. Give each socket a meaningful name (e.g., Outlet 1, A01, Rack-3-Port-5).

Each PowerSocket belongs to exactly one PDU.

2. Connecting a PowerSocket to a DatacenterDevice

You can connect a PowerSocket to a DatacenterDevice in two ways:

Option A: From the PowerSocket side

  1. Open a PowerSocket.
  2. Set the field Datacenter Device.
  3. Save.

The system will automatically:

Option B: From the DatacenterDevice side

  1. Open a DatacenterDevice (e.g., Server, Storage, Switch).
  2. Select a PowerSocket in:
    • Power A socket or
    • Power B socket
  3. Save.

The system will automatically:

3. Automatic Slot Assignment

Each DatacenterDevice can have:

When connecting a PowerSocket:

  1. Slot A is used first
  2. Slot B is used if A is already occupied
  3. If both slots are occupied, the assignment is rejected

4. What Happens When No Slot Is Free?

If both Power A and Power B are already in use:

The user will receive an error message explaining that no free socket is available.

This ensures that:

5. Moving a PowerSocket to Another Device

If you assign a PowerSocket to a different DatacenterDevice:

  1. The socket is automatically disconnected from the old device
  2. It is then connected to the new device
  3. Slot assignment (A/B) is recalculated

No manual cleanup is required.

6. Deleting a PowerSocket

When a PowerSocket is deleted:

This prevents broken or dangling references.

7. Data Consistency Rules

This extension enforces the following rules:

iTop Compatibility

The branch 2.7 is compatible to iTop 2.7 and iTop 3.1.

The branch main will only be compatible to iTop 3.2.

Versions starting with 2.7.x are kept compatible to iTop 2.7

The extension was tested on iTop 2.7.10 and 3.2.1

Attribution

This Extension uses Icons from:

power connector by Arthur Shlain from https://thenounproject.com/browse/icons/term/power-connector/