SYSTEROID(8) System Administration SYSTEROID(8)

systeroid - configure kernel parameters at runtime

systeroid [options] [variable[=value] ...] --load[=<file>]

systeroid is used to modify kernel parameters at runtime. The parameters available are those listed under /proc/sys/. Procfs is required for systeroid support in Linux. You can use systeroid to both read and write sysctl data.

The name of a key to read from. An example is kernel.ostype. The '/' separator is also accepted in place of a '.'.
To set a key, use the form variable=value where variable is the key and value is the value to set it to. If the value contains quotes or characters which are parsed by the shell, you may need to enclose the value in double quotes.
Display all variables currently available. (-A,-X)
Display the variables in a tree-like format.
Display the variables in JSON format.
Include deprecated parameters to --all values listing.
Use this option to ignore errors about unknown keys.
Use this option to only print the names. It may be useful with shells that have programmable completion.
Use this option to disable printing of the key name when printing values.
Print only variable values without new line.
Load in sysctl settings from the file specified or /etc/sysctl.conf if none given. Specifying - as filename means reading data from standard input.
Load settings from all system configuration files. See the CONFIGURATION section below.
Only apply settings that match pattern. The pattern uses extended regular expression syntax.
Use this option to not display the values set to stdout.
Use this option when all arguments prescribe a key to be set.
Use this option to print a detailed explanation of a variable.
Use this option to set a custom path for the kernel documentation.
Use this option to disable piping output into a pager.
Use this option to enable verbose logging.
Use this option to show the terminal user interface. systeroid-tui binary should be present in $PATH. See systeroid-tui(8) for more information.
Display help text and exit. (-d)
Display version information and exit.

systeroid -a
systeroid -t
systeroid vm user
systeroid -n kernel.hostname
systeroid kernel.domainname="example.com"
systeroid dmesg_restrict=0
systeroid -p /etc/sysctl.conf
systeroid -r 'net.ipv4.conf.(eth|wlan)0.arp'
systeroid --names --tree --pattern 'kernel.*_max$'
systeroid --explain oom_dump_tasks
systeroid -E user.max_user_namespaces --docs /usr/share/doc/linux
systeroid --no-pager -E kernel.ctrl-alt-del
systeroid --tui

The base_reachable_time and retrans_time are deprecated. The systeroid command does not allow changing values of these parameters. Users who insist to use deprecated kernel interfaces should push values to /proc file system by other means. For example:

echo 256 > /proc/sys/net/ipv6/neigh/eth0/base_reachable_time

sysctl.conf is a simple file containing sysctl values to be read in and set by systeroid. The syntax is simply as follows:

# comment
; comment
token = value

Note that blank lines are ignored, and whitespace before and after a token or value is ignored, although a value can contain whitespace within. Lines which begin with a # or ; are considered comments and ignored.

If a line begins with a single -, any attempts to set the value that fail will be ignored.

# sysctl.conf sample
#
  kernel.domainname = example.com
; this one has a space which will be written to the sysctl!
  kernel.modprobe = /sbin/mod probe

When using the --system option, systeroid will read files from directories in the following list.

/etc/sysctl.d/*.conf
/run/sysctl.d/*.conf
/usr/local/lib/sysctl.d/*.conf
/usr/lib/sysctl.d/*.conf
/lib/sysctl.d/*.conf
/etc/sysctl.conf

systeroid-tui(8)

Orhun Parmaksız

Copyright © 2022-2023 Orhun Parmaksız

Licensed under either of Apache License Version 2.0 or The MIT License at your option.

Report bugs at https://github.com/orhun/systeroid/issues or contact the author via email.

See the project homepage at https://github.com/orhun/systeroid for full documentation.
2023-09-19 systeroid