table of contents
other versions
- stretch 0.11.6-2
- testing 0.12.2-3
- stretch-backports 0.12.2-3~bpo9+1
- unstable 0.12.2-3
occtl(8) | System Management | occtl(8) |
NAME¶
occtl - OpenConnect VPN server controlSYNOPSIS¶
Openconnect VPN server control (occtl) is a tool to control the ocserv VPN server.DESCRIPTION¶
This a control tool that can be used to send commands to ocserv. When called without any arguments the tool can be used interactively, where each command is entered on a command prompt; alternatively the tool can be called with the command specified as parameter. In the latter case the tool's exit code will reflect the successful execution of the command.OPTIONS¶
- -s file, --socket-file=file
-
Specify the server's occtl socket file.This option is only needed if you have multiple servers.
- -j, --json
-
Output will be JSON formatted.This option can only be used with non-interactive output, e.g., 'occtl --json show users'.
- -n, --no-pager
-
No pager will be used over output data. - -h, --help
-
Display usage information and exit. - -!, --more-help
-
Pass the extended usage information through a pager. - -v [{v|c|n --version [{v|c|n}]}]
-
Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice.
IMPLEMENTATION NOTES¶
This tool uses unix domain sockets to connect to ocserv.EXAMPLES¶
The tool can be run interactively when run with no arguments. When arguments are given they are interpreted as commands. For example:$ occtl show users
Any command line arguments to be used as options must preceed the
command (if any), as shown below.
$ occtl --json show users
EXIT STATUS¶
One of the following exit values will be returned:- 0 (EXIT_SUCCESS)
-
Successful program execution. - 1 (EXIT_FAILURE)
-
The operation failed or the command syntax was not valid. - 70 (EX_SOFTWARE)
-
libopts had an internal operational error. Please report it to autogen-users@lists.sourceforge.net. Thank you.
SEE ALSO¶
ocserv(8)AUTHORS¶
Nikos MavrogiannopoulosCOPYRIGHT¶
Copyright (C) 2014-2016 Red Hat all rights reserved. This program is released under the terms of the GNU General Public License, version 2.BUGS¶
Please send bug reports to: openconnect-devel@lists.infradead.orgNOTES¶
This manual page was AutoGen-erated from the occtl option definitions.2017-03-24 | 0.11.6 |