I would use a hash or HoH (keys: IP, port, user/pwd and status) to record the number of connections, and output the result either when finished with one given IP, or completely at the end, depending on whether you want to count once or several times the same IP coming with some interval.
In reply to Re: Increment frequency of attempts based on IP and login details combination
by Laurent_R
in thread Increment frequency of attempts based on IP and login details combination
by firepro20
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |