.Pp
The following options are available:
.Bl -tag -width indent
+.\" ==========
.It Fl A
List all MIB variables including opaque variables (which are normally suppressed).
The format and length are printed, as well as a hex dump of the first sixteen bytes of the value.
+.\" ==========
.It Fl a
List all the currently available non-opaque values.
This option is ignored if one or more variable names are specified on
the command line.
+.\" ==========
.It Fl b
Force the value of the variable(s) to be output in raw, binary format.
No names are printed and no terminating newlines are output.
This is mostly useful with a single variable.
+.\" ==========
.It Fl n
Show only variable values, not their names.
This option is useful for setting shell variables.
use:
.Pp
.Dl "set psize=`sysctl -n hw.pagesize`"
-.It Fl X
-Same as
-.Fl A
-but prints a hex dump of the entire value instead of just the first few bytes.
+.\" ==========
.It Fl w Ar name=value
Used to set values. The MIB name (
.Ar name
) followed by an equal sign and the new value (
.Ar value
) to be used.
+.\" ==========
+.It Fl X
+Same as
+.Fl A ,
+but prints a hex dump of the entire value
+instead of just the first few bytes.
.El
.Pp
If just a MIB style name is given,
.It hw.byteorder integer no
.It hw.physmem integer no
.It hw.usermem integer no
+.It hw.memsize integer no
.It hw.pagesize integer no
.It user.cs_path string no
.It user.bc_base_max integer no
.Bd -literal -offset indent
sysctl debug
.Ed
+.Pp
In addition,
.Nm sysctl
can extract information about the filesystems that have been compiled
.Bd -literal -offset indent
sysctl vfs
.Ed
+.Pp
By default, only filesystems that are actively being used are listed.
Use of the
.Fl A
.Sh EXAMPLES
.Pp
For example, to retrieve the maximum number of processes allowed
-in the system, one would use the follow request:
-.Bd -literal -offset indent -compact
+in the system, one would use the request:
+.Bd -literal -offset indent
sysctl kern.maxproc
.Ed
.Pp
To set the maximum number of processes allowed
-in the system to 1000, one would use the follow request:
-.Bd -literal -offset indent -compact
+in the system to 1000, one would use the request:
+.Bd -literal -offset inden
sysctl -w kern.maxproc=1000
.Ed
.Pp
Information about the system clock rate may be obtained with:
-.Bd -literal -offset indent -compact
+.Bd -literal -offset indent
sysctl kern.clockrate
.Ed
.Pp
Information about the load average history may be obtained with:
-.Bd -literal -offset indent -compact
+.Bd -literal -offset indent
sysctl vm.loadavg
.Ed
.Pp
Information about the system's swap space usage may be obtained with:
-.Bd -literal -offset indent -compact
+.Bd -literal -offset indent
sysctl vm.swapusage
.Ed
.Sh FILES