openbmc / phosphor-networkd

Apache License 2.0
17 stars 48 forks source link

BMC is not using NTP server/s sent by DHCP server #49

Closed swe12345 closed 1 year ago

swe12345 commented 2 years ago

BMC is not using NTP server/s sent by DHCP server

Enable UseNTPServer dhcp property by using following command curl -k -H "X-Auth-Token: $bmc_token" -X PATCH -D patch.txt -d '{"DHCPv4" : {"UseNTPServers":true}}' https://${bmc}/redfish/v1/Managers/bmc/EthernetInterfaces/eth1

Check whether property is set or no using following command: curl -k -H "X-Auth-Token: $bmc_token" -D get.txt -X GET https://${bmc}/redfish/v1/Managers/bmc/EthernetInterfaces/eth1

Send DHCP request and see if bmc uses ntp server sent by BMC: curl -k -H "X-Auth-Token: $bmc_token" -D get.txt -X GET https://${bmc}/redfish/v1/Managers/bmc/NetworkProtocol

sunharis commented 2 years ago

https://github.com/openbmc/phosphor-networkd/issues/30 is same.

sunharis commented 2 years ago

@asmithakarun has a fix for this at https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-networkd/+/50156

sunharis commented 1 year ago

@swe12345 Please check and close this. This is already fixed and the commits are merged upstream