cancel
Showing results for 
Search instead for 
Did you mean: 

How can I print a message after executing an .xsf script?

How can I print a message after executing an .xsf script?

Ali_Askari
New Contributor II
I am given some .xsf scripts that I just load using the
load script scriptName.xsf
The scripts do not print out anything. If possible I'd like to see a message printed after the execution like

Done! Is it possible? It should be very simple but I cannot find any commands which print out messages in the manual. I tried

echo

but it is not supported. Is there a guide to .xsf scripting?
6 REPLIES 6

Drew_C
Valued Contributor III
Ali, There's a guide out there somewhere. I'll look for it - maybe someone can share it before I get to it.
Meanwhile, there's a lot of example scripts on our GitHub page that you might be able to borrow code from.
https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/CLI_Scripting

Hope this helps!

StephenW
Extreme Employee
I don't think that feature was added. But when the script is done it gives your prompt back.

You can do the same thing with python. and print ("Done!") at the end.
GTM-P2G8KFN