|
|
Manish Gajbhiye wrote: > Thanks for your reply . But i get the zero (0) result . For testing purpose > we are conneced two client to openvpn server . and execute the command. > If you have a look at this file /var/log/openvpn-status.log, there is enough to work out. expr $(grep -n ROUTING /var/log/openvpn-status.log |cut -d':' -f1) - 4 I plain english, look for which line is the beginning of the second part about the routing table, and substract 4 for various fixed entries at the beginning and that line itself. Another method (grep is your friend) grep -c '.*,.*,[0-9]*,[0-9]*,.*' /var/log/openvpn-status.log ______________________ OpenVPN mailing lists https://lists.sourceforge.net/lists/listinfo/openvpn-users |