cancel
Showing results for 
Search instead for 
Did you mean: 

show log chronological

show log chronological

Antonio_Prado
New Contributor II
Hi,

is it possible to set

show log
to always display entries in chronological order?
I mean without appending each time 'chronological' to the command.

thank you
--
antonio
5 REPLIES 5

BrandonC
Extreme Employee
For anyone coming across this thread in the future, I've created a GTAC Knowledge article discussing this as well:

https://gtacknowledge.extremenetworks.com/articles/Q_A/Is-there-a-way-to-show-logs-in-chronological-...

Mel78__CISSP__E
New Contributor III
Use Scripting EXOS CLI Modules
http://www.extremenetworks.com/wp-content/uploads/2015/02/Python_Getting_Started_Guide.pdf

You can get anything you want.

I am not sure what would be simpler than "sh lo ch" versus "sh lo". In EXOS, there is no customization of default behavior of cli output, other than scripting. That having been said, there is a simpler method if you are automating your output.

You can write whatever commands you choose in any way you choose in an .xsf file and then just run it. This function only outputs to console by default.

The python method is really quite simple as well. Simply do:

vi shloch.py
i
print exsh.clicmd('show log chronological', True)

:wq
run script shloch.py

and enjoy!

Thank you for your reply.

Scripting should not be a solution for basic tasks.
Everywhere logs are exposed in chronological order with no need of switching words, simply because it's the logical way to go.
--
antonio
GTM-P2G8KFN