Query regarding Idle time for a machine

5 views
Skip to first unread message

Ram Ban

unread,
Jul 20, 2026, 2:24:25 PM (3 days ago) Jul 20
to HTCondor-Users Mail List
Hi all,

Currently I am using NO_CLAIM_SHUTDOWN feature to stop machines which are not being used. Is there any way I can find the time of a machine which is not being used, for e.g. I have set NO_CLAIM_SHUTDOWN as 200 sec and now machine is not being utilised for 10 secs, I want to get this 10sec or may be 190sec(200-10) under any field of condor_status, Is there any way to get this?

I am currently using partition able slots for all machines and htcondor 25.0.7 version

Thanks and Regards 
Raman 

John M Knoeller

unread,
Jul 20, 2026, 3:54:00 PM (3 days ago) Jul 20
to Ram Ban, HTCondor Users Mailing LIst Forward
Each p-slot has two attributes by default 

NumDynamicSlots
NumDynamicSlotsTime

The first is the number of dynamic slots under that p-slot.  when that number is 0, then there are no claimed slots, which means the p-slot is idle.  If that is the only p-slot on the Startd,  then the whole Startd is idle. 

NumDynamicSlotsTime is the unix timestamp of the time when NumDynamicSlots changed,  so when NumDynamicSlots is 0, then that is the time when the Startd became idle. 

So something like this

    condor_status -const PartitionableSlot -af Machine 'IfThenElse(NumDynamicSlots, 0, (time() - NumDynamicSlotsTime))'

Will print the machine name followed by how many seconds it has been idle. 

-tj


From: htcondo...@g-groups.wisc.edu <htcondo...@g-groups.wisc.edu> on behalf of Ram Ban <ramb...@gmail.com>
Sent: Monday, July 20, 2026 1:24 PM
To: HTCondor Users Mailing LIst Forward <htcondo...@cs.wisc.edu>
Subject: [HTCondor-users] Query regarding Idle time for a machine
--
Archives for older messages are found at https://www-auth.cs.wisc.edu/lists/htcondor-users/
---
You received this message because you are subscribed to the Google Groups "HTCondor Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to htcondor-user...@g-groups.wisc.edu.
To view this discussion visit https://groups.google.com/a/g-groups.wisc.edu/d/msgid/htcondor-users/CAG-J6sirVWyrc_8En-DbCwzhYKhdTMmv4eriVbgxQ%3Dtx7LidZw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages