Usage:
spiros@lapdog:~/$ speedtouch.sh [1] [2]
1: times to run query
2: delay between queries
Example:
spiros@lapdog:~/$ speedtouch.sh 50 5|grep Margin
The above will result in printing 50 times (every 5 seconds each repetition) the Signal/Noise Ratio
e.g.
Margin (dB) : 18.0 34.0
Margin (dB) : 18.0 34.0
Margin (dB) : 18.0 32.5
Margin (dB) : 18.0 32.5
....
Example 2:
spiros@lapdog:~/$ speedtouch.sh 50 5|grep Margin>>Margin.txt
The above example stores Margin to text file Margin.txt for further analysis.
Bash Script:
# = = = = = = = = = = = = = = = = =
# GPL v2 - http://www.gnu.org/licenses/gpl-2.0.html
(sleep .25;
echo Administrator; echo -e "\r"; sleep .25;
echo yourpassword;echo -e "\r"; sleep .25;
for i in `seq 1 $1`;
do
echo ":adsl info expand enabled" ;
echo -e "\r";
sleep $2;
done
echo "exit" ; echo -e "\r") | telnet 192.168.1.254
No comments:
Post a Comment