Web and Unmanaged
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to configure NTP on HP 1910 / a5500 / 1920 etc

 
tomasdgs
Occasional Contributor

Unable to configure NTP on HP 1910 / a5500 / 1920 etc

HI! Im having troubles configuring NTP protocol on, for example, hp 1910 using comware 5.20.99. I follow this exact instructions

http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=mmr_kc-0122003 


[SWCORE]ntp-service authentication enable
[SWCORE]ntp-service authentication-keyid 24 authentication-mode md5 aNiceKey
[SWCORE]ntp-service reliable authentication-keyid 24

Then i configure from the web interface any other switch as the tutorial says, and nothing happens. Maybe i'm missing something. Please help!

 

Thanks in advance

16 REPLIES
VoIP-Buddy
HPE Pro

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

Generally you don't need to have ntp authentication unless your IT or security folks require it.  You also configure this through the web and not the CLI as that is restricted.

The only thing you need to set is the source interface where the NTP protocol should be able to get to the server and the IP addresses of 1 or 2 time servers.  I just did it on mine and it worked fine.

I would remove whatever you configured through the CLI before playing with the web configuration.

David

 

 

 

 

HP-Browniee
Respected Contributor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

Hi

To configure an ntp server, following commands are enough to let it work

ntp-service enable
ntp-service unicast-server <ip-address>

After this just wait till the switch syncs with the server.

Kind regards

VoIP-Buddy
HPE Pro

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

Hi Hp-Browniee!

That is true for the more featured switches.  For the low end switches, like the 1910 that don't have a CLI, that wouldn't work. 

In most cases, that is what I do on the higher end switches.

Regards,

David

HP-Browniee
Respected Contributor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

You can enable the CLI on the 1910 with a specific command.

Then you can use all the comware commands. :)

 

Kind regards

parnassus
Honored Contributor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

To be - literally - correct the 1910 permits to configure NTP Client settings (AFAIK it doesn't act as NTP Server, it operates as a NTP Client): it can be synchronized to an external NTP Server.

See (Web GUI) Device -> System Time -> Network Time Protocol. Should be a very simple configuration.

Just curious: which Firmware version is running your HPE OfficeConnect 1910 now?

VoIP-Buddy
HPE Pro

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

HP-Browniee,

While that may be true, that was not how the product was sold.  Enabling the CLI is only intended for diagnostic purposes only.  The supported configuration method is the Web GUI.

David

16again
Respected Contributor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

On my 1920, NTP is in the GUI, and these settings work for me:

1920NTP.PNG

Dunky
Regular Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

NTP works on my 1920s ok.

The only two commands I have in them are:

 

 ntp-service source-interface Vlan-interface100

 ntp-service unicast-server <ip_address>

 

I get my NTP from the firewall which itself is synced to pool.ntp.org

 

HTH

Steve

 

n3mmr
Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

I tried the following;

ntp-service source-interface Vlan-interface 1

ntp-service unicast-server <ip_address>

 

in a 1910 switch with 5.20.R1518P01 software, however "display clock" and "display ntp-service status" show that ntp is not active.

 

What am I missing???

Customer Baffling Expert
Dunky
Regular Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

What do you get from a "dis ntp status", should be....

[SWITCH-00]dis ntp status
Clock status: synchronized
Clock stratum: 4
Reference clock ID: 192.168.100.1
Nominal frequency: 100.0000 Hz
Actual frequency: 100.0000 Hz
Clock precision: 2^18
Clock offset: 29.8469 ms
Root delay: 7.23 ms
Root dispersion: 53.85 ms
Peer dispersion: 0.00 ms
Reference time: 11:01:46.692 UTC Apr 11 2017(DC97361A.B14A3C64)
[SWITCH-00]

If you are synchronizing to an external server, then ensure that you are allowing this out through the firewall.

n3mmr
Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

No I get "unsynchronized."

There seems to be something missing, something to tell the ntp client to start.

Following another answer here, I tried "ntp-service enable" but that was rejected by the cli.

Customer Baffling Expert
n3mmr
Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

So, consider my question to be: What do you tell system-view in a _cmdline-mode cli over telnet, in order to make the ntp client to start?

 

Customer Baffling Expert
n3mmr
Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

in my recent-FW V1910, loggin in over telnet, enabling _cmdline-mode and entering system-view, the command "ntp-service enable" is rejected.

 

Customer Baffling Expert
Dunky
Regular Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

What reference clock are you trying to get NTP from?

Please share the output of "dis ntp trace" as below...

[SWITCH-00]dis ntp trace
server 127.0.0.1,stratum 4, offset 0.037021, synch distance 0.04550
server 192.168.100.1,stratum 3, offset 0.041750, synch distance 0.00319
server 94.125.132.7,stratum 2, offset 0.029039, synch distance 0.03711
server 195.66.241.2,stratum 1, offset 0.029389, synch distance 0.00037
refid PPS
[SWITCH-00]

 

Also please share the output from a "dis ntp sess verbose" ...

[SWITCH-00]dis ntp sess verbose
clock source: 192.168.100.1
clock stratum: 3
clock status: configured, master, sane, valid
reference clock ID: 94.125.132.7
local mode: client, local poll: 10
peer mode: server, peer poll: 10
offset: 37.0210 ms,delay: 9.27 ms, disper: 14.84 ms
root delay: 6.39 ms, root disper: 0.00 ms
reach: 255, sync dist: 0.038, sync state: 4
precision: 2^29, version: 3, peer interface: wildcard
reftime: 11:56:10.057 UTC Apr 11 2017(DC9742DA.0EA24FFF)
orgtime: 12:27:11.242 UTC Apr 11 2017(DC974A1F.3E0AC7FF)
rcvtime: 12:27:11.209 UTC Apr 11 2017(DC974A1F.35C0767D)
xmttime: 12:27:11.200 UTC Apr 11 2017(DC974A1F.3360AE96)
filter delay : 0.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00
filter offset: 0.04 0.03 0.04 0.03 0.03 0.03 0.04 0.04
filter disper: 0.00 0.11 0.09 0.08 0.06 0.05 0.03 0.02

Total associations : 1
[SWITCH-00]

n3mmr
Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

I found it. It was entirely unrelated to the ntp-service command.

I had somehow lost the wildcard 0.0.0.0 static route, but once I put that back in, ntp started nicely.

Using the two commands you showed.

Customer Baffling Expert
Dunky
Regular Advisor

Re: Unable to configure NTP on HP 1910 / a5500 / 1920 etc

Thats great news, glad you got it sorted.

I couldnt figure out why it wasnt working unless for some reason you couldnt see the ip address of the ntp reference clock :)