1just-man-pages/condor_advertiGseen(e1r)al CommandsjMuasntu-amlan-pages/condor_advertise(1)
2
3
4

Name

6       condor_advertise Send a ClassAd to the condor_collector daemon
7

Synopsis

9       condor_advertise   [  -help  -version  ]  [  -pool  centralmanagerhost‐
10       name[:portname] ] [ -debug ] [ -tcp ] update-command [ classad-filename
11       ]
12

Description

14       condor_advertise  sends a ClassAd to the condor_collector daemon on the
15       central manager machine. The required argument update-command says what
16       daemon  type's ClassAd is to be updated. The optional argument classad-
17       filename is the file from which the ClassAd should be read. If classad-
18       filename is omitted or is ``-'', then the ClassAd is read from standard
19       input.
20
21       The update-command may be one of the following strings:
22
23       UPDATE_STARTD_AD
24
25
26
27
28
29       UPDATE_SCHEDD_AD
30
31
32
33
34
35       UPDATE_MASTER_AD
36
37
38
39
40
41       UPDATE_GATEWAY_AD
42
43
44
45
46
47       UPDATE_CKPT_SRVR_AD
48
49
50
51
52
53       UPDATE_NEGOTIATOR_AD
54
55
56
57
58
59       UPDATE_HAD_AD
60
61
62
63
64
65       UPDATE_AD_GENERIC
66
67
68
69
70
71       UPDATE_SUBMITTOR_AD
72
73
74
75
76
77       UPDATE_COLLECTOR_AD
78
79
80
81
82
83       UPDATE_LICENSE_AD
84
85
86
87
88
89       UPDATE_STORAGE_AD
90
91
92
93
94
95       condor_advertise can also be used to  invalidate  and  delete  ClassAds
96       currently held by the condor_collector daemon. In this case the update-
97       command will be one of the following strings:
98
99       INVALIDATE_STARTD_ADS
100
101
102
103
104
105       INVALIDATE_SCHEDD_ADS
106
107
108
109
110
111       INVALIDATE_MASTER_ADS
112
113
114
115
116
117       INVALIDATE_GATEWAY_ADS
118
119
120
121
122
123       INVALIDATE_CKPT_SRVR_ADS
124
125
126
127
128
129       INVALIDATE_NEGOTIATOR_ADS
130
131
132
133
134
135       INVALIDATE_HAD_ADS
136
137
138
139
140
141       INVALIDATE_ADS_GENERIC
142
143
144
145
146
147       INVALIDATE_SUBMITTOR_ADS
148
149
150
151
152
153       INVALIDATE_COLLECTOR_ADS
154
155
156
157
158
159       INVALIDATE_LICENSE_ADS
160
161
162
163
164
165       INVALIDATE_STORAGE_ADS
166
167
168
169
170
171       For any of these INVALIDATE commands, the ClassAd in the required  file
172       consists of three entries. The file contents will be similar to:
173
174       MyType = "Query"
175       TargetType = "Machine"
176       Requirements = Name == "condor.example.com"
177
178       The  definition  for  MyTypeis  always  Query.  TargetTypeis set to the
179       MyTypeof the ad to be deleted. This MyTypeis DaemonMasterfor  the  con‐
180       dor_master  ClassAd, Machinefor the condor_startd ClassAd, Schedulerfor
181       the condor_schedd  ClassAd,  and  Negotiatorfor  the  condor_negotiator
182       ClassAd.  Requirementsis  an expression evaluated within the context of
183       ads of TargetType. When Requirementsevaluates to True, the matching  ad
184       is invalidated. A full example is given below.
185

Options

187       -help
188
189          Display usage information
190
191
192
193       -version
194
195          Display version information
196
197
198
199       -pool centralmanagerhostname[:portname]
200
201          Specify  a  pool  by  giving  the central manager's host name and an
202          optional port number. The default is the COLLECTOR_HOSTspecified  in
203          the configuration file.
204
205
206
207       -tcp
208
209          Use TCP for communication. Without this option, UDP is used.
210
211
212
213       -debug
214
215          Print debugging information as the command executes.
216
217
218

General Remarks

220       The  job  and  machine  ClassAds  are regularly updated. Therefore, the
221       result of condor_advertise is likely to be overwritten in a very  short
222       time.  It  is unlikely that either Condor users (those who submit jobs)
223       or administrators will ever have a use  for  this  command.  If  it  is
224       desired  to  update  or  set a ClassAd attribute, the condor_config_val
225       command is the proper command to use.
226
227       For those administrators who do need condor_advertise , you can option‐
228       ally include these attributes:
229
230       DaemonStartTime - The time the service you are advertising started run‐
231       ning. Measured in seconds since the Unix epoch.
232
233       UpdateSequenceNumber - An integer that begins at 0  and  increments  by
234       one each time you re-advertise the same ad.
235
236       If  both of the above are included, the condor_collector will automati‐
237       cally include the following attributes:
238
239       UpdatesTotal - The actual number of advertisements for this daemon that
240       the condor_collector has seen.
241
242       UpdatesLost  -  The  number of advertisements that for this daemon that
243       the condor_collector expected to see, but did not.
244
245       UpdatesSequenced - The total of UpdatesTotal and UpdatesLost.
246
247       UpdatesHistory - See COLLECTOR_DAEMON_HISTORY_SIZEin section .
248

Examples

250       Assume that a machine called condor.example.com is turned off, yet  its
251       condor_startd  ClassAd does not expire for another 20 minutes. To avoid
252       this machine being matched, an  administrator  chooses  to  delete  the
253       machine's  condor_startd  ClassAd.  Create a file (called remove_filein
254       this example) with the three required attributes:
255
256       MyType = "Query"
257       TargetType = "Machine"
258       Requirements = Name == "condor.example.com"
259
260       This file is used with the command:
261
262       % condor_advertise INVALIDATE_STARTD_ADS remove_file
263

Exit Status

265       condor_advertise will exit with a status value of 0  (zero)  upon  suc‐
266       cess, and it will exit with the value 1 (one) upon failure.
267

Author

269       Condor Team, University of Wisconsin-Madison
270
272       Copyright (C) 1990-2009 Condor Team, Computer Sciences Department, Uni‐
273       versity  of  Wisconsin-Madison,  Madison,  WI.  All  Rights   Reserved.
274       Licensed under the Apache License, Version 2.0.
275
276       See   the   Condor   Version   7.4.2  Manual  or  http://www.condorpro
277       ject.org/licensefor additional notices. condor-admin@cs.wisc.edu
278
279
280
281                                     date   just-man-pages/condor_advertise(1)
Impressum