Eric, You can also do this. Create a file via CLI with the extension .xsf and you can run that as script. vi test.xsf disable port 1 enable port 1 "to exit press "ESC" and then type !wq "enter" Once done you can run the script "run script test" I hope this can also help!