Updating the Agent on a Teltonika
Initial Checks
Web Interface
If the agent version does not appear in the Monitoring section of the web interface, the agent is out-of-date.
To verify:
- Log in to the web interface: Open the Alemca web console.
- Select the device: Search for and click the relevant device.
- Open Monitoring: The Monitoring panel is on the right-hand side.
- Show all metrics: Click
Show more
to display every metric. - Check the
version_agent
field: Make sure theversion_agent
metric is visible.
If it is missing, the agent needs to be updated.
SSH Access
Because the agent is already installed, you can update it directly over SSH.
Steps:
-
Create a connection link: You need a connection link to reach the device via SSH.
Create an SSH session in the web interface: -
Open the web console: Log in and select the target device.
- Go to the Remote tab: Click
Remote
. -
Create an SSH session under
Direct Access
:- Protocol: choose
tcp
- Port: enter
22
(the SSH port) - Session duration: pick a duration—1 h is usually enough.
- Create Session: click
Create Session
.
- Protocol: choose
-
Copy the connection link: Click the copy icon to grab the device’s SSH link.
-
SSH to the device: In a terminal, run:
Check Free Space
Run:
- Ensure the device has at least 3 MB free before updating.
Look at the Available column on the line where Mounted on is simply/
.
Agent Update Procedure
- Identify the device architecture:
Execute on the device:
Or, on a Teltonika device:
Note the value of OPENWRT_ARCH
; this is the device’s architecture.
- Download the latest agent:
- Visit the official repository: http://repo.alemca.io/#/aca04-agent-alemca/latest/.
- Go into the
opkg
folder (Teltonika devices useopkg
). - Copy the
.ipk
download link that matches your architecture.
Example
For an arm_cortex-a7_neon-vfpv4
architecture, the file is:
- Install the agent on the device:
On the device, run (replace <file_link>
with the direct .ipk
URL):
Example
Your command should look like:
- Reboot the device:
Apply the changes:
After rebooting, verify that version_agent
now appears in the Monitoring section of the web interface.
Info
Displaying the version on the web platform can take a little time.
Please wait a few moments, or try clearing your browser cache to speed things up.
If the field is still missing after a few minutes
The configuration is likely incorrect.
In that case, edit the configuration file and repeat the above steps in order.