[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] How does input to ROOSTER_WAKEUP_CMD look like?



Hey Steffen,

The ClassAd is the same as what you would see from doing condor_status -long slotX@myhost > myclassad.txt

I seem to recall rooster calls it with a full ClassAd by default, but when I was trying to fake rooster calls for a little wake up utility I narrowed it down to this to wake up a random machine (I just load the data from a file):

printf "MyAddress = \"<${the_ip}:9618>\"\nHardwareAddress = \"${hwaddr}\"\nSubnetMask = \"${subnet}\"\n" | condor_power -i

I use that in a script to keep our computer labs on in the daytime, with Condor shutting the machine down if unused in the evenings.

You could probably use the htcondor2 Python bindings to parse the ClassAd, and one of the Python IPMI libraries to wrap this whole thing up into a nice replacement.

Hope that helps,
-Zach


________________________________________
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Steffen Grunewald <steffen.grunewald@xxxxxxxxxx>
Sent: Friday, November 14, 2025 3:21 AM
To: HTCondor Users Mailinglist
Subject: [HTCondor-users] How does input to ROOSTER_WAKEUP_CMD look like?

Hello all,

I'm curious (and at the same time hesitant to break my management machine)
to find out how to use condor_rooster to wake up machines that wouldn't
respond to WakeOnLAN (but can be reached via their IPMI interfaces instead).

To write a replacement to condor_power, I need to know how the input for
that one would look like, and as I said before, I don't want to break my
mgmt host by possibly mistyping something like
 ROOSTER_WAKEUP_CMD = "bash -c 'date; env; id; cat -'"
(adding ROOSTER to the DAEMON_LIST looks rather harmless in comparison).

So the $10000 question is, is there documentation how the ClassAd provided
via STDIN looks - and are there examples how to replace condor_power?

Thanks,
 Steffen

--
Steffen Grunewald, Cluster Administrator
Max Planck Institute for Gravitational Physics (Albert Einstein Institute)
Am Mühlenberg 1 * D-14476 Potsdam-Golm * Germany
~~~
Fon: +49-331-567 7274
Mail: steffen.grunewald(at)aei.mpg.de
~~~
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe

The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/