Hello,
I'm looking for a possibility to run a command (copy an ios-image) on several vty lines at the same time via a EEM-policy (tcl-script).
I'm able to open multiple vty lines like:
if [catch {cli_open} result] {error $result $errorInfo} else {array set cli1 $result}
if [catch {cli_open} result] {error $result $errorInfo} else {array set cli2 $result}
and so on.
But when I run the commands like:
if [catch {cli_exec $cli1(fd) "copy $ios_file flash1:" } result] {error $result $errorInfo}
if [catch {cli_exec $cli2(fd) "copy $ios_file flash2:" } result] {error $result $errorInfo}
they are executed consecutively.
Is it possible to "fork" such things? So that they run in parallel?
Kind regards,
Andreas