All sysctl information and settings

Not here...

This page isn’t working​

websysctl.alfonsosiciliano.net is currently unable to handle this request.


HTTP ERROR 502
 
This is nice. What I really want is a system's admin level documentation on what each of these do, and maybe some recommendations for settings of various tasks.
 
drhowarddrfine very handy tool.
I don't even recall seeing this in the vermaden news, it's a good thing that you post this here, thank you.

why not write a ncurses menu utility for all of this? Why require a web browser?
Just in case you haven't found yet there is also a cli tool.
And a good tutorial page.
That makes grep useful as usual.
I think it's very nice of the author to propose these solutions, cli gui and web, everybody should be happy in the end.
 
Hmm. It doesn't include all of them.
Hello cy@
If you want, you can log in with your freebsd.org email and then to increment the DB. The database started with 8000 nodes from my kernel. I wrote an email to a mailing list, currently there are 16000 nodes (surely the nodes of the Intel GPU are still missing). I hope other committers will increase the database.
 
why not write a ncurses menu utility for all of this? Why require a web browser?
Hi Beastie7

I can't implement WebSysctl as an "ncurses menu utility" because WebSysctl is a database, whereas an "ncurses menu utility" is a utility. Here's an explanation:

Utilities like nsysctl (CLI), sysctlview (GUI), and websysctl (WEB) display the same information for a sysctl node, as they all use libsysctlmibinfo2 on top of sysctlinfo-kmod to retrieve this data from the kernel.

That said, utilities (sysutils/nsysctl, deskutils/sysctlview, sysctl(8), prometheus_sysctl_exporter(8), and any potential ncurses-based utility) show the sysctl MIB of the running kernel on a single machine. The FreeBSD sysctl MIB is dynamic, a node can be added or removed dynamically. Each computer likely builds a different MIB depending on:
  • OS version
  • Running kernel
    • Built configuration
    • Loaded kernel modules
  • Hardware

WebSysctl, on the other hand, is not a utility; it's a database. A committer can log in and upload the sysctl MIB on his computer, helping to incrementally build and update the global database.



That said, I did start writing a TUI sysctl utility some time ago, mostly as a test for libbsddialog. I ultimately abandoned the project because I didn’t see clear advantages to a TUI for this use case.

Screenshot_2025-05-08_00-01-40.png



For example, suppose we're using a terminal and want to inspect the kern.osrelease node. What would be the benefit of displaying this in a TUI instead of just using the CLI?
% nsysctl -Dp kern.ostype
[OID]: 1.1: [NAME]: kern.ostype: [LABEL]: : [DESCRIPTION]: Operating system type: [TYPE]: string: [FORMAT]: A: [FLAGS]: RD MPSAFE CAPRD: [HANDLER]: Defined: [VALUE]: FreeBSD


Or say we want to explore the subtree kern.boottrace.*, what real advantage would a TUI have over a command like:
% nsysctl -s ", " -dtHI kern.boottrace
kern.boottrace, boottrace statistics, node, Undefined
kern.boottrace.table_size, Boot-time tracing table size, unsigned integer, Defined, 0
kern.boottrace.shutdown_trace_threshold, Tracing threshold (ms) below which tracing is ignored, integer, Defined, 0
kern.boottrace.shutdown_trace, Enable kernel shutdown tracing to the console, uint8_t, Defined, 0
kern.boottrace.enabled, Boot-time and shutdown-time tracing enabled, uint8_t, Defined, 0
kern.boottrace.reset, Reset run-time tracing table, integer, Defined,
kern.boottrace.shuttrace, Capture a shutdown-time trace event, string, Defined,
kern.boottrace.runtrace, Capture a run-time trace event, string, Defined,
kern.boottrace.boottrace, Capture a boot-time trace event, string, Defined,
kern.boottrace.log, Print a log of the boottrace trace data, string, Defined,



Of course, if there are clear benefits, I'm open to the idea. I could even consider finishing the sysctlTUI project.
 
For example, suppose we're using a terminal and want to inspect the kern.osrelease node. What would be the benefit of displaying this in a TUI instead of just using the CLI?

The same benefits you'd get from a web GUI, except I don't have to install a plethora of extra stuff just to navigate and interact with the same information. I'd rather not install X.org, etc. on a server just to be able to better view subtrees. Akin to navigating filesystem hierarchies with Midnight Commander.

That said, I did start writing a TUI sysctl utility some time ago, mostly as a test for libbsddialog. I ultimately abandoned the project because I didn’t see clear advantages to a TUI for this use case.

Nice! I'd like to toy with this sometime.
 
Sorry for the off-topic post, since the topic is about websysctl, but someone asked me a question for TUI.

Beastie7 Version 0.0.1 of sysctltui is ready. It’s only version 0.0.1, but it already offers some features available in nsysctl and sysctlview. The utility has a ToDo list in the README, of course the project is open source, feel free to send merge requests to help improve it.
 
Back
Top