| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- bind processes, tasks, or projects or query binding of processes to resource pools
/usr/sbin/poolbind-ppoolname-ecommand [arguments]...
/usr/sbin/poolbind-ppoolname [-iidtype]id...
/usr/sbin/poolbind-qpid...
/usr/sbin/poolbind-Qpid...
Thepoolbind command allows an authorized user to bind zones, projects, tasks,and processes to pools. With the-e option (see below), it canexecute a command you specify, placing the executed command in a specifiedpool. It can also enable you to query a process to determine whichpool a process is bound to.
The following options are supported:
Executescommand, bound to the pool you specify with-p.
This option, together with theidlist arguments, specifies one or more processes to which the poolbind command is to apply. The interpretation ofidlist depends on the value ofidtype. The valididtype arguments and corresponding interpretations ofidlist are as follows:
idlist is a list of process IDs. Binds the specified processes to the specified pool. This is the default behavior if no idtype is specified.
idlist is a list of task IDs. Bind all processes within the list of task IDs to the specified pool.
idlist is a list of project IDs. Bind all processes within the list of projects to the specified pool. Each project ID can be specified as either a project name or a numerical project ID. Seeproject(4).
idlist is a list of zone IDs. Bind all processes within the list of zones to the specified pool. Each zone ID can be specified as either a zone name or a numerical zone ID. Seezones(5).
Specifies the name of a pool to which the specified zone, project, tasks, or processes are to be bound.
Queries the pool bindings for a given list of process IDs. If the collection of resources associated with the process does not correspond to any currently existing pool, or if there are multiple pools with the set of resources that the process is bound to, the query fails for that particular process ID.
Queries the resource bindings for a given list of process IDs. The resource bindings are each reported on a separate line.
Example 1 Binding All Processes
The following command binds all processes in projects5 and7 tothe poolweb_app:
example# /usr/sbin/poolbind-p web_app-i projid 5 7
Example 2 Binding the Running Shell
The following command binds the running shell to the poolweb_app:
example# /usr/sbin/poolbind-p web_app $$
Example 3 Querying the Pool Bindings
The following command queries the bindings to verify that the shell isbound to the given pool:
example# /usr/sbin/poolbind-q $$
Example 4 Querying the Resource Bindings
The following command queries the bindings to verify that the shell isbound to the given resources:
example# /usr/sbin/poolbind-Q $$
The following exit values are returned:
Successful completion.
Requested operation could not be completed.
Invalid command line options were specified.
Seeattributes(5) for descriptions of the following attributes:
|
The invocation is Committed. The output is Uncommitted.
pooladm(1M),poolcfg(1M),libpool(3LIB),project(4),attributes(5),zones(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |