1rctladm(1M)             System Administration Commands             rctladm(1M)
2
3
4

NAME

6       rctladm - display or modify global state of system resource controls
7

SYNOPSIS

9       rctladm [-lu] [-e action] [-d action] [name...]
10
11

DESCRIPTION

13       The  rctladm  command allows the examination and modification of active
14       resource controls on the running system. An instance of a resource con‐
15       trol  is referred to as an rctl. See setrctl(2) for a description of an
16       rctl; see resource_controls(5) for a list of the rctls supported in the
17       current release of the Solaris operating system. Logging of rctl viola‐
18       tions can be activated or deactivated system-wide and active rctls (and
19       their state) can be listed.
20
21
22       An rctladm command without options is the equivalent of an rctladm with
23       the -l option. See the description of -l below.
24

OPTIONS

26       The following options are supported:
27
28       -d action
29       -e action
30
31           Disable (-d) or enable (-e) the  global  action  on  the  specified
32           rctls.  If  no  rctl  is specified, no action is taken and an error
33           status is returned. You can use the special token all with the dis‐
34           able option to deactivate all global actions on a resource control.
35
36           You  can  set the syslog action to a specific degree by assigning a
37           severity level. To do this, specify syslog=level,  where  level  is
38           one  of  the  string  tokens given as valid severity levels in sys‐
39           log(3C). You can omit the common LOG_ prefix on the severity level.
40           Note   that   not   all   rctls  support  the  syslog  action.  See
41           resource_controls(5).
42
43
44       -l
45
46           List information about rctls. The name, global  event  actions  and
47           statuses, and global flags are displayed. If one or more name oper‐
48           ands are specified, only those rctls matching the  names  are  dis‐
49           played.
50
51
52       -u
53
54           Configure  resource  controls  based  on  the contents of /etc/rct‐
55           ladm.conf. Any name operands are ignored.
56
57

OPERANDS

59       The following operands are supported:
60
61       name
62
63           The name of the rctl to operate on.  Multiple  rctl  names  can  be
64           specified.  If no names are specified, and the list action has been
65           specified, then all rctls are listed.  If  the  enable  or  disable
66           action is specified, one or more rctl names must be specified.
67
68

EXAMPLES

70       Example 1 Activating System Logging for Specific Violations
71
72
73       The  following  command  activates  system logging of all violations of
74       task.max-lwps.
75
76
77         # rctladm -e syslog task.max-lwps
78         #
79
80
81
82       Example 2 Examining the Current Status of a Specific Resource
83
84
85       The following command examines the current status of the  task.max-lwps
86       resource.
87
88
89         $ rctladm -l task.max-lwps
90         task.max-lwps               syslog=DEBUG
91         $
92
93
94

EXIT STATUS

96       The following exit values are returned:
97
98       0
99
100           Successful completion.
101
102
103       1
104
105           A  fatal  error occurred. A message is written to standard error to
106           indicate each resource control for which the operation failed.  The
107           operation  was successful for any other resource controls specified
108           as operands.
109
110
111       2
112
113           Invalid command line options were specified.
114
115

FILES

117       /etc/rctladm.conf
118
119           Each time rctladm is executed, it  updates  the  contents  of  rct‐
120           ladm.conf with the current configuration.
121
122

ATTRIBUTES

124       See attributes(5) for descriptions of the following attributes:
125
126
127
128
129       ┌─────────────────────────────┬─────────────────────────────┐
130       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
131       ├─────────────────────────────┼─────────────────────────────┤
132       │Availability                 │SUNWesu                      │
133       └─────────────────────────────┴─────────────────────────────┘
134

SEE ALSO

136       setrctl(2),  getrctl(2),  prctl(1), rctlblk_get_global_flags(3C), rctl‐
137       blk_get_global_action(3C), attributes(5), resource_controls(5)
138

NOTES

140       By default, there is no global logging of rctl violations.
141
142
143
144SunOS 5.11                        2 Jul 2007                       rctladm(1M)
Impressum