Skip to main content
jr14
Visitor III
May 14, 2024
Solved

SYNC fortiswitch

  • May 14, 2024
  • 6 replies
  • 4163 views

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 

Best answer by AEK

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.

6 replies

ozkanaltas
Valued Contributor III
May 14, 2024

Hello @jr14 ,

 

Can you describe the problem with a few more words? 

jr14
jr14Author
Visitor III
May 14, 2024

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

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

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

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