.. _base-functionality: ############################################ Device Management and Performance Monitoring ############################################ Devices are machines registered with Orchestra, such as gateways, servers or virtual machines. Orchestra Manager brings them together in one place, where you can view their connection status and system information, track CPU and memory usage, and monitor network traffic. Devices configured for remote access also support secure terminal sessions for troubleshooting and maintenance without being on site. For each device you can: * See its key information, such as hardware, operating system and online history * Monitor its performance and network * Connect to it via SSH from the browser * Override global variables for this device only * Check which compositions are deployed to it and what their status is * Check its logs and the history of its actions * Delete it from Orchestra .. _om-devices: Devices ======= The **Devices** page lists all devices of the tenant with their connection status and operating system. Here you can search for a device and add a new device. Click a device to open its details. The device view has up to seven tabs: :ref:`Info `, :ref:`Performance `, :ref:`Networking `, :ref:`Network events `, :ref:`Terminal `, :ref:`Variables ` and :ref:`Compositions `. The **Network events** tab is shown only for devices with a cellular modem. Each tab is described below. .. figure:: images/devices-view.png :alt: Devices page :width: 100% :align: center .. _om-devices-billing: Free devices and billing ------------------------ Your plan includes 10 free devices. Each additional device is charged monthly, and the charge is included in your bill for the billing period. When you click **Add device**, one of these windows can appear: * **Your plan includes 10 free devices**: a reminder that each device beyond the free ones is charged monthly. To add the device, click **Continue** * **Add a billing details to continue**: all 10 free devices are in use and your tenant has no billing details yet. Click **Add billing details** to go to the **Billing** page and fill in the details printed on your invoices .. note:: Only users with the **Super Admin** role see these windows. When an **Editor** or **Admin** adds a device, it is added right away. .. figure:: images/devices-billing1.png :alt: Your plan includes 10 free devices window :width: 100% :align: center .. figure:: images/devices-billing.png :alt: Add a billing details to continue window :width: 100% :align: center .. _om-device-info: Info ==== The **Info** tab shows a quick summary of the key device information: * **Device info**: name, ID, hostname, **Last seen online** and **First Registration** * **Basic Info**: CPU, CPU architecture, number of cores and RAM * **On/Off states**: when the device was online over time * **Operating System**: host OS and kernel version .. figure:: images/device-info.png :alt: Info tab of a device :width: 100% :align: center .. _om-device-performance: Performance =========== The **Performance** tab gives a deeper view of the device metrics. It shows charts of: * CPU usage * Memory usage * Incoming network traffic * Outgoing network traffic .. tip:: Use the dropdown menu above the charts to show the last 1 hour, 6 hours, 24 hours or 7 days of performance. .. figure:: images/device-performance.png :alt: Performance tab of a device :width: 100% :align: center .. _om-device-networking: Networking ========== The **Networking** tab shows the status of all network interfaces of the device, for example their IP addresses, hardware address, default route and DNS. .. figure:: images/device-networking.png :alt: Networking tab of a device :width: 100% :align: center .. _om-device-network-events: Network events ============== The **Network events** tab shows detailed network information for devices with cellular modems: * **Networking equipment**: manufacturer, model and IMEI of the modem * **Network state**: connection type (for example LTE), signal strength (RSSI, RSRP, RSRQ, SNR) and registration state * **SIM card**: ICCID, IMSI, whether the SIM card is active, and GID * **Signal charts**: signal strength metrics over time .. tip:: Select the modem by its IMEI in the list above the tables. Use the list next to it to choose the time range, for example **24 hours**, or enter your own **From** and **To** dates. .. figure:: images/network-events.png :alt: Network events tab of a device :width: 100% :align: center .. _om-device-terminal: Terminal ======== The **Terminal** tab gives you quick SSH access to the device. Click **Start session** to open a terminal in the browser. You can open several sessions with the same device at once. Your browser connects to the device directly. If a direct connection isn't possible, Orchestra sets up a proxy for you. .. figure:: images/terminal.png :alt: Terminal tab of a device :width: 100% :align: center .. _om-device-variables: Variables ========= The **Variables** tab shows the variables that customize the behavior of applications and compositions deployed to the device. Variables are key-value pairs, so you can adapt deployments to different environments without changing the compositions. For each variable you can see its key, current value and overridden value. .. figure:: images/device-variables.png :alt: Variables tab of a device :width: 100% :align: center The label next to each value shows where the variable comes from, for example **FLEET** for a variable set in the fleet or **DEVICE** for a variable set on this device. An inherited variable can't be edited here. Edit it where it is defined, for example in the fleet. .. figure:: images/variables-type.png :alt: Variables tab with the FLEET and DEVICE source labels :width: 100% :align: center Overriding variables -------------------- You can override a global variable for one device. To do this, add a variable on the device's **Variables** tab with the same key as the global variable. Its value then replaces the global one on this device. When a variable is overridden, the table shows both values: * **Current value**: the value the device uses, marked **DEVICE** * **Overridden value**: the global value that no longer applies to this device, marked **GLOBAL** .. figure:: images/variables-value.png :alt: Variables tab with the Current value and Overridden value columns :width: 100% :align: center .. _om-device-compositions: Compositions ============ The **Compositions** tab lists all containerized applications (compositions) deployed to the device. The summary shows how many compositions are planned, planned when online, in progress, completed, degraded, failed or unknown, and the total number of compositions. .. figure:: images/devices-compositions.png :alt: Compositions summary of a device :width: 100% :align: center The list below shows each composition with its name, ID, current released version, fleet name, fleet ID and status. .. figure:: images/compositions-lowpart.png :alt: List of compositions deployed to a device :width: 100% :align: center .. _om-device-logs-actions: Device logs and actions ======================= To find out what happened on a device, check its logs or the actions run on it. .. _om-device-logs: Device logs ----------- The **Device logs** page lists the log entries sent by the device, each with its date, time and message. You can: * Search for specific entries with the search field * Show the entries from a period, with **From** and **To** dates .. figure:: images/device-logs.png :alt: Device logs page with the search field and the From and To dates :width: 100% :align: center .. _om-device-actions: Device actions -------------- The **Device actions** page lists the actions run on the device. For each action you can see its status, the date and time it was run and its name. The colored dot shows the status, for example whether the action is done, in progress, waiting for the device or failed. .. figure:: images/device-actions.png :alt: Device actions page with the list of actions run on the device :width: 100% :align: center Click an action to open the **Log details** window. It shows: * **Stdout**: the output of the action * **Stderr**: the errors reported by the action * **Failure reason**: why the action failed, if it did Next to each part, click **Raw** to see the plain text, or use the icons to copy or download it. .. figure:: images/log-details.png :alt: Log details window with the Stdout, Stderr and Failure reason of an action :width: 100% :align: center Open device logs and actions ---------------------------- The buttons for both pages are next to each other in the top right corner of the device page, on the right side of the tabs: * The bug icon opens **Device logs** * The clock icon opens **Device actions** You can see these buttons on the **Info**, **Performance**, **Networking**, **Network events** and **Terminal** tabs. .. figure:: images/logs-terminal.png :alt: Device logs and Device actions buttons in the top right corner of the device page :width: 100% :align: center .. _om-delete-device: Delete a device =============== You can delete a device you no longer want to manage in Orchestra. To do this, you need the **Editor**, **Admin** or **Super Admin** role. 1. Open the device and click the gear icon in the top right of the page. .. figure:: images/device-delete1.png :alt: Gear icon in the top right of the device page :width: 100% :align: center 2. In the **Device settings** window, click **Delete device**. .. figure:: images/device-delete2.png :alt: Device settings window with the Delete device button :width: 100% :align: center 3. In the **Delete device?** window, click **Delete**. The device is removed and the **Devices** page opens.