mirror of https://github.com/OISF/suricata
doc: Add manpages for suricatasc and suricatactl
Add the missing manpages and the corresponding Sphinx configuration for the command line tools `suricatasc` and `suricatactl`. Closes redmine ticket #884.pull/3818/head
parent
a6a0b0aa4a
commit
4705314fd2
@ -0,0 +1,67 @@
|
||||
Suricata Control Filestore
|
||||
==========================
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
|
||||
**suricatactl filestore** [-h] <command> [<args>]
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
This command lets you perform certain operations on Suricata filestore.
|
||||
|
||||
|
||||
OPTIONS
|
||||
--------
|
||||
|
||||
.. Basic options
|
||||
|
||||
.. option:: -h
|
||||
|
||||
Get help about the available commands.
|
||||
|
||||
|
||||
COMMANDS
|
||||
---------
|
||||
|
||||
**prune [-h|--help] [-n|--dry-run] [-v|verbose] [-q|--quiet] -d <DIRECTORY>
|
||||
--age <AGE>**
|
||||
|
||||
Prune files older than a given age.
|
||||
|
||||
-d <DIRECTORY> | --directory <DIRECTORY> is a required argument which tells
|
||||
that user must provide the suricata filestore directory on which all the
|
||||
specified operations are to be performed.
|
||||
|
||||
--age <AGE> is a required argument asking the age of the files. Files older
|
||||
than the age mentioned with this option shall be pruned.
|
||||
|
||||
-h | --help is an optional argument with which you can ask for help about the
|
||||
command usage.
|
||||
|
||||
-n | --dry-run is an optional argument which makes the utility print only what
|
||||
would happen
|
||||
|
||||
-v | --verbose is an optional argument to increase the verbosity of command.
|
||||
|
||||
-q | --quiet is an optional argument that helps log errors and warnings only
|
||||
and keep silent about everything else.
|
||||
|
||||
|
||||
BUGS
|
||||
----
|
||||
|
||||
Please visit Suricata's support page for information about submitting
|
||||
bugs or feature requests.
|
||||
|
||||
NOTES
|
||||
-----
|
||||
|
||||
* Suricata Home Page
|
||||
|
||||
https://suricata-ids.org/
|
||||
|
||||
* Suricata Support Page
|
||||
|
||||
https://suricata-ids.org/support/
|
@ -0,0 +1,43 @@
|
||||
Suricata Control
|
||||
================
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
|
||||
**suricatactl** [-h] <command> [<args>]
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
This tool helps control Suricata's features.
|
||||
|
||||
OPTIONS
|
||||
--------
|
||||
|
||||
.. Basic options
|
||||
|
||||
.. option:: -h
|
||||
|
||||
Get help about the available commands.
|
||||
|
||||
COMMANDS
|
||||
---------
|
||||
|
||||
:manpage:`suricatactl-filestore(1)`
|
||||
|
||||
BUGS
|
||||
----
|
||||
|
||||
Please visit Suricata's support page for information about submitting
|
||||
bugs or feature requests.
|
||||
|
||||
NOTES
|
||||
-----
|
||||
|
||||
* Suricata Home Page
|
||||
|
||||
https://suricata-ids.org/
|
||||
|
||||
* Suricata Support Page
|
||||
|
||||
https://suricata-ids.org/support/
|
@ -0,0 +1,40 @@
|
||||
Suricata Socket Control
|
||||
=======================
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
|
||||
**suricatasc**
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
Suricata socket control tool
|
||||
|
||||
COMMANDS
|
||||
---------
|
||||
|
||||
.. include:: ../partials/commands-sc.rst
|
||||
|
||||
PCAP MODE COMMANDS
|
||||
-------------------
|
||||
|
||||
.. include:: ../partials/commands-pcap-sc.rst
|
||||
|
||||
|
||||
BUGS
|
||||
----
|
||||
|
||||
Please visit Suricata's support page for information about submitting
|
||||
bugs or feature requests.
|
||||
|
||||
NOTES
|
||||
-----
|
||||
|
||||
* Suricata Home Page
|
||||
|
||||
https://suricata-ids.org/
|
||||
|
||||
* Suricata Support Page
|
||||
|
||||
https://suricata-ids.org/support/
|
@ -0,0 +1,32 @@
|
||||
.. option:: pcap-file <file> <dir> [tenant] [continuous] [delete-when-done]
|
||||
|
||||
Add pcap files to Suricata for sequential processing. The generated
|
||||
log/alert files will be put into the directory specified as second argument.
|
||||
Make sure to provide absolute path to the files and directory. It is
|
||||
acceptable to add multiple files without waiting the result.
|
||||
|
||||
.. option:: pcap-file-continuous <file> <dir> [tenant] [delete-when-done]
|
||||
|
||||
Add pcap files to Suricata for sequential processing. Directory will be
|
||||
monitored for new files being added until there is a use of
|
||||
**pcap-interrupt** or directory is moved or deleted.
|
||||
|
||||
.. option:: pcap-file-number
|
||||
|
||||
Number of pcap files waiting to get processed.
|
||||
|
||||
.. option:: pcap-file-list
|
||||
|
||||
List of queued pcap files.
|
||||
|
||||
.. option:: pcap-last-processed
|
||||
|
||||
Processed time of last file in milliseconds since epoch.
|
||||
|
||||
.. option:: pcap-interrupt
|
||||
|
||||
Terminate the current state by interrupting directory processing.
|
||||
|
||||
.. option:: pcap-current
|
||||
|
||||
Currently processed file.
|
@ -0,0 +1,113 @@
|
||||
.. Start with the most common basic commands.
|
||||
|
||||
.. option:: shutdown
|
||||
|
||||
Shut Suricata instance down.
|
||||
|
||||
.. option:: command-list
|
||||
|
||||
List available commands.
|
||||
|
||||
.. option:: help
|
||||
|
||||
Get help about the available commands.
|
||||
|
||||
.. option:: version
|
||||
|
||||
Print the version of Suricata instance.
|
||||
|
||||
.. option:: uptime
|
||||
|
||||
Display the uptime of Suricata.
|
||||
|
||||
.. option:: running-mode
|
||||
|
||||
Display running mode. This can either be *workers*, *autofp* or *single*.
|
||||
|
||||
.. option:: capture-mode
|
||||
|
||||
Display the capture mode. This can be either of *PCAP_DEV*,
|
||||
*PCAP_FILE*, *PFRING(DISABLED)*, *NFQ*, *NFLOG*, *IPFW*, *ERF_FILE*,
|
||||
*ERF_DAG*, *AF_PACKET_DEV*, *NETMAP(DISABLED)*, *UNIX_SOCKET* or
|
||||
*WINDIVERT(DISABLED)*.
|
||||
|
||||
.. option:: conf-get <variable>
|
||||
|
||||
Get configuration value for a given variable. Variable to be provided can be
|
||||
either of the configuration parameters that are written in suricata.yaml.
|
||||
|
||||
.. option:: dump-counters
|
||||
|
||||
Dump Suricata's performance counters.
|
||||
|
||||
.. option:: ruleset-reload-rules
|
||||
|
||||
Reload the ruleset and wait for completion.
|
||||
|
||||
.. option:: reload-rules
|
||||
|
||||
Alias of option *ruleset-reload-rules*.
|
||||
|
||||
.. option:: ruleset-reload-nonblocking
|
||||
|
||||
Reload ruleset and proceed without waiting.
|
||||
|
||||
.. option:: ruleset-reload-time
|
||||
|
||||
Return time of last reload.
|
||||
|
||||
.. option:: ruleset-stats
|
||||
|
||||
Display the number of rules loaded and failed.
|
||||
|
||||
.. option:: ruleset-failed-rules
|
||||
|
||||
Display the list of failed rules.
|
||||
|
||||
.. option:: register-tenant-handler <id> <htype> [hargs]
|
||||
|
||||
Register a tenant handler with the specified mapping.
|
||||
|
||||
.. option:: unregister-tenant-handler <id> <htype> [hargs]
|
||||
|
||||
Unregister a tenant handler with the specified mapping.
|
||||
|
||||
.. option:: register-tenant <id> <filename>
|
||||
|
||||
Register tenant with a particular ID and filename.
|
||||
|
||||
.. option:: reload-tenant <id> <filename>
|
||||
|
||||
Reload a tenant with specified ID and filename.
|
||||
|
||||
.. option:: unregister-tenant <id>
|
||||
|
||||
Unregister tenant with a particular ID.
|
||||
|
||||
.. option:: add-hostbit <ipaddress> <hostbit> <expire>
|
||||
|
||||
Add hostbit on a host IP with a particular bit name and time of expiry.
|
||||
|
||||
.. option:: remove-hostbit <ipaddress> <hostbit>
|
||||
|
||||
Remove hostbit on a host IP with specified IP address and bit name.
|
||||
|
||||
.. option:: list-hostbit <ipaddress>
|
||||
|
||||
List hostbit for a particular host IP.
|
||||
|
||||
.. option:: reopen-log-files
|
||||
|
||||
Reopen log files to be run after external log rotation.
|
||||
|
||||
.. option:: memcap-set <config> <memcap>
|
||||
|
||||
Update memcap value of a specified item.
|
||||
|
||||
.. option:: memcap-show <config>
|
||||
|
||||
Show memcap value of a specified item.
|
||||
|
||||
.. option:: memcap-list
|
||||
|
||||
List all memcap values available.
|
Loading…
Reference in New Issue