Posted on July 6, 2020 4:02 pm
 |  Asked by jonathan Steward
 |  66 views
Tags:
0
0
Print Friendly, PDF & Email

Hi all,

 

Is it possible to timestamp cli commands at the time they are executed. I want to track over time the changes I make at what time and have this logged on the CLI.

Example Juniper feature I’m trying to achieve on arista instead.

https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/set-cli-timestamp.html

0
Posted by Tamas Plugor
Answered on July 6, 2020 4:09 pm

If you mean setting the time on the prompt that can be done via the prompt command. Check this out: https://eos.arista.com/introduction-to-managing-eos-devices-annex-b-eos-tips-for-power-users/#B4_Prompt

and

https://www.arista.com/en/um-eos/eos-section-6-3-managing-display-attributes#ww1106910

 

ats323(config)#prompt %H...%D{%H:%M:%S}%v%P
ats323...16:06:00(config)#interface ethernet1
ats323...16:06:05(config-if-Et1)#description "WAN LINK"
ats323...16:06:14(config-if-Et1)#

HTH,
Tamas

0
Posted by Upasana Dangi
Answered on July 6, 2020 4:13 pm

Hi Jonathan,

One method to timestamp when you ran a command could by adding a timestamp to your CLI prompt:

Example:

```

prompt %H...%D{%H:%M:%S}%v%P

```

Result:

switch...16:09:34(config)#

 

Post your Answer

You must be logged in to post an answer.