# Devices and ports

> Add devices, use the device page, edit, move or change the model of a device, edit ports and fit expansion cards.

URL: https://docs.racktrace.io/features/devices

Devices in a rack are easiest to add in the [rack editor](https://docs.racktrace.io/features/rack-editor). Devices outside racks, such as floor boxes, wall outlets, access points and PCs, are added from the room page or straight on the [floor plan](https://docs.racktrace.io/features/floor-plans#plan-create).

## Adding a device to a room

1. Open the room page and click **Add device**.
2. Choose a **Template** from the device library. A template creates all ports with their real names, types and layout. Choose **— Custom device (no template) —** for anything that isn't in the library; you then pick the **Category** and **Height (U)** yourself and add ports afterwards.
3. Fill in **ID** (or leave it empty for an automatic one such as FB01) and **Name**. For a patch panel or outlet, **Port numbering — first port** names its ports: type `A-01` and they become A-01, A-02 … (see [Port numbering](https://docs.racktrace.io/features/rack-editor#port-numbering)).
4. Set the **Status**: Active, Planned, Offline or Decommissioned.
5. Optionally fill in **Management IP**, **MAC address**, **Serial number**, **Asset tag** and **Notes** (a patch panel, PATCHBOX or blank panel only has **Notes**). **Free IP** next to the IP field suggests the next free address of a VLAN (see [IP addresses](https://docs.racktrace.io/network/ip-addresses#ipam)).
6. Click **Add device**. The device page opens.

## The device page

Open a device from the rack editor, a room page, search or a trace. The page shows:

![The device page of a switch](https://docs.racktrace.io/assets/screens/device.webp "The device page of a switch: details, connected devices, the faceplate and the port list.")

- **Details**: the full path as ID, model, category, status, network, location (rack and U, or the room), whether a [front bezel](https://docs.racktrace.io/features/rack-editor#bezels) is fitted, management IP, MAC, serial, asset tag, template, the live state from **Discovery** and **Domotz** when the device is linked, and its asset in **Hudu** or configuration in **IT Glue** (see [Hudu and IT Glue](https://docs.racktrace.io/integrations/hudu-it-glue)).
- **Connected devices**: every device it reaches end to end, through patch panels and outlets, with the port pairs.
- **Ports**: the front and rear faceplate. Hover a port for its details; click it to open the [port dialog](https://docs.racktrace.io/features/devices#port-dialog). Patch panels, PATCHBOXes and outlets have **Port numbering** here to give all ports another name at once.
- **Expansion slots** for servers, storage and other devices with slots.
- **Port list**: every port with type, PoE (what it offers, and its setting), VLANs, role and link aggregation, label, cable, what it is connected to, the end-to-end result and, with discovery, a **Live** column. A port that is switched off has an **off** tag. Filter with **All**, **Connected** or **Free**; the trace icon opens the [trace](https://docs.racktrace.io/features/cables-and-tracing#tracing).
- **History** of the device.

Buttons at the top: **Open in rack editor**, **Open in Hudu** or **Open in IT Glue** for a linked device, **Labels**, **Floor plan**, and for editors **Edit**, **Move**, **Change model**, **Duplicate** and delete.

## Editing, moving and changing the model

### Edit

**Edit** changes ID, name, status, category, network, manufacturer, model, IP, MAC, serial, asset tag, height, **Full depth (blocks front and rear)**, **Display colour** and notes. Click **Save**.

### Move to another room or rack

1. Click **Move**.
2. Under **New location**, pick a room (the device then stands outside a rack) or a rack.
3. For a rack, optionally set **Position (bottom U)** (empty = the first free slot) and **Mounted on** (Front or Back).
4. Click **Move**. Cables stay connected.

### Change model

1. Click **Change model** and search for the new model or part number.
2. Check the preview. Cables, labels, VLANs and the port settings (PoE setting, switched off, link aggregation) move to the port with the same name; RackTrace warns when connected ports don't exist on the new model, because those cables would be removed. A patch panel with its own [port numbering](https://docs.racktrace.io/features/rack-editor#port-numbering) keeps it on the new model (**Keep the port numbering …**, ticked), so its cables find their ports.
3. Click **Change model** (and confirm **Remove those cables** if asked). ID, name, IP and notes stay the same; fitted cards stay when their slot exists on the new model.

## Duplicating and deleting a device

- **Duplicate** makes a copy with the same ports, without cables, in the same room or rack. The ID and name count up (SW01 → SW02). In a rack you can set the **Position (bottom U)**. IP, serial, MAC, asset tag, notes and port labels are not copied.
- The delete button removes the device and its cables. On the device page this cannot be undone; in the rack editor it can (`Ctrl`+`Z`).

## Editing a port

Click a port on the device page. The port dialog shows:

![The port dialog of a switch port](https://docs.racktrace.io/assets/screens/port-dialog.webp "The port dialog: what the port is connected to, end to end, and its details.")

- **Connection**: what the port is connected to, the cable (label, trunk, type, length, colour) and the end-to-end result, with **Trace**, **Simulate**, **Edit cable** and **Disconnect**. A free port has **Connect cable**; see [Connecting a cable](https://docs.racktrace.io/features/cables-and-tracing#connect-cable).
- **Live from the network**: link state, speed, PoE, profile and what is behind the port, when UniFi or another source reports it.
- **VLANs**: the VLANs on the port, with **VLANs…** to change them (see [Setting VLANs on switch ports](https://docs.racktrace.io/network/network-plan#port-vlans)).
- **Port details**: **Label / description** (e.g. Desk 1.14), **VLAN (note)**, **Port type**, **Speed**, **PoE** (what the port offers, e.g. PoE+), **PoE setting** (on, off, passive 24V, passthrough), **Role** (e.g. WAN, Uplink), **Link aggregation** (e.g. LAG 25+26) and **Switched off (disabled on the switch)**. When the device is linked to a source that [keeps the documentation in sync](https://docs.racktrace.io/integrations/discovery#docs-sync), a note says so: the label, VLANs, PoE setting, switched off and link aggregation follow the source.

Click **Save** to keep the changes, or **Delete port** to remove the port and its cable.

### Adding ports

**Add ports** on the **Ports** card opens the port-group editor: per group a **Name prefix**, **Start #**, **Count**, **Digits** (2 gives 01, 02 …), **Type**, **Side** (Front or Rear) and **Pass-through** for front/rear pairs. **More** adds speed, PoE, role and the layout on the faceplate. The **Quick add** buttons (**24× RJ45**, **48× RJ45**, **4× SFP+**, **Patch 24**, **Patchbox 24**, **2× PSU**) fill in a common group. The preview line shows which ports will be created.

## Expansion slots and cards

Servers and NAS units can have slots (PCIe, OCP 3.0, FlexibleLOM …) where you fit network adapters or HBAs. Their ports are added to the device, named after the slot (`S3-1`, `OCP2-1` …).

1. On the device page, find **Expansion slots** (or the section of the same name in the rack editor's inspector).
2. Click **Fit card** next to a slot. Search for the card (e.g. *sfp28*, *fc 32*); only cards that fit the slot are listed.
3. Optionally add a **Label** (e.g. vMotion, iSCSI A) and a **Serial number**, then click **Fit card**.

- **Label / serial / move** changes the label or serial, or moves the card with **Move to slot**: its ports are renamed and the cables stay connected.
- **Remove card** removes the card and its ports. If ports are connected, you confirm with **Remove card and cables**.
- A model without slots can still record a card in a named slot: click **Card in another slot** or **Fit card** and give a **Slot name**.
