rctladm(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

rctladm(8)

System Administration Commands                                      rctladm(8)



NAME
       rctladm - display or modify global state of system resource controls

SYNOPSIS
       rctladm [-lu] [-e action] [-d action] [name...]

DESCRIPTION
       The  rctladm  command allows the examination and modification of active
       resource controls on the running system. An instance of a resource con‐
       trol  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 viola‐
       tions 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.

OPTIONS
       The following options are supported:

       -d action
       -e action

           Disable (-d) or enable (-e) the  global  action  on  the  specified
           rctls.  If  no  rctl  is specified, no action is taken and an error
           status is returned. You can use the special token all with the dis‐
           able option to deactivate all global actions on a resource control.

           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 sys‐
           log(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).

           If the enabling of the syslog action for an rctl results in a  con‐
           tinuous stream of logged messages, log output will be restricted to
           one message every five seconds. In such a circumstance,  some  mes‐
           sages will be dropped. No corrective action need to be taken.



       -l

           List  information  about  rctls. The name, global event actions and
           statuses, and global flags are displayed. If one or more name oper‐
           ands  are  specified,  only those rctls matching the names are dis‐
           played.


       -u

           Configure resource controls based  on  the  contents  of  /etc/rct‐
           ladm.conf. Any name operands are ignored.


OPERANDS
       The following operands are supported:

       name

           The  name  of  the  rctl  to operate on. Multiple rctl names can be
           specified. If no names are specified, and the list action has  been
           specified,  then  all  rctls  are  listed. If the enable or disable
           action is specified, one or more rctl names must be specified.


EXAMPLES
       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
         $




EXIT STATUS
       The following exit values are returned:

       0

           Successful completion.


       1

           A fatal error occurred. A message is written to standard  error  to
           indicate  each resource control for which the operation failed. The
           operation was successful for any other resource controls  specified
           as operands.


       2

           Invalid command line options were specified.


FILES
       /etc/rctladm.conf

           Each  time  rctladm  is  executed,  it updates the contents of rct‐
           ladm.conf with the current configuration.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os


SEE ALSO
       prctl(1),  getrctl(2), setrctl(2), rctlblk_get_global_action(3C), rctl‐
       blk_get_global_flags(3C), attributes(7), resource-controls(7)

NOTES
       By default, there is no global logging of rctl violations.



Oracle Solaris 11.4               17 Mar 2015                       rctladm(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3