2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH POOLBIND 1M "Feb 9, 2005"
8 poolbind \- bind processes, tasks, or projects or query binding of processes to
13 \fB/usr/sbin/poolbind\fR \fB-p\fR \fIpoolname\fR \fB-e\fR \fIcommand\fR [\fIarguments\fR]...
18 \fB/usr/sbin/poolbind\fR \fB-p\fR \fIpoolname\fR [\fB-i\fR \fIidtype\fR] \fIid\fR...
23 \fB/usr/sbin/poolbind\fR \fB-q\fR \fIpid\fR...
28 \fB/usr/sbin/poolbind\fR \fB-Q\fR \fIpid\fR...
34 The \fBpoolbind\fR command allows an authorized user to bind zones, projects,
35 tasks, and processes to pools. With the \fB-e\fR option (see below), it can
36 execute a command you specify, placing the executed command in a specified
37 pool. It can also enable you to query a process to determine which pool a
42 The following options are supported:
46 \fB\fB-e\fR \fIcommand\fR [\fIarguments\fR...]\fR
49 Executes \fIcommand\fR, bound to the pool you specify with \fB-p\fR.
55 \fB\fB-i\fR \fIidtype\fR\fR
58 This option, together with the \fIidlist\fR arguments, specifies one or more
59 processes to which the poolbind command is to apply. The interpretation of
60 \fIidlist\fR depends on the value of \fIidtype\fR. The valid \fIidtype\fR
61 arguments and corresponding interpretations of \fIidlist\fR are as follows:
68 \fIidlist\fR is a list of process \fBID\fRs. Binds the specified processes to
69 the specified pool. This is the default behavior if no idtype is specified.
78 \fIidlist\fR is a list of task IDs. Bind all processes within the list of task
79 IDs to the specified pool.
88 \fIidlist\fR is a list of project \fBID\fRs. Bind all processes within the list
89 of projects to the specified pool. Each project \fBID\fR can be specified as
90 either a project name or a numerical project \fBID\fR. See \fBproject\fR(4).
99 \fIidlist\fR is a list of zone \fBID\fRs. Bind all processes within the list of
100 zones to the specified pool. Each zone \fBID\fR can be specified as either a
101 zone name or a numerical zone \fBID\fR. See \fBzones\fR(5).
109 \fB\fB-p\fR \fIpoolname\fR\fR
112 Specifies the name of a pool to which the specified zone, project, tasks, or
113 processes are to be bound.
119 \fB\fB-q\fR \fIpid\fR ...\fR
122 Queries the pool bindings for a given list of process \fBID\fRs. If the
123 collection of resources associated with the process does not correspond to any
124 currently existing pool, or if there are multiple pools with the set of
125 resources that the process is bound to, the query fails for that particular
132 \fB\fB-Q\fR \fIpid\fR ...\fR
135 Queries the resource bindings for a given list of process IDs. The resource
136 bindings are each reported on a separate line.
141 \fBExample 1 \fRBinding All Processes
144 The following command binds all processes in projects \fB5\fR and \fB7\fR to
145 the pool \fBweb_app\fR:
150 example# /usr/sbin/poolbind \fB-p\fR web_app \fB-i\fR projid 5 7
156 \fBExample 2 \fRBinding the Running Shell
159 The following command binds the running shell to the pool \fBweb_app\fR:
164 example# /usr/sbin/poolbind \fB-p\fR web_app $$
170 \fBExample 3 \fRQuerying the Pool Bindings
173 The following command queries the bindings to verify that the shell is bound to
179 example# /usr/sbin/poolbind \fB-q\fR $$
185 \fBExample 4 \fRQuerying the Resource Bindings
188 The following command queries the bindings to verify that the shell is bound to
194 example# /usr/sbin/poolbind \fB-Q\fR $$
202 The following exit values are returned:
209 Successful completion.
218 Requested operation could not be completed.
227 Invalid command line options were specified.
233 See \fBattributes\fR(5) for descriptions of the following attributes:
241 ATTRIBUTE TYPE ATTRIBUTE VALUE
243 Interface Stability See below.
248 The invocation is Evolving. The output is Unstable.
252 \fBpooladm\fR(1M), \fBpoolcfg\fR(1M), \fBlibpool\fR(3LIB), \fBproject\fR(4),
253 \fBattributes\fR(5), \fBzones\fR(5)