Looking at the src it appears it wants a number of seconds – presumably it’s the begin date in epoch seconds or possibly the number
of seconds back from now? So something like this should work: condor_userprio -usage -setbegin username@domain `date -d "Jan 1 2014" +%s` but I don’t think it does as I still get the same output – not sure why? Here’s the code where
–setbegin is used, it’s in
htcondor-master/htcondor-master/src /condor_tools/user_prio.cpp ----------------------------------------
else if (SetBegin) { // set begin usage time char* tmp; if( ! (tmp = strchr(argv[SetBegin+1], '@')) ) { fprintf( stderr,
"%s: You must specify the full name of the submittor you wish\n", argv[0] ); fprintf( stderr, "\tto update the begin usage time of (%s or %s)\n", "user@xxxxxxxxxx", "user@xxxxxxxxxxxxxx" ); exit(1); } int beginTime=atoi(argv[SetBegin+2]); if (beginTime<0) { fprintf( stderr, "Time must be greater than 0 seconds\n"); exit(1); } // send request Sock* sock; if( !(sock = negotiator.startCommand(SET_BEGINTIME, Stream::reli_sock, 0) ) || !sock->put(argv[SetBegin+1]) || !sock->put(beginTime) || !sock->end_of_message()) { fprintf( stderr, "failed to send SET_BEGINTIME command to negotiator\n" ); exit(1); } sock->close(); delete sock; printf("The Begin Usage Time of %s was set to %d\n", argv[SetBegin+1],beginTime); } ---------------------------------------- Might need some input from whoever wrote this bit of code… --Russell From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx]
On Behalf Of hcxckwk Dear HTCondor Users, Every year we need to report on the HTCondor resources usage from July 01 last year to June 30 of the current year, especially for certain heavy users. According to suggestion from many colleagues, the command "condor_userprio -usage -allusers" really works and product the following printout: Last Priority Update: 9/14 11:57
(2) If no, in the manual I can still find an option condor_userprio -usage -setbegin
user4@site2 "12/06/2013 20:34" In all cases the system only displayed that
But when I re-issued the command There was no change to the display, i.e. still User Name In Use (wghted-hrs) Start Time Usage Time My question(2), WHAT is format of value that the option "-setbegin {username}" is expecting, (3) If the "userprio" command cannot serve the purpose, will it be better to use the "condor_history" command? Thanks in advance. WK Kwan |