21.01.2023, 10:03
Hello
How to check the NTP port open or not in the LM?
How to check the NTP port open or not in the LM?
Best Regards,
|
Check NTP port opened
|
|
23.01.2023, 08:06
Use this test script:
Code: res = io.readproc('ntpd -dnq -p 0.europe.pool.ntp.org 2>&1')
log(res)
24.01.2023, 14:08
Thanks admin
if Port opened I should get something like this: Code: * string: ntpd: '0.europe.pool.ntp.org' is 194.58.200.20
ntpd: sending query to 194.58.200.20
ntpd: reply from 194.58.200.20: offset:-0.009966 delay:0.108452 status:0x24 strat:1 refid:0x00535050 rootdelay:0.000000 reach:0x01
ntpd: sending query to 194.58.200.20
ntpd: reply from 194.58.200.20: offset:-0.009715 delay:0.107909 status:0x24 strat:1 refid:0x00535050 rootdelay:0.000000 reach:0x03
Best Regards,
24.01.2023, 14:09
Yes, this is a correct response when NTP server can be reached.
|
|
« Next Oldest | Next Newest »
|