check here:
http://slurm.schedmd.com/strigger.html

1st paragraph ends with:  "A hostlist expression for the nodelist or job ID
is passed as an argument to the program."

2016-05-19 0:50 GMT+02:00 Michael Basilyan <[email protected]>:

> Looks like it already does pass it as an argument -- it's just not
> documented?
>
> On Wed, May 18, 2016 at 3:26 PM, Michael Basilyan <[email protected]>
> wrote:
>
>> I'm doing this to trigger slurm_node_down.sh when a machine goes done. My
>> only problem is that I don't know what machine actually went *down*...
>> so that I can take care of it.
>>
>>     sudo -u slurm strigger --set -nlinux[1-50] --down \
>>          --program=/etc/slurm-llnl/slurm_node_down.sh -v \
>>          --flags=PERM --offset=120
>>
>>
>> I used to do this to get a list of nodes currently down but that doesn't
>> work when the nodes have State=CLOUD
>>
>> down_nodes=`sinfo --states=down -h -N`
>> down_nodes=`echo "$down_nodes" | awk '{print $1}'`
>>
>> Thanks,
>> Mike
>>
>
>

Reply via email to