I’m using the basic SNTP client from the system package. I’m getting good time, but I can’t use other SNTP client information for scripting.
I can’t seem to get the CLI to return anything to a GET request. As I understand it, I should be able to at least GET the fields from the print command. The commands after the print listing below were tab completed, so it looks like it should work, but - nothing…
[admin@router] /system ntp client>> get last-update-before
[admin@router] /system ntp client>>
gets nothing back. The field names even tab-complete for the GET, but the response is blank. Likewise with FIND. I see in the scripting manual page that this is how it works in scripts. The Console (command) pages don’t even hint at this.
Any suggestions as to where to read more about this?
It’s doing exactly what it should. get provides a value, and you have to do something with that value, either store it to a variable or visualize it using put. Likewise, with find, the value is a list of references to items matching the find condition and you have to do something with it; on top of storing and visualization as above, you may use the list in some modification command (set, unset, remove, …)