Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

set cli timestamp

Syntax

set cli timestamp (format timestamp-format | disable)

Release Information

Command introduced before Junos OS Release 7.4.

Description

Set a timestamp for CLI output.

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

Options

format timestamp-format—Set the data 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

Enclose the format in single quotation marks ( ). Do not use spaces. Use a hyphen ( - ) or similar character to separate placeholders.

disable—Remove the timestamp from the CLI.

Required Privilege Level

view

Published: 2012-11-27