oarnodesetting(8)
π oarnodesetting(8) β the OAR commands glow-up π
okay bestie, listen up, we're talking about oarnodesetting, and it lives in the OAR commands section of the manual, section 8, iykyk. this is the one you call when you need to β¨change the state and properties of resources in OARβ¨. she's a real one. let's get into it π«Ά
β¨ SYNOPSIS β¨
like, here's how you actually summon her:
oarnodesetting -a -h hostname [-p "property=value" [-p ...]]
oarnodesetting -h hostname [-s state] [-p "property=value" [-p ...]] [-m
on | off]] [-d on | off]
oarnodesetting -r resource_id [-s state] [-p "property=value" [-p ...]]
[-m on | off]] [-d on | off]
oarnodesetting --sql "SQL where clause" [-s state] [-p "property=value"
[-p ...] [-m on | off]] [-d on | off]
no cap, that's the whole vibe right there. pick your flavor, bestie π
πΈ DESCRIPTION πΈ
okay so literally, this command is used to change the state and properties of resources in OAR. that's it. that's the whole job. she does state, she does properties, she does it well. main character energy fr fr π
π OPTIONS π
here's where it gets juicy. every single flag, no skipping, we eat the whole plate π
-r,--resource [resource id]β the resource id of the resource you wanna modify. like, which one are we touching, bestie?-h,--hostname [hostname]β the hostname for the resources you wanna modify. name her and she's yours π--sql [SQL]β pick which resources to modify straight from the database using a SQL where clause on the resource table (for example:"type = 'default'"). very demure, very database π-f,--file [file]β pull a hostname list out of a file, 1 hostname by line, for the resources you wanna modify. bulk mode activated π¦-a,--addβ add a new resource. brand new, fresh out the box β¨-s,--state STATEβ set the new state of the resource. the possible states are:Alive,Absent,DeadandSuspected. choose wisely, that's a whole vibe check π-m,--maintenance [on|off]β set/unset maintenance mode for resources. this is equivalent to setting its state toAbsentand itsavailable_uptoto0. do not play with her π-d,--drain [on|off]β prevent new job to be scheduled on resources. this is equivalent to setting thedrainproperty toYES. she's booked and busy, no new plans π-p,--property ["property=value"]β set the property of resources to the given value. glow up your metadata π-p,--property [property!]β unset the property of resources. with the little!? yeah, that's the delete button, periodt π-n,--nowaitβ do not wait for job ends when resources switch toAbsentorDead. impatient queen behavior, and honestly? valid β--last-property-value [property]β get the last value used for a property (as sorted by SQL'sORDER BY DESC). throwback to what she was wearing last time π
π« EXAMPLES π«
here's the group chat receipts, copy-paste ready:
oarnodesetting -s Alive -h node012
oarnodesetting -s Absent -r 21
oarnodesetting -p mem=512 -h node012
oarnodesetting -p "cpu_model=Xeon Gold 5120" -h node012
oarnodesetting -p gpu! --sql "gpucount = 0"
see how she ate that? Alive, Absent, properties with spaces in quotes, and an unset with gpu! filtered by --sql. iconic, no notes π₯
π COPYRIGHTS π
Copyright 2003-2021 Laboratoire d'Informatique 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.
bestie, read that last sentence again β NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so if it breaks, it breaks, and that's a you problem ππ
and that's the page!! footer tea: this one's from the OAR commands set, dated 2025-03-24, and yes she's still serving oarnodesetting(8) energy. slay, go set some states, ily π«Άπβ¨
π¦ where this page comes from
- debian trixie: oar-common 2.6.1-1 Β· GPL-2.0-or-later
- ubuntu questing: oar-common 2.6.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms