

ِDebug command in cisco devices is one of the best tools for troubleshooting, but sometimes after solving a problem or something else we log out and forgot to turn off the debug. sometimes this happen could made the router in trouble.
I prepared this script to check online users in line VTY and turn off debugging if no active user exists on the router. Substitute your IP address and user and password in the testbed file correctly.
you can run this script with a specific interval time, these link could be useful for Scheduling the script:
https://datatofish.com/python-script-windows-scheduler
https://phoenixnap.com/kb/set-up-cron-job-linux
Download Link : https://github.com/HamidHosseini74/Devnet