Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

set cli timestamp

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
set cli timestamp (format timestamp-format  | disable)

Description

Set a timestamp for CLI output.

Options

format timestamp-format

Set the date and time format for the timestamp. The timestamp format you specify can include the following placeholders in any order:

  • %m—Two-digit month

  • %d—Two-digit date

  • %T—Six-digit hour, minute, and seconds

disable

Remove the timestamp from the CLI.

Note:

A timestamp is displayed by default when no command output is generated.

Required Privilege Level

view

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

set cli timestamp

content_copy zoom_out_map
user@host> set cli timestamp format '%m-%d-%T'
'04-21-17:39:13'
CLI timestamp set to: '%m-%d-%T'

Release Information

Command introduced before Junos OS Release 7.4.

footer-navigation