Configuring Your Own Local Startd Attributes
Now, you will be able to define your own special attributes in your
machine's ClassAd.
Like many administrative tasks in Condor, all you must do is edit
some values in your config file and send a reconfig to accomplish this
task.
First, you must edit your local config file.
- Find the path to your machine's local config file:
% condor_config_val local_config_file
- Edit this file (use vi or emacs)
- The file will be empty.
- Make up some attribute you want to define for your machine. This
could be anything you want. The only requirement is if you
define a string, you must enclose the string value in " marks.
You can also define numeric attributes, or boolean attributes
(True or False). Here are some examples:
Color = "blue"
Bandwidth = 4.5
HasMonitor = True
- Once you define the attribute(s) you care about, you must tell
Condor you want them advertised in the ClassAd. You do this by
adding a "STARTD_EXPRS" setting. This should be a
comma-seperated list of attribute names you care about.
Here's an example:
STARTD_EXPRS = Color, Bandwidth, HasMonitor
- Once you are done, save the file and exit.
Now, you just have to send a condor_reconfig to put these changes
into effect:
% condor_reconfig
Now, you can see these new attributes in the ClassAd of your own
machine, by using "condor_status -long":
% condor_status -l `hostname`
In the User's Tutorial, we'll submit jobs that will look for these
kinds of custom attributes. However, we don't have time for that today.
We're done!