jamiecaesar / securecrt-tools

SecureCRT scripts, written in Python, for doing various tasks when connected to Cisco equipment.
Apache License 2.0
246 stars 78 forks source link

multi-command capture #48

Closed cmacasae closed 4 years ago

cmacasae commented 4 years ago

It would be very useful to also have a script that reads a user-defined text file for a list of commands that it can execute in a current connected device. Both in exec, global, interface modes and others.

jamiecaesar commented 4 years ago

I believe the document_device script already does what you are requesting. You can provide a custom list of commands, or just modify the per-OS lists in the settings.ini file and it will capture all of those commands for any device you run it on. There is also a multi-device version if you wanted to capture the same list of commands over a bunch of devices at once.

cmacasae commented 4 years ago

I will check that out. Thank you very much