oarnodesetting(1)
π oarnodesetting β the OAR commands glow-up β¨
okay bestie, welcome to oarnodesetting(1), straight out of the OAR commands collection. this is the tool that lets you β¨change stuffβ¨ about the resources in your OAR cluster β their state, their properties, all of it. no cap, it's giving main character energy for cluster admin. π
πΈ NAME πΈ
oarnodesetting β change the state and properties of resources in OAR. periodt.
β¨ SYNOPSIS β¨
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]
like, you pick how you wanna target your resources (by hostname, by resource id, or by a whole SQL where clause), and then you tell it what to change. iconic behaviour honestly. π¦
π DESCRIPTION π
so basically, this command is used to change the state and properties of resources in OAR. that's the whole vibe. you point it at some resources, you tell it what you want them to be, and it makes it happen. chef's kiss. π
π OPTIONS π
-r,--resource [resource id]β the resource id of the resource you wanna modify. that's the one, bestie. π―-h,--hostname [hostname]β the hostname for the resources you wanna modify. name the node, change the node. simple as. π₯οΈ--sql [SQL]β pick which resources to modify straight from the database using a SQL where clause on the resource table. example they give:"type = 'default'". very demure, very database. ποΈ-f,--file [file]β grab a hostname list out of a file (one hostname per line) for the resources you wanna modify. bulk mode unlocked. π-a,--addβ add a new resource. new resource just dropped. β¨-s,--state STATEβ set the new state of the resource. the possible states are:Alive,Absent,DeadandSuspected. choose wisely bestie, these are literally the four states. π¦-m,--maintenance [on|off]β set or unset maintenance mode for resources. heads up: this is equivalent to setting its state toAbsentand itsavailable_uptoto0. so it's a two-for-one situation, iykyk. π§-d,--drain [on|off]β prevent new jobs from being scheduled on the resources. this is equivalent to setting thedrainproperty toYES. no new jobs allowed, we're booked. π«-p,--property ["property=value"]β set the property of resources to the given value. give it a value, it holds the value. πΎ-p,--property [property!]β unset the property of resources. yes it's the same flag, no that's not a typo, the exclamation mark is doing the work here. bye property! π-n,--nowaitβ do not wait for job ends when resources switch toAbsentorDead. impatient? valid. no waiting around here. β©--last-property-value [property]β get the last value used for a property, as sorted by SQL'sORDER BY DESC. for when you forgot what you set it to last time. we've all been there. π
π EXAMPLES π
here's the little showcase, all exact, all cute:
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"
look at that range. bringing a node back to Alive, making one Absent by id, setting mem to 512, setting a whole cpu_model to Xeon Gold 5120 (fancy π
), and unsetting gpu on everything where gpucount = 0. versatility? ate. π₯
π 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. fr fr, no warranty bestie, we said what we said. π
and that's the whole page! this was oarnodesetting from the oarnodesetting manual, dated 2023-07-10. go forth and set some nodes, you've got this. π«Άπ
π¦ where this page comes from
- ubuntu noble: oar-common 2.5.10-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms