[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-users] Number of host

  • Subject: Re: [Openvpn-users] Number of host
  • From: Thomas Pedoussaut <thomas@xxxxxxxxxxxxxx>
  • Date: Fri, 11 May 2007 11:43:10 +0100

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