Running the SkyATP Advanced Anti-malware diagnostic script returns the following error:
Time check : [Failure] Error: Time difference is too large between server and this device. Please adjust your local time
Running the Diagnostic script fails and exits due to time check failure:
root@sky-srx> request services advanced-anti-malware diagnostics srxapi.us-west-2.sky.junipersecurity.net DNS check : [OK] SKYATP reachability check : [OK] Time check : [Failure] Error: Time difference is too large between server and this device. Please adjust your local time root@sky-srx>
The diagnostic is checking the local system time stamp against the cloud servers and if the time difference between the two is greater than 60 seconds, it will generate an error and exit. To resolve this issue you must correct the time on the local SRX.
Check the system local time, validating the Current time against the real time:
Correct the Time on the Local system.
In this example, the system date and time are set to January 01, 2019 and 03:58:00 AM:
root@sky-srx> set date 201901010358.00
Tue Jan 1 03:58:00 UTC 2019
root@sky-srx>
Re-Run the diagnostic script to verify the time is corrected.
root@sky-srx> request services advanced-anti-malware diagnostics srxapi.us-west-2.sky.junipersecurity.net DNS check : [OK] SKYATP reachability check : [OK] Time check : [OK] Configuration activation check : [OK] SKYATP ICMP service check : [OK] Interface configuration check : [OK] Outgoing interface MTU is default value IP Path MTU is 1472 SSL configuration consistent check : [OK]