Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20607

Re: How to use NCM run command (such as yes, no, ...) to answer router's question?

$
0
0

This stuff is super hard to find and some of it is really buried in the docs.  That being said, even knowing the commands, it's hard to get it working.

 

I've added the delay command to my script so it now looks like:

 

{

  CLI

  {

     request system storage cleanup

     ${Delay:5}

     y

  }

}

 

 

And it results in this error:

Validation Failed: An error occurred during script parsing. Position: Line 24, Character 3 Error message: no viable alternative at input '}' Please check script syntax.

 

Line 24 is the y

 

 

Per the Admin Guide (page 91):

     You can specify delay inside script in seconds– time NCM wait before

     sending next command:${Delay:20}  - wait 20 seconds before sending

     next command. So a script that includes the delay looks like this:

     {Command 1}

     ${Delay:20}

     {Command 2}


Viewing all articles
Browse latest Browse all 20607

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>