LogoLogo
What's New?Connect Agent ReleasesBook a DemoPricing
  • Documentation
  • Developers
  • Administration
  • OVERVIEW
    • JFrog Connect Overview
      • Architecture Overview
        • Connect Agent
        • Connect & JFrog Platform
      • Plan Your Update Strategy
        • Software Update Objectives & Concepts
        • Software Update Process & Procedures
  • Get Started
    • Create JFrog Connect Account
    • Log in to JFrog Connect
    • Network Requirements
    • Register Device
  • Manage your Fleet
    • Register Devices at Scale
      • Freeze Image on Device
      • Build Image with Agent
    • Register & Update Device at Once
    • Organize Your Fleet
      • Create Project
      • Move Device between Projects
      • Create Groups
        • Add Device to Group
        • Add Many Devices to Group
        • Change Group Name
        • Delete Group
      • Tag Devices
        • Remove a Tag
      • Remove Many Devices
  • Devices
    • Fleet Overview
      • Filter Devices
      • Locate Devices
    • Device Details
      • Delete a Device
      • Block Updates with Update Trigger
    • Update Connect Agent
    • Delete Many Devices
  • Deployment
    • Create Update Flow
      • Actions
        • Run Command
        • Run Script
        • Deploy File
        • Deploy Docker
          • Use Docker Image
          • Use Docker Compose
          • Get Artifactory Parameters
        • Clone Git Repository
        • Download Artifact
          • Get Artifactory Path
        • Download Release Bundle
          • Get Artifactory Parameters for Release Bundle
        • Update Image
        • Install Debian Package
          • Get Artifactory Parameters for Debian
      • Use Update Parameters
      • On Failure & Rollback
      • Vulnerability Scans
      • Sample Use Case: Build Update Flow for Reuse
    • Deploy Software
      • Set Application & Version
      • Set Alert upon Failure
      • Set Phased Rollout
      • View Deployment Progress
        • Detailed Deployment Information
        • Abort a Deployment
      • Deploy in Groups
      • Sample Use Case: Deploy Docker Images to Devices
  • Tools
    • Remote Tools
      • Use Terminal
      • Open Port Tunnel Session
        • Access with VNC
        • Connect with SSH
        • Access Device Web Applications
      • Run Commands Remotely
        • Run Command as Non-Root User
      • Get Device Files (Fetch Files)
    • Alerts
      • Create Channel
      • Set Webhook
    • Monitor
      • Resource Monitor
      • Process Monitor
  • Releases
    • What's New?
    • Connect Agent Release Notes
  • Troubleshooting
    • Connect Server Status
    • Troubleshoot Topics
      • Device Registration
      • Terminal Troubleshooting
Powered by GitBook
On this page
  • Prerequisites
  • Step 1: Obtain Connect Agent Binary
  • Step 2: Prepare Settings File
  • Using Connect Agent 7.0
  • Using Connect Agent 6.x or Lower
  • Step 3: Duplicate and Distribute Image
  • What’s Next?

Was this helpful?

Export as PDF
  1. Manage your Fleet
  2. Register Devices at Scale

Build Image with Agent

This page describes how to insert the Connect Agent into an OS image build in order to deploy JFrog Connect to a large number of devices.

PreviousFreeze Image on DeviceNextRegister & Update Device at Once

Last updated 28 days ago

Was this helpful?

This method is suitable for off-the-shelf and custom linux-based operating systems. This procedure uses Yocto OS as an example, but it is applicable to other OS’s as well.

Prerequisites

You need the following before starting the procedure:

  • Devices meet minimum hardware, OS, and software requirements as described in

  • Internet connectivity with the devices

  • account created and a project defined as described in

OS Image Requirements

The requirements and parameters specifically for Yocto are shown below.

  • Systemd or init.d and Cron. It is recommended to use Systemd: DISTRO_FEATURES_append = " systemd" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" VIRTUAL-RUNTIME_initscripts = ""

  • OpenSSH: CORE_IMAGE_EXTRA_INSTALL_append = " openssh"

For other operating systems, the requirements are similar:

  • Systemd or init.d (systemd is recommended)

  • Cron

  • OpenSSH

Step 1: Obtain Connect Agent Binary

To obtain the Connect Agent binary file, contact JFrog Connect Support.

Step 2: Prepare Settings File

Using Connect Agent 7.0

  1. Open the file connect/service/settings.json

  2. Fill in the value for <pairing_token>. To find this, go to the Devices page and click Register Device. Below is an example of a settings.json file with the values filled in. {"pairing_token":"the-pairing-token", "device_name":"","device_group":"", "software_version":"", "device_token":""}

  3. Save the file.

  4. Copy the following files and folders to your OS (i.e., Yocto) file system:

    • /connect/ folder to /etc/

    • connect.service file to /etc/systemd/system/

    • connect.service file to /etc/systemd/system/multi-user.target.wants/

Tip: For some agent sub-versions, the branding and name of Connect is defined as Upswift. If the directory/service name/ of Connect does not exist, check for a directory called Upswift.

Using Connect Agent 6.x or Lower

  1. Open the file connect/service/settings.json

  2. Fill in the values for <user_token> and <project_name>. To find these, go to the Devices page and click Register Device. Below is an example of a settings.json file with the values filled in. {"user_token":"YourUserTokenXxxxyyyy","project_name":"Demo","device_name":"","device_group":"","software_version":"","device_token":""}

  3. (Optional) If you leave the values of <device_name> and <device_group> blank, by default the devices will register with the generated name "New Device" and group "Production". However, you could set the value of <device_name> to “$HOSTNAME” or to some other variable. Then the device name that appears in the web UI will be the host name of each device (or a different name depending on the variable you use for the <device_name> value).

  4. Save the file.

  5. Copy the following files and folders to your OS (i.e., Yocto) file system:

    • /connect/ folder to /etc/

    • connect.service file to /etc/systemd/system/.

    • connect.service file to /etc/systemd/system/multi-user.target.wants/

Tip: For some agent sub-versions, the branding and name of Connect might appear as Upswift. If the directory/service name of Connect does not exist, check for "upswift" instead of Connect.

Step 3: Duplicate and Distribute Image

  1. Duplicate the OS image and burn it on your SD cards or eMMC flashes.

  2. Boot the new devices that have the duplicated image. Connect Agent will automatically recognize that it is running on new hardware and will register the device as a new device.

What’s Next?

The new devices now appear in the Web UI on the Devices page. You can view them there and edit any of the details as necessary. To change the device names and groups automatically, complete the procedure in .

Learn a simple way to deploy software updates to your fleet by creating .

Connect Agent
JFrog Connect
Create JFrog Connect Account
update flows
Set Device Name and Group Automatically