ِ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:
Download Link : https://github.com/HamidHosseini74/Devnet