Iomatex_OS/stage_avahi
Andrei Smaliak 9238e8b442 Release Console 3.1.1 with Git-backed per-stage updates in Health 2026-09-15 11:43:47 +02:00
..
README.md Avahi aloasses added 2026-06-10 12:46:53 +04:00
stage_avahi_install.sh Release Console 3.1.1 with Git-backed per-stage updates in Health 2026-09-15 11:43:47 +02:00
stage_avahi_uninstall.sh Avahi aloasses added 2026-06-10 12:46:53 +04:00
version.json Release Console 3.1.1 with Git-backed per-stage updates in Health 2026-09-15 11:43:47 +02:00

README.md

stage_avahi

stage_avahi adds mDNS/Avahi discovery for IOMATEX Edge.

After installation, an engineer can open the Web UI by hostname instead of finding the DHCP IP manually:

http://<hostname>.local/

Example:

http://g-box-023.local/

What It Installs

  • avahi-daemon
  • avahi-utils
  • libnss-mdns

It enables avahi-daemon.service and advertises the IOMATEX Web UI as an HTTP service on port 80.

The Avahi service file is:

/etc/avahi/services/iomatex-web.service

Hostname

The installer uses the current system hostname.

Expected Edge hostname format:

g-box-a6559955

If the hostname is empty or localhost, the installer generates:

g-box-<last6_of_machine_id>

Then it applies it with:

hostnamectl set-hostname

mDNS Name

By default this stage publishes the short Avahi/mDNS name:

g-box-023.local

This is configured as Avahi host-name, so it does not require changing the system hostname used by the rest of the Edge.

The stage also publishes these additional .local aliases:

g-box-023d.local
gbox023d.local
023.local
023d.local

These aliases are published by:

iomatex-mdns-aliases.service

To override it during install:

sudo IOMATEX_MDNS_HOSTNAME=g-box-024 bash stage_avahi/stage_avahi_install.sh

To override aliases during install:

sudo IOMATEX_MDNS_ALIASES="g-box-024d gbox024d 024 024d" bash stage_avahi/stage_avahi_install.sh

Install

Run on the Edge:

sudo bash stage_avahi/stage_avahi_install.sh

Expected Web UI URL:

http://g-box-023.local/

Alias URLs:

http://g-box-023d.local/
http://gbox023d.local/
http://023.local/
http://023d.local/

Engineer Connection Flow

  1. Connect the engineer laptop or phone to the same network as the Edge.
  2. Check the Edge hostname:
hostname
  1. Open:
http://<hostname>.local/

Example:

http://g-box-023.local/

Verification

On the Edge:

systemctl status avahi-daemon.service --no-pager
systemctl status iomatex-mdns-aliases.service --no-pager
avahi-browse -art | grep -i iomatex
cat /etc/avahi/services/iomatex-web.service

From Linux or macOS on the same network:

ping <hostname>.local
avahi-browse -art | grep IOMATEX

From Windows:

ping <hostname>.local

Then open:

http://<hostname>.local/

If .local Does Not Open

Check these points:

  • The Edge and the engineer device must be on the same L2 network/VLAN.
  • Some routers or Wi-Fi guest networks block multicast traffic.
  • avahi-daemon.service must be active on the Edge.
  • /etc/nsswitch.conf should contain:
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
  • On Windows, mDNS support depends on the OS/network policy. Try browser access first, then ping <hostname>.local.
  • As a fallback, use the DHCP IP address directly:
http://<edge-ip>/

Uninstall Advertisement

To remove only the IOMATEX Web UI advertisement:

sudo bash stage_avahi/stage_avahi_uninstall.sh

The uninstall script does not remove Avahi packages and does not change hostname.