Skip to main content
jr14
Visitor III
May 14, 2024 12:29 AM UTC
Solved

SYNC fortiswitch

There is a  CLI command to force the FSW NTP SYNC again to my FGT NTP

I have my Fswitch managed Through my FGT.

 

FortiSwitch 

AEK
AEKAnswer
SuperUser
May 14, 2024 3:16 PM UTC

I don't have the exact answer for that but I have a workaround for you.

FSW $ config system ntp 
FSW (ntp) $ set syncinterval 1

This will ensure that your FSW sends a NTP sync request every minute, so you are certain that it will sync within 1m.

After completion you may restore the syncinterval value to the default value of 10.

AEK

6 replies

ozkanaltas
Valued Contributor III
May 14, 2024 5:43 AM UTC

Hello @jr14 ,

 

Can you describe the problem with a few more words? 

jr14
jr14Author
Visitor III
May 14, 2024 1:52 PM UTC

The switches are not synchronizing with the FGT ntp, i did some change on the fortilink dhcp server, so i would to know if there are a command to execute in the cli in my switch to Force it again to sync up with the ntp, i also know that i can reboot the switch but in this case it is not possible to do that. 

AEK
SuperUser
SuperUser
May 14, 2024 7:17 AM UTC

The managed FSW sync its time directly from the FG without additional config.

You can check with this command:

diag sys ntp status

 

AEK
jr14
jr14Author
Visitor III
May 14, 2024 1:49 PM UTC

Yes, i know. But i did some change in regard to the dhcp server on the fortilink interface because the switches are not synchronizing with the FGT ntp, so i would to know if there are a command to execute in the cli in my switch to Force it again to sync up. 

ebilcari
Staff
Staff
May 14, 2024 3:11 PM UTC

If you can't restart the switch, you can try to kill the NTP process and it will start again (search for the PID of /bin/ntpd):

# fnsysctl ps
# diag sys kill 9 <pid>

Emirjon
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT