Header Only - DO NOT REMOVE - Extreme Networks
Solved

EXOS Python : write messages to log

  • 2 July 2019
  • 2 replies
  • 410 views

I have a script that automates a few procedures over time. In order to trace the execution of this command through central logging I'd like to write a custom log messages to the exos log.

I've looked around and can't quite see any examples of what specific functions in python would do this.
icon

Best answer by Ludovico Stevens 2 July 2019, 12:55

XOS has a CLI command to add messages to the log : create log message ""
I just invoke that CLI command from my Python scripts.
View original

2 replies

Userlevel 4
XOS has a CLI command to add messages to the log : create log message ""
I just invoke that CLI command from my Python scripts.
Works wonderfully!

Many thanks!

Reply