nsysctl project is a utility for FreeBSD built on top of the sysctl system call. It allows users to query and modify kernel parameters at runtime. The release 2.2 is out!
The previous version (1.2.1) was released almost two and a half years ago. It just worked, so no changes or improvements were necessary. Recently, WebSysctl system call was launched. It uses the XML data generated by nsysctl to populate its database. With new users adopting nsysctl, several feature requests were submitted, and they have been implemented in this new release
NEWS
This release includes support for options that were added to the sysctl(8) utility over the past couple of years.
CHANGELOG:
2025-6-28 Version 2.2
* improve: updated and refined nsysctl.8 manual page
* change: -G no longer prints redundant flags RW, CAPRW, RDTUN, RWTUN
* rename: -V (print parameters without values with -a) to -u, because below
* add: new -V to print objects with the VNET flag; sysctl(8) compatibility
* rename: -l (print label) to -L, because below
* add: new -l to print value size; sysctl(8) compatibility
* add: new -J to print objects with the PRISON flag; sysctl(8) compatibility
* delete: -m (now -S) and -y (now -O) from the manual; obsolete since 2.0
* add: -j <jailname> to attach to a jail
DOCS
Both the manual and the tutorial have been updated to reflect the latest changes.
% nsysctl
usage: nsysctl [--libxo options [-r tagroot]] [-DdeFGgHIiJLnOpqTtVvWz]
[-N | -hl [b|o|x]] [-B bufsize] [-f filename] [-j jailname]
[-s sep] name[=value[,value]] ...
nsysctl [--libxo options [-r tagroot]] [-DdeFGgHIJkLnOpqSTtVvWz]
[-N | -hlu [b|o|x]] [-B bufsize] [-f filename] [-j jailname] [-s sep] -a
INSTALLATION
To install the port sysutils/nsysctl:
# cd /usr/ports/sysutils/nsysctl/ && make install clean
To add the package:
# pkg install nsysctl
To build from sources:
# pkg install libsysctlmibinfo2
% git clone https://gitlab.com/alfix/nsysctl.git
% cd nsysctl
% make % ./nsysctl