Qmgr命令
这是一个PBS管理器(亦可称为管理命令), Qmgr提供了一个命令行界面的PBS服务器。该Qmgr命令可以让任何使用人列表及打印属性。操作人根据权限,可以设置或取消Vnode、队列或服务器的属性。管理员的权限可以根据权限来创建或删除队列或Vnodes 。该Qmgr命令将不会显示属性的取消,例如在他们的默认值下。
大多数的vnode的属性可能通过Qmgr进行设置。然而,一些必须设置的个人执行所在地方vnode定义文件,而不是使用qmgr 。那些必须建立在可执行主机的这种方式:
• sharing
• ncpus
• mem
• vmem
例如,如何做到这一点(在这种情况下,改变了共享属性为vnode命名的V10 )使用脚本“ change_sharing ” 。可以看到创建的位置,定义了MOM的配置文件。
# cat change_sharing
$configversion 2
V10: sharing = ignore_excl
# . /f
# $PBS_EXEC/sbin/pbs_mom -s inrt ignore_excl change_sharing
# pkill -HUP pbs_mom
不要设置sharing , ncpus , mem , or vmem 在Vnode中通过Qmgr .
qmgr命令的用法是:
qmgr [-a] [-c command] [-e] [-n] [-z] []
qmgr --version
可用的选项,并说明每个如下。
qmgr选项
-a
qmgr中止对任何语法错误或者驳回对服务器的任何请求。
-c command
执行一个单一的命令或退出qmgr 。该命令必须包含在引号内,例如: qmgr -c "print rver"
-e
八仙过海传奇回显所有的命令到标准输出。
-n
没有任何命令的执行,仅仅是语法检查。
-z
没有错误被写入标准的错误记录。
--version
该qmgr命令返回其PBS的版本信息。此选项只能单独使用。
如果qmgr援引未经-c选项和标准输出连接到一个终端, qmgr将写入标准输出,并从标准输入中读取一项指令。
任何属性值设置通过qmgr含有逗号,空格或hashmark必须以双引号括住。例如:
Qmgr: t node Vnode1 comment="Node will be taken offline Friday at 1:00 for memory upgrade."
Qmgr: active node vnode1,vnode2,vnode3
A command is terminated by a newline character or a micolon (";") character. Multiple commands may be entered on a single line. A command may extend across lines by escaping the newline character with a back-slash ("\"). Comments begin with the "#" character and continue to the end of the line. Comments and blank lines are ignored by qmgr . A qmgr directive takes one of the following forms (OP is the operation to be performed on the attribute and its value):
command rver [names] [attr OP value[,...]]
command queue [names] [attr OP value[,...]]
command node [names] [attr OP value[,...]]
command sched [names] [attr OP value[,...]]
Where command is the sub-command to perform on an object. The commands are listed in the table below.
The object of the command can be explicitly named:
qmgr -c "print queue <queue name>"
or can be specified before using the command, by making the object(s) active, for example:
qmgr -c "active Vnode1"
Only vnodes and queues can be created or deleted using qmgr .
You can specify the default rver in a command by using "@default" instead of @<rver name>. If you don't name a specific object, all objects of that type at the rver will be affected.
For example, to print out all of the queue information for the default rver:
qmgr -c "print queue @default"
Under Windows, u double quotes when specifying arguments to PBS commands, including qmgr .
qmgr Subcommands Command
Explanation
active
Sets the objects that will be operated on in following commands. The objects remain active until the active command is ud. Disregarded when an object is specified in a qmgr command.
create
Creates a new object; applies to queues and vnodes.华学恩学
delete
朋友的爱人Destroys an existing object; applies to queues and vnodes.
help
Prints command-specific help and usage information
list
Lists the current attributes and associated values of the object.
print
Prints ttable queue and Server attributes in a format that will be usable as input to the qmgr command.
t
Defines or alters attribute values of the object.
unt
Clears the value of the attributes of the object. Note: this form does not accept an OP and
value, only the attribute name.
Other qmgr syntax definitions follow:
Variable
qmgr Variable/Syntax Description
names
List of one or more names of specific objects. The name list is in the form:
[name][@rver][,name[@rver]...]
with no intervening white space. The name of an object is declared when the object is first created. If the name is @rver, then all the objects of specified type at the Server wi
ll be affected.
attr
Specifies the name of an attribute of the object which is to be t or modified. The attributes of objects are described on the relevant attribute man page (e.g. pbs_node_attributes(3B )). If the attribute is one which consists of a t of resources, then the attribute is specified in the form:
source_name
OP
An operation to be performed with the attribute and its value:
=
Set the value of the attribute. If the attribute has an existing value, the current value is rep
laced with the new value.
美女照片性感+=
Increa the value of the attribute by the amount specified. Ud to append a string to a string array, for example
" s s managers+=<manager name> "
-=
Decrea the value of the attribute by the amount specified. Ud to remove a string from a string array, for example
" s s managers-=<manager name> "
value
The value to assign to an attribute. If value includes white space, commas, square brackets or other special characters, such as "#", the value string must be enclod in quote marks (" ").
A few examples of the qmgr command follow. Commands can be abbreviated. The underlined letters are there to show which abbreviations can be ud in place of complete words.
Qmgr: create node mars
Qmgr: t node mars pus=2
Qmgr: create node venus
Qmgr: t node mars resources_available.inner = true
Qmgr: t node mars resources_available.haslife= true
Qmgr: delete node mars
Qmgr: d n venus
qmgr Help System
The qmgr built-in help function, invoked using the help sub-command, is illustrated by the next example which shows that requesting usage information on qmgr 's t command produces the following output.
qmgr
Qmgr: help t
Syntax: t object [name][,] attribute[.resource] OP value
Objects can be "rver" or "queue", "node"
The t command ts the value for an attribute on the specified object. If the object is "rver" and name is not specified, the attribute will be t on all the rvers specified on
the command line. For multiple names, u a comma parated list with no intervening whitespace.
Examples:
t rver s1 max_running = 5
t rver managers = root
t rver managers += susan
t node n1,n2 state=down
射手座二
t queue q1@s3 += 5mb
t queue @s3 default_queue = batch
Custom resources can be made invisible to urs or unalterable by urs via resource permission flags. See See Resource Flags for Resource Permissions. A ur will not be able to print or list custom resource which have been made either invisible or unalterable.
Default Configuration
Server management consists of configuring the Server attributes, defining vnodes, and establishing queues and their attributes. The default configuration from the binary installation ts the default Server ttings. (An example Server configuration is shown below.) The subquent ctions in this chapter list, explain, and provide the default ttings for all the Server's attributes for the default binary installation.
qmgr
Qmgr: print rver
#
# Create queues and t their attributes.
#
#
# Create and define queue workq
#
create queue workq
t queue workq queue_type = Execution
t queue workq enabled = True
t queue workq started = True
#
# Set rver attributes.
#
t rver scheduling = True
t rver default_queue = workq
t rver log_events = 511李承乾的太子妃
t rver mail_from = adm
t rver query_other_jobs = True
t rver pus = 1
t rver scheduler_iteration = 600
t rver resv_enable = True
t rver node_fail_requeue = 310
t rver max_array_size = 10000
t rver pus=1
PBS Levels of Privilege
The qmgr command is subject to the three levels of privilege in PBS: Manager , Operator , and ur . In general, a "Manager" can do everything offered by qmgr (such as creating/deleting new objects like queues and vnodes, modifying existing objects, and changing attributes that affect policy). The "Operator" level is more restrictive. Operators cannot create new objects nor modify any attribute that changes scheduling policy. See See operators. A "ur" can view, but cannot change, Server configuration information. For example, the help , list and print sub-commands of qmgr can be executed by the general ur. Creating or deleting a queue requires PBS Manager privilege. Setting or untting Server or queue attributes (discusd below) requires PBS Operator or Manager privilege. Specifically, Manager privilege is required to create and delete queues
or vnodes, and t/alter/unt the following attributes:
Attributes Requiring Manager Privilege to Set or Alter Server
Queue
Vnode
acl_hosts
alt_route
comment
acl_host_enable
from_route_queue
Mom
acl_resv_groups
require_cred
no_multinode_jobs
acl_resv_group_enable
植树绘画require_cred_enable
pnames
acl_resv_hosts
route_destinations
queue
acl_resv_host_enable
resv_enable
acl_resv_urs
acl_resv_ur_enable
acl_roots
acl_urs
acl_ur_enable
default_node
flatuid
mail_from
managers
operators
query_other_jobs
require_cred
require_cred_enable
厚积薄发啥意思
resv_enable
See See Server Configuration Attributes for details on tting levels of privilege. The managers and operators Server attributes control privilege.
See See External Security for curity-related aspects of PBS privilege.