Enroll and view devices
The Red Hat Edge Manager manages the device lifecycle from enrollment to decommissioning of a device. The device lifecycle also includes device management, such as organizing, monitoring, and updating your devices with the Red Hat Edge Manager.
You can manage your devices individually or in a fleet. With the Red Hat Edge Manager you can manage a whole fleet of devices as a single object instead of managing many devices individually.
You only need to specify the required configuration once, and then the Red Hat Edge Manager applies the configuration to all devices in the fleet.
Understanding individual device management is the foundation for managing devices in a fleet. You might want to manage your devices individually in the following scenarios:
- If a few devices have different configurations.
- If you use external automation for updating the device.
The following sections focus on managing individual devices:
Enroll devices Copy linkLink copied!
To manage your devices with the Red Hat Edge Manager, you must enroll the devices to the Red Hat Edge Manager service.
The first time the Red Hat Edge Manager agent runs on a device, the agent prepares for the enrollment process by generating a cryptographic key pair. The cryptographic key pair serves as the unique cryptographic identity of the device. The key pair consists of a public and a private key. The private key never leaves the device, so that the device cannot be duplicated or impersonated.
When the device is not yet enrolled, the agent performs service discovery to find its Red Hat Edge Manager service instance. Then, the device establishes a secure, mTLS-protected network connection to the service. The device uses its X.509 enrollment certificate that the device acquired during image building or device provisioning. The device submits an enrollment request to the service that includes the following:
- a description of the device hardware and operating system
- an X.509 Certificate Signing Request which includes the cryptographic identity of the device to obtain the initial management certificate
The device is not considered trusted and remains quarantined in a device lobby until an authorized user approves or denies the request.
For more information, see the following sections:
Enroll devices on the CLI Copy linkLink copied!
You must enroll devices into the Red Hat Edge Manager service before you can manage them.
Before you begin Copy linkLink copied!
- You must install the Red Hat Edge Manager CLI. See Installing the Red Hat Edge Manager CLI.
- You must log in to the Red Hat Edge Manager service.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
After you approve the enrollment request, the service issues the management certificate for the device and registers the device in the device inventory. You can then manage the device.
View devices Copy linkLink copied!
To get more information about the devices in your inventory, you can use the Red Hat Edge Manager CLI.
View device inventory and device details on the web UI Copy linkLink copied!
You can view details for enrolled devices, including their status and health, on the Red Hat Edge Manager web UI.
Before you begin Copy linkLink copied!
- You must install the Red Hat Edge Manager CLI. See Installing the Red Hat Edge Manager CLI.
- You must enroll at least one device.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
- From the navigation panel, select . This opens the external Edge Manager instance.
- From the navigation panel, select Devices where you can view your device inventory, details, and decommission devices.
View device inventory and device details on the CLI Copy linkLink copied!
View the device inventory and retrieve detailed information by using the flightctl command.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Labels and label selectors Copy linkLink copied!
You can organize resources by assigning labels for location, hardware, or purpose. The Red Hat Edge Manager labels follow the same syntax, principles, and operators as Kubernetes labels and label selectors. Use these labels to select devices or apply operations to devices in the inventory.
Labels follow the key=value format. You can use the key to group devices. For example, if your labels follow the site=<location> naming convention, you can group your devices by site. You can also use labels that only consist of keys.
Labels must adhere to the following rules to be valid:
- Keys and value must each be 63 characters or less.
- Keys and values can consist of alphanumeric characters (
a-z,A-Z,0-9). - Keys and values can also contain dashes (
-), underscores (_), dots (.) but not as the first or last character. - Value can be omitted.
You can apply labels to devices in the following ways:
- Define a set of default labels during image building that are automatically applied to all devices during deployment.
- Assign initial labels during enrollment.
- Assign labels post-enrollment.
When resources are labeled, you can select a subset of devices by creating a label selector. A label selector is a comma-separated list of labels for selecting devices that have the same set of labels.
See the following examples:
| Example label selector | Selected devices |
|---|---|
| |
All devices with a |
| |
All devices with a |
| |
All devices with a |
View devices and their labels on the web UI Copy linkLink copied!
View devices and their associated labels on the web UI. You can use labels to organize your devices and device fleets.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
- From the navigation panel, select . This opens the external Edge Manager instance.
- From the navigation panel, select Devices.
- Select the device you want to manage. In the Details tab you can view the associated labels under Labels.
View devices and their labels on the CLI Copy linkLink copied!
View devices and their associated labels. You can use labels to organize your devices and device fleets.
About this task Copy linkLink copied!
Complete the following steps:
Procedure Copy linkLink copied!
Update labels on the CLI Copy linkLink copied!
You can update the labels on your devices by using the Red Hat Edge Manager CLI.
About this task Copy linkLink copied!
Complete the following steps: