Scripting

 View Only

 Add wait time to xsf file

Not Very Goodman's profile image
Not Very Goodman posted 05-18-2022 15:36
Hello Everyone,

I'm trying to automate a simple task of turning some port up/down with a script. Where I'm getting stuck is when I try add a pause. This is what I have:

show port 12 configuration no-refresh
disable port 12
#timer 1
enable port 12
show port 12 configuration no-refresh

When I load the script it errors out at line 3, my pause. The port will disable so I assume (yes, i know better, lol) that it will also enable once I figure out the pause. One other thing, for line 1 to show in the CLI do I need to add something special? 

Thanks in advance for helping this scripting noob.