...

Agent macOS 2.0 – Installation

Estimated reading: 5 minutes

Agent macOS 2.0 – Installation

Step-by-step guide for macOS

This document provides the installation guide for Almaden agents on macOS. These agents are essential components responsible for collecting and transmitting device data to the CIQ ITAM and CIQ DEX portals. By ensuring their proper installation and configuration, organizations can guarantee accurate data flow for asset management, performance, and digital experience insights.

Prerequisites

If there is a previous installation of the Agent, run the command below before proceeding:

sudo rm -rf /Applications/AutomatosADA

Download

Step 1 – Download

CIQ ITAM> Settings> Agent Download

  • Select Operating System: MacOS
  • Click> Download
image 68 Agent macOS 2.0 - Installation

Installation

Step 2 – Run the installation package.
image 37 Agent macOS 2.0 - Installation
Step 3 – Proceed with the installation process.
image 38 Agent macOS 2.0 - Installation
image 41 Agent macOS 2.0 - Installation
image 39 Agent macOS 2.0 - Installation
image 42 Agent macOS 2.0 - Installation
image 40 Agent macOS 2.0 - Installation
image 43 Agent macOS 2.0 - Installation
image 67 Agent macOS 2.0 - Installation

You can check for the almaden-agent in “Applications”

image 46 Agent macOS 2.0 - Installation

Configure Commands

Step 4 – Configuration commands

Applying the configuration commands is mandatory.

# Example
almacli config set --SUBCOMMAND CONFIGURATION

#Commands
almacli config set --customer-email ACCOUNT
almacli config set --department-name DEPARTMENT
almacli config set --receiver-url RECEIVER
almacli config set --receiver-port 443

ACCOUNT = Main account for accessing CIQ ITAM and CIQ DEX (Not a user sub-account)
DEPARTMENT = Department where this device’s record will be created in CIQ ITAM
almacli config set --receiver-port 443 = Do not change this line; communication occurs only through port 443

RECEIVER = Agent data transmission to Almaden
LAD1: lad1v1rm1.almaden.app
LAD2: lad2v1rm1.almaden.app

Example

image 71 Agent macOS 2.0 - Installation

Check applied configuration

Step 5 – Check the applied settings
almacli config get
image 48 Agent macOS 2.0 - Installation
Command: almacli config get
Step 6 – Data Consolidation Time

Please allow up to 1 hour after installation, with the device turned on and connected to the internet, for the data to be consolidated in the CIQ ITAM and CIQ DEX portals.

DONE!


Checking connectivity to Almaden

This test is crucial to validate agent communication with Almaden. Any blockage on the corporate network may prevent data from being sent, which would result in the device not being registered on the CIQ ITAM and CIQ DEX portals.

# Command to test communication with LAD1
nc -vz lad1v1rm1.almaden.app 443

# Command to test communication with LAD2
nc -vz lad2v1rm1.almaden.app 443
image 61 Agent macOS 2.0 - Installation
Expected result – succeeded!

Advanced Commands

useful for technicians

Advanced commands are used to analyze the agent’s behavior, stop and restart the process, and validate data transmission to the CIQ ITAM and CIQ DEX portals.

almacli
image 47 Agent macOS 2.0 - Installation
almacli

Agent Version

Displays the installed agent’s version.

almacli --version  
image 50 Agent macOS 2.0 - Installation
almacli --version

Configuration

almacli config  
image 51 Agent macOS 2.0 - Installation
almacli config

View applied settings

almacli config get  

Displays the configurations applied to the agent.

image 52 Agent macOS 2.0 - Installation
almacli config get

Apply settings

Applies the agent’s communication commands: Main Account, Department, Receiver, and Receiver Port.

  • ACCOUNT = Main account
  • DEPARTMENT = Department to organize the device at CIQ ITAM
  • RECEIVER = Receiver address
  • Note: Port 443 should never be changed
almacli config set --customer-email ACCOUNT
almacli config set --department-name DEPARTMENT
almacli config set --receiver-url RECEIVER
almacli config set --receiver-port 443
image 72 Agent macOS 2.0 - Installation

View entity logs

Displays the logs of each entity for both collector and consumer.

almacli entity-logs
image 53 Agent macOS 2.0 - Installation
almacli entity-logs

Specific entity

Provides detailed logs for each entity.

almacli entity-logs --entity-name ENTITY_NAME
SUBCOMMANDINFORMATION
almacli entity-logs --entity-name almaden.battery.collectorDisplays logs related to battery data collection.
almacli entity-logs --entity-name almaden.battery.consumerShows logs of battery information consumption by the agent.
almacli entity-logs --entity-name almaden.geolocation.consumerDisplays logs of geolocation data usage and processing.
almacli entity-logs --entity-name almaden.geolocation.readerShows logs of geolocation data reading.
almacli entity-logs --entity-name almaden.installed-apps.consumerDisplays logs of consumption and processing of the installed applications list.
almacli entity-logs --entity-name almaden.installed-apps.readerShows logs of reading installed applications on the device.
almacli entity-logs --entity-name almaden.interfaces.consumerDisplays logs of processing and consumption of network interface information.
almacli entity-logs --entity-name almaden.performance.consumerShows logs of system performance data consumption.
almacli entity-logs --entity-name almaden.processes-cpu-consumption.consumerDisplays logs related to CPU consumption by processes.
almacli entity-logs --entity-name almaden.processes-mem-consumption.consumerShows logs about memory consumption by processes.
almacli entity-logs --entity-name almaden.sysinfo.consumerDisplays logs of system information consumption.
almacli entity-logs --entity-name almaden.usb-slots-events.consumerShows logs of events related to USB ports.
almacli entity-logs --entity-name almaden.volumes.consumerDisplays logs about storage volumes consumed by the agent.
almacli entity-logs --entity-name almaden.wifi.collectorShows logs of Wi-Fi connection data collection.
almacli entity-logs --entity-name almaden.wifi.consumerDisplays logs of Wi-Fi data consumption and processing.

Example

image 54 Agent macOS 2.0 - Installation
almacli entity-logs --entity-name almaden.geolocation.consumer

View application logs (Agent)

Displays the agent’s operational flow, showing the execution date of readers, reader threads, and Dispatch.

almacli application-logs
image 55 Agent macOS 2.0 - Installation
almacli application-logs

List all agent components

Displays the list of all components of the entities.

almacli list SUBCOMMAND  
image 56 Agent macOS 2.0 - Installation
almacli list

Subcommands

This command only lists the application components.

SubcommandInformation
almacli list readersList all readers managed by the agent
almacli list collectorsList all collectors managed by the agent
almacli list consumersList all consumers managed by the agent
almacli list dispatchersList all dispatchers managed by the agent
almacli list read-threadsList all read-threads managed by the agent
almacli list dispatch-threadsList all dispatch-threads managed by the agent

Example:

image 57 Agent macOS 2.0 - Installation
almacli list collectors

Agent activity and dispatch

Check the agent’s operating and dispatch flow

almacli activity SUBCOMMAND  
image 58 Agent macOS 2.0 - Installation
almacli activity

Agent reading

Displays how many times the related reader has run in the last 30 days and its most recent execution.

almacli activity read-thread  
image 63 Agent macOS 2.0 - Installation
almacli activity read-thread

Dispatch activity

almacli activity dispatch-thread

Displays how many times data has been sent to Almaden in the last 30 days and its most recent transmission.

image 64 Agent macOS 2.0 - Installation
almacli activity dispatch-thread

Agent Service

Commands to control the agent’s operation, including stopping and starting the agent.

# Starts the agent's operation
almacli launchd load

Stops the agent's operation.
almacli launchd unload  

Note: The agent can only be stopped using “unload”; if terminated by other methods on macOS, it will automatically restart.

image 65 Agent macOS 2.0 - Installation
almacli launchd

Uninstall

Uninstall

To uninstall the Almaden agent, run the command below:

cd "/Library/Application Support/Almaden/Uninstall/" && ./almaden-agent.command

After entering the administrator password, the agent will be uninstalled.

image 66 Agent macOS 2.0 - Installation

Share this Doc

Agent macOS 2.0 – Installation

Or copy link

Table of Contents
Scroll to Top