-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpara_report.sh
41 lines (35 loc) · 999 Bytes
/
para_report.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
echo ""
cat $1|grep "Success Req:"
cat $1|grep "Total Requests:"
echo ""
echo "--------------------"
echo ""
#Total time:
cat $1|grep "Total time:"
echo "--------------------"
echo ""
echo "socket timer related"
echo "--------------------"
no_sess=$(grep -c "No existing session" $1)
echo "No existing session: $no_sess"
time_out=$(grep -c "timed out" $1)
echo "Timeouts: $time_out"
conn_rst=$(grep -c "Connection reset by peer" $1)
echo "Conn Resets: $conn_rst"
echo ""
socket_timer_sum=$(($no_sess+$time_out+$conn_rst))
echo "Sum of all above: $socket_timer_sum"
echo "--------------------"
echo ""
echo "banner timer related"
echo "--------------------"
banner_err=$(grep -c "Error reading SSH protocol banner" $1)
echo "Banner Error: $banner_err"
retries_num=$(grep -c "Retry #" $1)
echo "Retries: $retries_num"
echo "--------------------"
echo ""
echo "Informational"
echo "--------------------"
auth_exception_num=$(grep -c "AUTH Exception" $1)
echo "AUTH Exception: $auth_exception_num"