msg (M_CLIENT, " where action is reply string.");
msg (M_CLIENT, "net : (Windows only) Show network info and routing table.");
msg (M_CLIENT, "password type p : Enter password p for a queried OpenVPN password.");
+ msg (M_CLIENT, "pid : Show process ID of the current OpenVPN process.");
#ifdef ENABLE_PKCS11
msg (M_CLIENT, "pkcs11-id-count : Get number of available PKCS#11 identities.");
msg (M_CLIENT, "pkcs11-id-get index : Get PKCS#11 identity at index.");
msg (M_CLIENT, "Management Version: %d", MANAGEMENT_VERSION);
msg (M_CLIENT, "END");
}
+ else if (streq (p[0], "pid"))
+ {
+ msg (M_CLIENT, "SUCCESS: pid=%d", openvpn_getpid ());
+ }
else if (streq (p[0], "signal"))
{
if (man_need (man, p, 1, 0))
of the system network adapter list and routing table based
on information returned by the Windows IP helper API.
+COMMAND -- pid
+--------------
+
+Shows the process ID of the current OpenVPN process.
+
COMMAND -- password and username
--------------------------------