HP Procurve E Series How To Define SNTP – Time Server Syncronization
Out of the box the procurve e-series switch is not set to synchronize its internal clock with a time server. We can enable this with the commands below and even set the switches time zone. This can be useful if you use a management app to check the logs of your switches, this means the logs will be in sync with your logging or snmp server.
The first thing we need to do is tell the switch what time protocol we are going to use. We will use SNTP.My switch is called TechiesSwitch.First going into configuration mode.
TechiesSwitch# Conf t
Then we issue the command to use the SNTP protocol
TechiesSwitch (config)# timesync sntp
We now tell the switch that it is going to be using a single server as its time server.
TechiesSwitch (config)# sntp unicast
If you wanted to use multiple time servers then you would issue the command below
TechiesSwitch (config)# sntp broadcast
We now need to tell the switch which server to use. Even if you only use one server you MUST STILL specify a priority. For example.
TechiesSwitch (config)# sntp server priority 1 172.16.250.1
If you use more than one server simply increment the priority.
To set the timezone of your procurve switch we use the following command. The base zone is GMT, so if you wanted madrid you would +120 for 2 hours or -300 for new york
TechiesSwitch (config)# time timezone -300
You can now configure sntp on your procurve switch
Tags: sntp