Configure SNTP on HP Aruba Switches

Author: No Comments Share:

Having bad time data not only makes it difficult to troubleshoot a device it also does not help when logging to a centralized logging server. I often come across HP switches that do not have their time configured correctly, this could be because the admin was lazy or more likely does not know how to configure the time setting

  1. Log into the switch with SSH
  2. Type “configure” to enter configuration mode
  3. Set the timezone with “time timezone 120” -> This will set it for GMT +2 the value is in minutes + for West and – For East
  4. I live in South Africa and we do not use daylight savings so I use “time daylight-time-rule none” to disable DST but using TAB-Completion will give you a list of DST rules
  5. set time sync to SNTP using “timesync sntp”
  6. set polling interval to 30s by using “sntp 30”
  7. set sntp to unicast with “sntp unicast”
  8. set primary (priority 1) server with “sntp server priority 1 <IP_OF_SNTP_SERVER1>”
  9. set secondary (priority 2) server with “sntp server priority 2 <IP_OF_SNTP_SERVER2>”
  10. set tertiary (priority 3) server with “sntp server priority 3 <IP_OF_SNTP_SERVER3>”
  11. check SNTP stats with “show sntp statistics”
  12. check time with “clock”
  13. Save configuration with (because I’m paranoid and it never hurts I issue two commands) a. “save” and b. “write memory”
  14. exit the shell with “exit”

You should now have a switch that has the correct time and date information.

Previous Article

Laptop Clone from HDD to nVME SSD failed to boot

Next Article

Edgeswitch – Enable DHCP relay

You may also like