Error in NTP Sync Status Display
78087
Created On 09/26/18 13:50 PM - Last Modified 11/14/23 06:13 AM
Symptom
When trying to display NTP information using the "show ntp" command, an error message is seen and NTP data is not displayed.
Example:
> show ntp
Server error : An error occurred. See dagger.log for information.
Output in dagger.log using "less mp-log dagger.log" provides information similar to that displayed below.
Nov 29 11:36:00 OPCMD: handler "ntp_state"
Traceback (most recent call last):
File "/usr/share/dagger/ntp_state.py", line 11, in __str__
state = self.sdb[sysdns.SYSD_TIME_NTP_STATE_FMT]
SystemError: TIMEOUTEnvironment
- Palo Alto Firewall
- Any PAN-OS.
- NTP configured.
Resolution
The logs indicate the name resolution for the NTP server is not correct. Ensure the DNS server is configured correctly, reachable, and able to resolve configured NTP servers.
Once this is done and the command is successful, it will show the NTP server status similar to the below output.
> show ntp
NTP state:
NTP synched to ntp.nc.u-tokyo.ac.jp
NTP server ntp.nict.jp connected: True
NTP server ntp.nc.u-tokyo.ac.jp connected: True