-
Notifications
You must be signed in to change notification settings - Fork 3
Multiple Tab Scripting
Matthew Spangler edited this page Sep 17, 2021
·
1 revision
Here's an example of how to send the same command to multiple Cisco devices on multiple tabs:
scrt = CrtSession(crt)
for session in scrt.sessions:
session.focus_tab()
# Attempts to discover the OS and selects the corresponding "runner" class.
session.start_cisco_session()
# Raise exception if script is running on an incompatible OS
session.validate_os(["IOS", "XE", "NXOS", "ASA", "WAAS"])
runner = session.runner
command_out = runner.get_command_output("sh ver | i ima")