xref: /minix/minix/commands/svrctl/svrctl.1 (revision 9f988b79)
1.Dd $April 5, 2012$
2.Dt SVRCTL 1
3.Os
4.Sh NAME
5.Nm svrctl
6.Nd send servers control messages
7.Sh SYNOPSIS
8.Nm
9.Ar <vfs|pm> Ar get Ar <request>
10.Nm
11.Ar <vfs|pm> Ar set Ar <request> Ar <value>
12.Sh DESCRIPTION
13The
14.Nm
15utility allows to override the values of variables inside VFS or PM or to
16retrieve the values of variables. The variables that are allowed to be
17overridden are hard coded in the servers.
18.Sh EXAMPLES
19To retrieve how many threads are currently actively carrying out work in VFS:
20.Bd -literal -offset indent
21svrctl vfs get active_threads
22.Ed
23.Pp
24To generate a stack trace of all threads in VFS:
25.Bd -literal -offset indent
26svrctl vfs get print_traces
27.Ed
28.Pp
29To set verbosity level of VFS (allowed values range from 0 to 4)
30.Bd -literal -offset indent
31svrctl vfs set verbose 1
32.Ed
33.Pp
34To retrieve boot monitor parameters (note that these are also available through
35.Xr sysenv 1
36) such as
37.Va rootdevname
38,
39.Va memory
40,
41.Va hz
42, and if set,
43.Va bootopts
44,
45.Va cttyline
46,
47.Va cttybaud
48:
49.Bd -literal -offset indent
50svrctl pm get rootdevname
51svrctl pm get memory
52svrctl pm get hz
53svrctl pm get bootopts
54svrctl pm get cttyline
55svrctl pm get cttybaud
56.Ed
57.Sh EXIT STATUS
58In case
59.Nm
60is not properly invoked or the provided
61.Va request
62is not valid 1 is returned, otherwise 0.
63.Sh AUTHORS
64.An Thomas Veerman
65.Aq thomas@minix3.org
66