5 years ago
FirePower Config Source
The current Cisco IOS config source does not work for firepower. I tried my own hand at writing a config source for the FirePower series of Cisco Firewalls but ran into a snag and could never get ...
9 minutes ago, Matt M. said:sleep(20000);
You could avoid this too by putting an ssh_connection.expect("> ") instead. Then your output could be output=ssh_connection.before(). It should make is so that the script returns as soon as possible instead of at least 20 seconds (where 17-18s of that could be waiting for more output that won't come because it's already back at the prompt.
Also, fun tip: groovy doesn't require the semicolons at the end of lines. You don't know the excitement I felt when I discovered that.