# Hudu and IT Glue

> Connect Hudu or IT Glue — link every customer to its company, link devices to their assets or configurations, open them from RackTrace, and let RackTrace write a link back.

URL: https://docs.racktrace.io/integrations/hudu-it-glue

Hudu and IT Glue keep the documentation of your customers: passwords, procedures, contacts, licences. RackTrace is the **network layer next to it**: the racks, ports and cables, down to where every cable goes. Connect the two, and:

- every tenant is linked to its **company** (Hudu) or **organization** (IT Glue);
- its **assets** (Hudu) or **configurations** (IT Glue) are linked to the devices in RackTrace — suggested by **serial number**, then **MAC address**, then **name**, and confirmed by you;
- a linked device has **Open in Hudu** or **Open in IT Glue** on its page and in the inspector of the rack editor;
- optionally RackTrace writes a **link back** in Hudu or IT Glue: the address of the device in RackTrace, where it is in the rack and where its ports go.

One platform per organization: Hudu or IT Glue.

## Connecting Hudu or IT Glue

1. Create an API key — see the steps per platform below.
2. In RackTrace, open **Administration → Integrations**, tab **Hudu / IT Glue**. Choose the **Platform** and fill in the details.
3. Click **Test connection**, then **Save**.
4. Under **Tenants**, choose for every tenant the company (Hudu) or organization (IT Glue) it is. When one has the same name, **Link to …** does it in one click. Its assets or configurations are read straight away.

The API key is stored encrypted on the RackTrace server and never shown again or sent to browsers. **Remove API key** removes it. Choosing another **Platform** removes the links of the tenants and the devices; what RackTrace wrote in the old platform stays there.

RackTrace reads the platform again every hour (**Read the platform again every (minutes)**, at least 15). With several app instances, one of them does this per organization, like the other background jobs.

### Hudu

1. In Hudu, go to **Admin → API Keys** and click **New API Key**. Leave **Password access** off: RackTrace never reads passwords.
2. In RackTrace fill in the **Hudu address** (`https://yourcompany.huducloud.com`, or the address of your own Hudu server) and the **API key**.

RackTrace reads the companies that are not archived and their assets: the name, the asset layout, the serial number (the primary serial, else a field with *serial* in its name), the MAC address and IP address (the asset fields with those names) and the model.

### IT Glue

1. In IT Glue, go to **Account → Settings → API Keys**, under **Custom API Keys** click **+ Generate API Key**. Leave **Password Access** off.
2. In RackTrace choose the **Region** of your IT Glue account — **US** (`itglue.com`), **EU** (`eu.itglue.com`) or **Australia** (`au.itglue.com`) — and fill in the **API key**.

RackTrace reads the organizations and their configurations that are not archived: the name, host name, type, serial number, MAC address, primary IP, manufacturer and model.

> **The region**
>
> A key only works in the region of its account. *IT Glue refused the API key* with a key you just made usually means another region.

## Linking devices

Open **Network → Hudu** (or **IT Glue**) — shown once the platform is connected. The page lists the assets or configurations of the tenant's company.

- Filter with **All**, **Suggestions**, **Not linked**, **Linked** and **Ignored**; search on name, serial number, MAC address or model.
- A **suggestion** is a RackTrace device with the same **serial number**, else the same **MAC address**, else the same **name** (or ID). It is only made when exactly one device fits, and one device is linked to one asset. Patch panels, outlets and other passive parts are never suggested.
- **Accept** takes a suggestion; **Link all suggestions** takes them all.
- The link icon links an asset to a device you choose; the unlink icon removes the link.
- **Ignore** hides what has no device in RackTrace, such as laptops.
- **Sync now** reads the company again.

Linking needs the **Documentation** right on the tenant (see [Users and groups](https://docs.racktrace.io/administration/users-and-groups#roles)); everybody who can see the tenant sees the links. The history of the device records every link.

## Open in Hudu / IT Glue

A linked device shows **Open in Hudu** or **Open in IT Glue**:

- on the [device page](https://docs.racktrace.io/features/devices#device-page), at the top and as a line in **Details**;
- in the [inspector of the rack editor](https://docs.racktrace.io/features/rack-editor#editor-inspector), under the name of the selected device.

It opens the asset or configuration in a new tab.

## The link back to RackTrace

Under **Link back to RackTrace**, tick **Write a link to RackTrace in …** and click **Save**. RackTrace then writes, for every linked device:

- the address of its page in RackTrace;
- where it is: site, room, rack and unit;
- its ports with where their cable goes (through patch panels to the far end).

Where it goes:

| Platform | Place |
|---|---|
| Hudu | The asset field you choose under **Asset field for the link**. A *Website* or *Text* field gets the address, only when it is **empty or already holds the link of RackTrace**. A *RichText* field, such as *Notes*, gets a paragraph **after** what is in it. Tip: add a Website field *RackTrace* to the asset layouts of network devices and servers. |
| IT Glue | The **notes** of the configuration: a paragraph after what is in them. |

RackTrace never writes over text that is not its own:

- A field that holds something else is left alone; the page of the tenant says *the field … is in use* in the column **Link back**.
- When a device moves or is cabled differently, only RackTrace's own paragraph is replaced.
- When a device is unlinked or deleted, the paragraph or link comes out again, and the field or notes are as they were before.
- In Hudu, RackTrace sends the asset back with all its fields as it read them, and checks what Hudu answers. If any other field changed, RackTrace switches the link back off and says so under **Link back to RackTrace**. Look at what happened, then save with the link back switched on to start again.

New and removed links get their link back within a minute; devices that moved are brought up to date when the platform is read again.

Switching the link back off stops the updates: what was written stays until you switch it on again. Unlinking a tenant, or choosing another company or platform, leaves what was written in the old one — remove it there if you want.

> **On your own server**
>
> RackTrace on your own server does not know the address your colleagues open it at. Fill in **Address of RackTrace (for the link)** (or set `RACKTRACE_PUBLIC_URL` on the server); without it, no link back is written.

## When something goes wrong

| Message | What to do |
|---|---|
| *Hudu refused the API key* | Check the key under **Admin → API Keys** in Hudu, and that it is not expired or removed. |
| *IT Glue refused the API key* | Check the key and the **Region**. IT Glue revokes keys that have not been used for 90 days. |
| *… is busy (rate limit)* | IT Glue allows 3000 requests in 5 minutes. RackTrace tries again at the next run. |
| *… is an internal address that RackTrace cannot reach* | On racktrace.io the Hudu address must be reachable from the internet. |
| *the field … is in use* | The chosen field of that asset holds something else. Empty it in Hudu, or choose another field, then **Sync now**. |
