This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################################################################################### | |
| # Network Testing Script | |
| # | |
| # This script performs comprehensive network testing using iperf3 with both TCP and UDP | |
| # protocols. It supports IMIX packet sizes and various bandwidth configurations. | |
| ################################################################################### | |
| # Configuration file and logging setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import smtplib | |
| #email.mime.multipart is specific to python3 | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| msg = MIMEMultipart() | |
| msg['From'] = 'sendfrom@mail.com' | |
| msg['To'] = 'sendto@mail.com' | |
| msg['Subject'] = 'Subject' |