The update-command may be one of the following strings:
condor_advertise can also be used to invalidate and delete ClassAds currently held by the condor_collector daemon. In this case the update-command will be one of the following strings:
For any of these INVALIDATE commands, the ClassAd in the required file consists of three entries. The file contents will be similar to:
MyType = "Query" TargetType = "Machine" Requirements = Name == "condor.example.com"The definition for MyType is always Query. TargetType is set to the MyType of the ad to be deleted. This MyType is DaemonMaster for the condor_master ClassAd, Machine for the condor_startd ClassAd, Scheduler for the condor_schedd ClassAd, and Negotiator for the condor_negotiator ClassAd. Requirements is an expression evaluated within the context of ads of TargetType. When Requirements evaluates to True, the matching ad is invalidated. A full example is given below.
For those administrators who do need condor_advertise, you can optionally include these attributes:
DaemonStartTime - The time the service you are advertising started running. Measured in seconds since the Unix epoch.
UpdateSequenceNumber - An integer that begins at 0 and increments by one each time you re-advertise the same ad.
If both of the above are included, the condor_collector will automatically include the following attributes:
UpdatesTotal - The actual number of advertisements for this daemon that the condor_collector has seen.
UpdatesLost - The number of advertisements that for this daemon that the condor_collector expected to see, but did not.
UpdatesSequenced - The total of UpdatesTotal and UpdatesLost.
UpdatesHistory - See COLLECTOR_DAEMON_HISTORY_SIZE in section 3.3.16.
Assume that a machine called condor.example.com is turned off, yet its condor_startd ClassAd does not expire for another 20 minutes. To avoid this machine being matched, an administrator chooses to delete the machine's condor_startd ClassAd. Create a file (called remove_file in this example) with the three required attributes:
MyType = "Query" TargetType = "Machine" Requirements = Name == "condor.example.com"
This file is used with the command:
% condor_advertise INVALIDATE_STARTD_ADS remove_file
condor_advertise will exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.
See the Condor Version 7.3.2 Manual or http://www.condorproject.org/license for additional notices.