Understanding the Configuration Structure
First, it's helpful to understand how to access the complete configuration structure:
1. You can download the XML configuration from:
- Web UI → System → Profile → XML Configuration File → Generate → Download

2. To view current settings from the command line, use:
sudo uci print | grep ntp
Setting NTP Configuration via Command Line
Follow these steps to configure NTP settings:
sudo uci set ntp.client_enable true
sudo uci set ntp.primary_server "pool.ntp.org"
sudo uci set ntp.secondary_server "time.google.com"
sudo uci set ntp.timezone "Europe0Budapest"
sudo uci set ntp.update_interval 60
sudo uci set ntp.server_enable false
sudo uci save
sudo uci apply
Verifying NTP Configuration
After applying changes, verify the settings:
sudo uci get ntp.primary_server
sudo uci get ntp.timezone
sudo uci print | grep ntp
Important Notes
1. Timezone Format: ROS PRO uses a non-standard format for timezones, replacing the slash (/) with zero (0). For example:
- Europe0Budapest instead of Europe/Budapest
- Asia0Shanghai instead of Asia/Shanghai
2. Error Handling: If you receive a "values verify error" message, it means your input doesn't match the expected format or allowed values.
3. Valid Timezones: When setting the timezone, make sure to use a valid timezone in the correct format. If unsure, check the current value with sudo uci get ntp.timezone first.
Using these commands, you can automate NTP configuration from your Debian environment without using the web interface.
Related Articles
How to Control User-Defined LEDs on the EG5200 via Command Line
Overview This guide is for users of the Robustel EG5200 gateway who want to use the user1 and user2 LEDs as custom indicators. You may be in a scenario where you need a visual cue for a specific application status, script success, or network event. ...
How to Configure Custom Firewall Rules via CLI on RobustOS?
Overview This guide provides instructions for network administrators who need to implement specific network access policies that are not covered by the standard firewall settings on a Robustel gateway. If you need to create advanced, customized ...
How to Set Up Remote Syslog Logging
Overview Configuring remote syslog allows the gateway to send its system log messages to a centralized syslog server for unified storage and analysis. This facilitates centralized monitoring, troubleshooting, and long-term audit trail keeping. This ...
How to obtain and set DIDO in one's own application on the EG series devices?
Overview When using Robustel's EG series gateways (like the EG5120 or EG3110) running RobustOS Pro, you often need to interact with the physical world through Digital Inputs (DI) and Digital Outputs (DO). For instance, you might need to read the ...
How to access a RobustOS device via SSH?
Overview Secure Shell (SSH) provides a secure, encrypted connection to your Robustel gateway, allowing for advanced command-line access. This is essential for developers, system administrators, and support engineers who need to perform in-depth ...