pyATS - How to Disable Default Connection Commands

pyATS - How to Disable Default Connection Commands

pyATS Tip! By default, pyATS runs several exec/config commands and logs to stdout when connecting. You can disable these using the parameters in the example below:

device.connect(
    init_exec_commands=[],     # Disable default exec commands
    init_config_commands=[],   # Disable default config commands
    log_stdout=False           # Disable logging to stdout
)
# ⚠️ Leaving init_exec_commands empty may cause truncated output 
# if terminal length 0 or width settings are not configured on the device

Subscribe to our newsletter and stay updated.

Don't miss anything. Get all the latest posts delivered straight to your inbox.
Great! Check your inbox and click the link to confirm your subscription.
Error! Please enter a valid email address!