You use pbs_config to configure PBS for testing
How to run pbs_config
Go to pbspro/test/fw/bin in your cloned GitHub directory structure
Syntax:
pbs_config [<option(s)>]
Options to pbs_config
-t <hostnames>:
Comma-separated hosts to operate on.
Defaults to localhost
-l <log level>:
One of DEBUG, INFO, ERROR, FATAL, WARNING
Default is ###
--log-conf=<logging config file>
Defaults to ###
--as-diag=<pbs_diag>:
Mimic pbs_diag snapshot ### don't understand... what is variable?
--revert-config:
Revert services to their default configuration
--scheduler: operate on scheduler
--server: operate on server
--mom: operate on MoM
--del-hooks=<True|False>: If True delete hooks. Defaults to True
--del-queues=<True|False>: Delete non-default queues. Defaults to True
--save-config=<config>:
Save configuration to file revert-config and save-config can operate on the following
--scheduler: operate on scheduler
--server: operate on server
--mom: operate on MoM
--load-config=<saved config file>:
Load configuration from saved file
--vnodify:
Define vnodes using the following suboptions:
-a <attrs>: comma separated list of attributes to set on vnodes
format: <name>=<value>. Defaults to 8 cpus 8gb of mem
-A: Set additive mode, leave vnode definitions in place
Default is to clear all existing vnode definition files.
-d <y|n>: If y, delete all server nodes. Defaults to y.
-f <filename>: Use output of pbsnodes -av from file as definition
-P <num>: Number of vnodes per host
-o <filename>: Output vnode definition to filename
-M <mom>: MoM to operate on, format <host>@<path/to/conf>.
Defaults to localhost.
-N <num vnodes>: Number of vnodes to create. No default.
-n <name>: Name of the natural vnode to create. Defaults to MoM FQDN
-p <name>: Prefix of name of node to create. Output format: prefix followed by [<num]. Defaults to vnode
-r <y|n>: Restart MoM or not, defaults to y
-s: If set, share vnodes on the host. Default is "standalone" hosts
-u: If set, allocate the natural vnode
--multi-mom:
Define and create multiple MoMs on a host
--create=<num>:
Number of MoMs to create. No default.
--restart=<[seq]>:
Restart MoMs in sequence
--stop=<[seq]>:
Stop MoMs in sequence
--serverhost=<host>:
Hostname of server, defaults to localhost
--home-prefix=<path>:
Prefix to PBS_HOME directory, defaults to /var/spool/PBS_m
--conf-prefix=<path>:
Prefix to pbs.conf file. Defaults to /etc/pbs.conf.m
--init-port=<number>:
Initial port to allocate. Defaults to 15011
--step-port=<number>:
Step for port sequence. Defaults to 2
--switch-version=<version>:switch
Switch to a given installed version of PBS
Currently only works for "vanilla" installs, i.e, not developer installs
Based on /etc/pbs.conf and "default" PBS_EXEC
--check-ug:verifies
Verifies whether test users and groups are defined as expected.
Note that -t option will be ignored.
--make-ug:create
Create users and groups to match what is expected
Note that -t option will be ignored
--del-ug:delete
Delete users and groups which is expected for PTL
Note that -t option will be ignored
--version: print version number and exit