1OCCTL(8)                                                              OCCTL(8)
2
3
4

NAME

6       occtl - OpenConnect VPN server control tool
7

SYNOPSIS

9       occtl [´COMMAND´]
10

DESCRIPTION

12       This  a  control tool that can be used to send commands to ocserv. When
13       called without any arguments the tool can be used interactively,  where
14       each command is entered on a command prompt; alternatively the tool can
15       be called with the command specified as parameter. In the  latter  case
16       the  tool´s exit code will reflect the successful execution of the com‐
17       mand.
18

OPTIONS

20       -s, --socket-file=FILE
21              Specify the server´s occtl socket  file.  This  option  is  only
22              needed if you have multiple servers.
23
24       -j, --json
25              Output will be JSON formatted. This option can only be used with
26              non-interactive output, e.g., ´occtl --json show users´.
27
28       -n, --no-pager
29              No pager will be used over output data.
30
31       --debug
32              Provide more verbose information in some commands.
33
34       -h, --help
35              Display usage information and exit.
36
37       -v, --version
38              Output version of program and exit.
39

IMPLEMENTATION NOTES

41       This tool uses unix domain sockets to connect to ocserv.
42

EXAMPLES

44       The tool can be run interactively when  run  with  no  arguments.  When
45       arguments are given they are interpreted as commands. For example:
46
47
48
49           $ occtl show users
50
51
52
53       Any  command line arguments to be used as options must precede the com‐
54       mand (if any), as shown below.
55
56
57
58           $ occtl --json show users
59
60
61

Exit status

63       0      Successful program execution.
64
65       1      The operation failed or the command syntax was not valid.
66

SEE ALSO

68       ocserv(8), ocpasswd(8)
69
71       Copyright (C) 2013-2017 Nikos Mavrogiannopoulos and others, all  rights
72       reserved.  This  program is released under the terms of the GNU General
73       Public License, version 2.
74

AUTHORS

76       Written by Nikos Mavrogiannopoulos. Many people have contributed to it.
77
78
79
80                                   May 2019                           OCCTL(8)
Impressum