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

[Openvpn-users] Management Interface problem



I'm trying to use the Management Interface on a mini Linux to get some information out of OpenVPN to display some stats on a web interface. So far I'm using these commands to get the data out of OpenVPN (plink is a telnet/ssh client from putty).

( echo "status"; echo "quit"; ) | netcat -v -v -w 3 localhost 10205

or

(echo "status"; echo "quit"; ) | plink -raw -P 10205 localhost

Both commands work more or less but sometimes OpenVPN doesn't return the status information. Below is what I get with netcat -v -v. plink works the same. I wonder why sometimes the status information is returned and sometimes not.

fli4l 2.1.9cvs20050317 # ( echo "status"; echo "quit"; ) | netcat -v -v -w 3 localhost 10205
localhost [127.0.0.1] 10205 (?) open
INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info
sent 12, rcvd 75


fli4l 2.1.9cvs20050317 # ( echo "status"; echo "quit"; ) | netcat -v -v -w 3 localhost 10205
localhost [127.0.0.1] 10205 (?) open
INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info
OpenVPN STATISTICS
Updated,Sun Mar 20 12:22:53 2005
TUN/TAP read bytes,108983325
TUN/TAP write bytes,4273962
TCP/UDP read bytes,7563608
TCP/UDP write bytes,113352220
Auth read bytes,4280523
pre-compress bytes,3647590
post-compress bytes,3673628
pre-decompress bytes,7785
post-decompress bytes,11300
END
sent 12, rcvd 390

--
Claas Hilbrecht
http://www.jucs-kramkiste.de


____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users