NAME¶
oar_resource_init - Helper script to define OAR resources by SSHing to nodes
SYNOPSIS¶
oar_resource_init <hosts_file> [options]
DESCRIPTION¶
The script takes a list of hosts from the file given as parameter and generates
the OAR commands to add the resources which define those hosts in the OAR
database. Generated commands are written by default in
/tmp/oar_resources_init.cmd
host_file must contain one host per line and the hosts must have their
"oar-node" service started (this script connects to the hosts via
ssh on the port 6667).
The default resource hierarchy which is filled by this script is: host -->
cpu --> core.
OPTIONS¶
- -o [file]
- Pathname for the output file to store the generated commands
- -H
- This option can be used when Intel HyperThreading is enabled on the nodes.
So for each declared core in the OAR database, the 2 corresponding threads
are assigned.
- -T
- This option can be used when Intel HyperThreading is enabled on the nodes.
It adds the property "thread" in the OAR database and fills it
with the hierarchy: host --> cpu --> core --> thread.
- -c [path]
- Path to oar.conf
- -e [path]
- Path to the SSH command
- -n [path]
- Path to the oarnodesetting command
- -p [path]
- Path to the oarproperty command
- -c [path]
- Path to oar.conf
ENVIRONMENT VARIABLES¶
The following environment variables can be set to control the script:
- OARCONFFILE
- Path to OAR configuration file (default: /etc/oar/oar.conf).
- OPENSSH_CMD
- Path to the SSH command (default: /usr/bin/ssh).
- OARNODESETTING_CMD
- Path to the oarnodesetting command (default: oarproperty).
- OARPROPERTY_CMD
- Path to the oarproperty command (default: oarproperty).
- GENERATED_COMMANDS_FILE
- Path to the file to be created, containing the generated commands
(default: /tmp/oar_resources_init.cmd).