How can I image a Linux computer with Endpoint Central Agent on it?

Description

This document will guide you to image a Linux computer with the agent on it. There are few pre-requisites which are described below.

Cause

The agent has a unique id which represents the machine with its name and system details. If more than one agent is identified with the same id, the details listed in the product we console will be overwritten. This would end up listing details of only one computer thought there are several computers with the same id. So in order to avoid this issue, follow the steps mentioned below to image a computer with agent on it.

Steps

Steps to be performed on the computer which is to be used for imaging.

  1. Install the agent in the computer.
  2. Ensure that you have super user privileges to perform the below actions.
  3. Open the terminal and run this command
    systemctl stop dcservice.service (For SystemD)
    /etc/init.d/dcservice stop (For SystemVInit)
    to stop DC Agent Service.
  4. Download "LinuxOSImager" in the Machine. 
  5. Navigate to the location where "LinuxOSimager" is stored, open terminal and run this command "chmod +x LinuxOSImager". This prepares the file for execution.
  6. Run this command : "./LinuxOSImager set". Now the machine will be marked as imaged.
  7. Take the Image of the OS. 
  8. Run the command : "./LinuxOSImager reset". This is needed for the machine to contact the product server.
  9. Restart the DC Agent Service by running this command
    systemctl restart dcservice.service (For SystemD)
    /etc/init.d/dcservice restart (For SystemVInit)

Steps to be performed on the computer where the image will be deployed.

  1. Deploy the OS image in the new machine.
  2. Rename the New machine.
  3. Open the terminal and run this command
    systemctl restart dcservice.service (For SystemD)
    /etc/init.d/dcservice restart (For SystemVInit)
     as root user.
  4. This machine will be now added to Endpoint Central.

 

‚Äč