Seems the following command does not work in my Asus router. Does anybody know how to display the timestamp in nano seconds?
maven@PSU-AX56U-1:/jffs/scripts# date +"%T.%N"
14:45:20.%N
maven@PSU-AX56U-1:/jffs/scripts# date +"%T.%3N"
14:50:21.%3N
I believe the router has this capability as I saw Ookla speedtest-cli error log in this format on this router:
[2023-06-17 03:03:18.835] [error] Configuration - Timeout was reached (TimeoutException)
[2023-06-17 03:03:18.845] [error] Configuration - Cannot retrieve configuration document (0)
[2023-06-17 03:03:18.849] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[2023-06-17 03:03:18.849] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
maven@PSU-AX56U-1:/jffs/scripts# date +"%T.%N"
14:45:20.%N
maven@PSU-AX56U-1:/jffs/scripts# date +"%T.%3N"
14:50:21.%3N
I believe the router has this capability as I saw Ookla speedtest-cli error log in this format on this router:
[2023-06-17 03:03:18.835] [error] Configuration - Timeout was reached (TimeoutException)
[2023-06-17 03:03:18.845] [error] Configuration - Cannot retrieve configuration document (0)
[2023-06-17 03:03:18.849] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[2023-06-17 03:03:18.849] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)