Background Services
Main Service
The main service for connecting to the DeviceOn server/cloud is called “DeviceOnAgent” on Windows or “saagent.service” on Linux. This service is configured to start manually by default.
The other related service is “DeviceOnAgent Portal” on Windows or “deviceonagentwebservice.service” on Linux. This provides the web interface and is configured to start automatically. It will launch the DeviceOnAgent service on startup.

To confim the connection status on Linux through agnet_status: 0: Disconnect, 1: Connected, 2: Connecting.
cat /usr/local/AgentService/agent_statusTo update remote server IP:
sudo sed -i "s/CURRENT_IP/NEW_IP/g" /usr/local/AgentService/agent_config.xml
sudo systemctl restart saagent.service
To update IoT Key or Credential URL:
sudo vi /usr/local/AgentService/agent_config.xmlUpdate CrdentialURL and IoTKey tag value and save, then restart the saagent.service.
Watchdog Service
The “SAWatchdog” service is a basic watchdog governing “DeviceOnAgent (Windows), saagent.service (Linux)” in order to ensure service quality.

To list only the running services on linux, we run:
systemctl --type service --state runningLast updated
Was this helpful?