show log chronological


Userlevel 1
Hi,

is it possible to set

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

thank you
--
antonio

5 replies

Userlevel 4
Antonio,

There does not appear to be a command to set the "show log" command to display logs in chronological order without specifying chronological in the show command.

-Andrew
Userlevel 3
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.
Userlevel 1
Mel78, CISSP, ECE wrote:

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.

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
Userlevel 3
Mel78, CISSP, ECE wrote:

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!
Userlevel 7
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-...

Reply