I'm trying to build a mass configuration push that I will use to shut down 40+ Juniper switches. It's really straight forward and I've tried using a combination of macros per the Mass Config Push documentation. For whatever reason, it simply doesn't parse a "yes" response followed by "enter" to actually run the command, it returns interaction error. Here is the output from the debug log file:
@jun-switch> request system power-off
TIMESTAMP: 2024-04-16 09:53:29.221
warning: This command will halt all the members.
If planning to halt only one member use the member option
Power Off the system ? [yes,no] (no)
Does anyone know the proper syntax to send the JunOS a "yes" response followed by "enter" ?
[Fixed in 2.6.0] Mass Config Push for JunOS
Hi, just an update that 2.6.0 was just released, and we added native support for the "Power Off the system ? [yes,no] (no)" prompt. So you can just put in the "yes" reply into Config Push, and Unimus will detect the prompt and send the reply as expected. More info: viewtopic.php?f=3&t=1950