I have a problem to use NCM run command (such as yes, no, ...) to answer router's question? I would like to sent command (green character in picture) to router.
thank you
Hi John Spanitz,
Simply put the "answers" as commands in the correct order. You may also consider adding a delay if NCM sends the commands too fast.
Regards,
Jiri
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}
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.