RCTLADM(8) | Maintenance Commands and Procedures | RCTLADM(8) |
rctladm - display or modify global state of system resource controls
rctladm [-lu] [-e action] [-d action] [name...]
The rctladm command allows the examination and modification of active resource controls on the running system. An instance of a resource control is referred to as an rctl. See setrctl(2) for a description of an rctl; see resource_controls(7) for a list of the rctls supported in the current release of the Solaris operating system. Logging of rctl violations can be activated or deactivated system-wide and active rctls (and their state) can be listed.
An rctladm command without options is the equivalent of an rctladm with the -l option. See the description of -l below.
The following options are supported:
-d action
-e action
You can set the syslog action to a specific degree by assigning a severity level. To do this, specify syslog=level, where level is one of the string tokens given as valid severity levels in syslog(3C). You can omit the common LOG_ prefix on the severity level. Note that not all rctls support the syslog action. See resource_controls(7).
-l
-u
The following operands are supported:
name
Example 1 Activating System Logging for Specific Violations
The following command activates system logging of all violations of task.max-lwps.
# rctladm -e syslog task.max-lwps #
Example 2 Examining the Current Status of a Specific Resource
The following command examines the current status of the task.max-lwps resource.
$ rctladm -l task.max-lwps task.max-lwps syslog=DEBUG $
The following exit values are returned:
0
1
2
/etc/rctladm.conf
prctl(1), getrctl(2), setrctl(2), rctlblk_get_global_action(3C), rctlblk_get_global_flags(3C), attributes(7), resource_controls(7)
By default, there is no global logging of rctl violations.
July 2, 2007 | OmniOS |