.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "oarnodesetting 1" .TH oarnodesetting 1 2024-04-10 oarnodesetting "OAR commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME oarnodesetting \- Change the state and properties of resources in OAR. .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBoarnodesetting\fR \-a \-h hostname [\-p "property=value" [\-p ...]] .PP \&\fBoarnodesetting\fR \-h hostname [\-s state] [\-p "property=value" [\-p ...]] [\-m on | off]] [\-d on | off] .PP \&\fBoarnodesetting\fR \-r resource_id [\-s state] [\-p "property=value" [\-p ...]] [\-m on | off]] [\-d on | off] .PP \&\fBoarnodesetting\fR \-\-sql "SQL where clause" [\-s state] [\-p "property=value" [\-p ...]] [\-m on | off]] [\-d on | off] .SH DESCRIPTION .IX Header "DESCRIPTION" This command is used to Change the state and properties of resources in OAR. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-r, \-\-resource\fR [resource id]" 4 .IX Item "-r, --resource [resource id]" Resource id of the resource to modify .IP "\fB\-h, \-\-hostname\fR [hostname]" 4 .IX Item "-h, --hostname [hostname]" Hostname for the resources to modify .IP "\fB\-\-sql\fR [SQL]" 4 .IX Item "--sql [SQL]" Select resources to modify from database using a SQL where clause on the resource table (e.g.: "type = 'default'") .IP "\fB\-f, \-\-file\fR [file]" 4 .IX Item "-f, --file [file]" Get a hostname list from a file (1 hostname by line) for resources to modify .IP "\fB\-a, \-\-add\fR" 4 .IX Item "-a, --add" Add a new resource. .IP "\fB\-s, \-\-state\fR STATE" 4 .IX Item "-s, --state STATE" Set the new state of the resource. Possible states are: Alive, Absent, Dead and Suspected. .IP "\fB\-m, \-\-maintenance\fR [on|off]" 4 .IX Item "-m, --maintenance [on|off]" Set/unset maintenance mode for resources, this is equivalent to setting its state to Absent and its available_upto to 0 .IP "\fB\-d, \-\-drain\fR [on|off]" 4 .IX Item "-d, --drain [on|off]" Prevent new job to be scheduled on resources, this is equivalent to setting the drain property to YES .IP "\fB\-p, \-\-property\fR [""property=value""]" 4 .IX Item "-p, --property [""property=value""]" Set the property of resources to the given value. .IP "\fB\-p, \-\-property\fR [property!]" 4 .IX Item "-p, --property [property!]" Unset the property of resources. .IP "\fB\-n, \-\-nowait\fR" 4 .IX Item "-n, --nowait" Do not wait for job ends when resources switch to Absent or Dead. .IP "\fB\-\-last\-property\-value\fR [property]" 4 .IX Item "--last-property-value [property]" Get the last value used for a property (as sorted by SQL's ORDER BY DESC) .SH EXAMPLES .IX Header "EXAMPLES" .IP "oarnodesetting \-s Alive \-h node012" 4 .IX Item "oarnodesetting -s Alive -h node012" .PD 0 .IP "oarnodesetting \-s Absent \-r 21" 4 .IX Item "oarnodesetting -s Absent -r 21" .IP "oarnodesetting \-p mem=512 \-h node012" 4 .IX Item "oarnodesetting -p mem=512 -h node012" .IP "oarnodesetting \-p ""cpu_model=Xeon Gold 5120"" \-h node012" 4 .IX Item "oarnodesetting -p ""cpu_model=Xeon Gold 5120"" -h node012" .IP "oarnodesetting \-p gpu! \-\-sql ""gpucount = 0""" 4 .IX Item "oarnodesetting -p gpu! --sql ""gpucount = 0""" .PD .SH COPYRIGHTS .IX Header "COPYRIGHTS" .Vb 1 \& Copyright 2003\-2021 Laboratoire d\*(AqInformatique de Grenoble (http://www.liglab.fr). This software is licensed under the GNU General Public License Version 2 or above. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .Ve