oarnodesetting(8)

πŸ“¦
version 2.6.1 Β· 3 versions
, in debian trixie, ubuntu questing

πŸ’– 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, Dead and Suspected. 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 to Absent and its available_upto to 0. do not play with her πŸ™ˆ
  • -d, --drain [on|off] β€” prevent new job to be scheduled on resources. this is equivalent to setting the drain property to YES. 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 to Absent or Dead. impatient queen behavior, and honestly? valid ⭐
  • --last-property-value [property] β€” get the last value used for a property (as sorted by SQL's ORDER 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