How can I print a message after executing an .xsf script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-09-2016 05:42 PM
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?
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-10-2016 12:54 PM
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!
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-10-2016 12:47 PM
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.
You can do the same thing with python. and print ("Done!") at the end.
