Changes between Version 35 and Version 36 of FeddCommands


Ignore:
Timestamp:
Jun 12, 2014 2:53:31 PM (10 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FeddCommands

    v35 v36  
    2020 '''--logfile='''''filename''::
    2121  Redirect log output to ''filename'' rather than the default standard output
     22
    2223== Command Line ==
    2324
     
    3132
    3233 '''--cert='''''filename''::
    33   Certificate from which to derive the user's [FeddAbout#GlobalIdentifiers:Fedids fedid].  By default the contents of `.ssl/emulab.pem` in the user's home directory is used.
     34  Certificate from which to derive the user's [FeddAbout#GlobalIdentifiers:Fedids fedid].  By default the contents of `.ssl/fedid.pem` or `.ssl/emulab.pem` in the user's home directory is used. `fedid.pem` is preferred.
    3435 '''--debug'''::
    3536  Produce additional debugging output.
     
    5354`fedd_create.py` takes the following arguments:
    5455
    55  '''--active='''''testbedname'''::
    56   Tell the experiment controller that ''testbedname'' prefers to initiate connections from its portal nodes
    5756 '''--experiment_cert='''''filename''::
    5857  Store the certificate used to access the resulting experiment in ''filename''.  This certificate can be used as an input parameter to the terminate and informational commands below, but is an output parameter here.
    5958 '''--experiment_name='''''exp_name''::
    6059  Suggest ''exp_name'' to the `fedd` as a local identifier for the federated experiment.  The actual local name chosen will be returned from the command.
     60 '''--delegate'''::
     61  Delegate the rights of the user to the experiment fedid created by the experiment controller.  This is the default, and only developers or serious power users will want anything else.  The '''--no-delegate''' option turns it off.
    6162 '''--file='''''filename''::
    6263  File containing the [FeddAbout#ExperimentDescriptions experiment description].
    63  '''--project='''''export_project''::
    64   The local project to export from the master testbed.
     64 '''--gen_cert'''::
     65  If this is specified, the fedd_create.py code generates the experiment certificate.  One can use this if there is any reason to doubt the experiment controller's fedid creation algorithm.
    6566 '''--map='''''spec''::
    6667  Map a testbed identifier in the experiment description into a URI for its access controller.  Format for ''spec'' is testbed_id:access_uri.  For example, '''--map=deter:http://localhost:11123''' will try to install nodes in the experiment description with a label of "deter" on to the controller at !http://localhost:11123 .  A node label is usually set with the {{{tb-set-node-testbed}}} command in the description.
    6768 '''--master='''''master_testbed''::
    68   The master testbed.  This should correspond to one of the annotations used for testbed names in the experiment.  The `fedd` will use its [FeddDatabases#ExperimentNameMappingDB experiment name mapping DB] to resolve that name to a testbed.
     69  The master testbed.  This should correspond to one of the annotations used for testbed names in the experiment.  The `fedd` will use its [FeddDatabases#ExperimentNameMappingDB experiment name mapping DB] to resolve that name to a testbed.  '''Deprecated''' in favor of explicit service requests.
     70 '''--project='''''export_project''::
     71  The local project to export from the master testbed.  '''Deprecated''' in favor of explicit service requests.
    6972 '''--service='''''spec''::
    7073 Add the given [FeddAbout#ExperimentServices service] to the experiment being created.  This parameter may be specified multiple times.  ''Spec'' has the format:
     
    7477 Names are specified in the [FeddAbout#ExperimentServices discussion of services in the overview].
    7578
     79  These lines can also be specified in the experiment description file as comments prefixed with the tag '''SERVICE:'''
     80
    7681=== fedd_ftopo.py ===
    7782
     
    8792The output has the format:
    8893{{{
    89 element_name:physical_name:testbed
    90 }}}
     94element_name:physical_name:status:supported_ops:testbed
     95}}}
     96
     97The fields are:
     98
     99 * The node name from the experiment layout file
     100 * The local names that the individual testbed has given to the node.  These are testbed dependent.  If there is more than one name assigned by the testbed, they will be comma-separated.
     101 * The status of the individual node
     102 * Operations allowed on the node
     103 * The testbed name on which the node is instantiated
     104
    91105
    92106=== fedd_image.py ===
     
    94108`fedd_image.py` creates visualizations of federated experiments at a box and lines level, showing the interconnections between elements.  The visualizations can be generated from an active federated experiment, a [FeddPluginArchitecture#TopologyDescriptionLanguage topdl] description, or an ns2 description.  `fedd-image.py` calls out to graphviz's `neato` program to draw the graphs, so it or a compatible program must be available.
    95109
    96 Internally, the various representations are converted to topdl and from there into the `neato` specification.  An active experiment's topdl description must be pulled frmo teh experiment controller it was created on and a local ns2 description must be translated by a fedd into topdl.  Topdl descriptions can be drawn without contacting a fedd.
     110Internally, the various representations are converted to topdl and from there into the `neato` specification.  An active experiment's topdl description must be pulled from the experiment controller it was created on and a local ns2 description must be translated by a fedd into topdl.  Topdl descriptions can be drawn without contacting a fedd.
    97111
    98112`fedd_image.py` takes the following arguments in addition to the standard ones:
     
    106120 '''--format='''''fmt''::
    107121 The image format to use.  Valid choices are '''jpg''', '''png''', '''svg''', and '''dot'''.  '''dot''' is graphviz input.
     122 '''--group='''''attribute''::
     123  Group nodes by an attribute attached to them and outline them in the output.  This may be given more than once.
    108124 '''--labels'''::
    109125 Include node names and IP address information in the image.  This is the default.
     
    114130 '''--pixels='''''pix''::
    115131  Output an image that is ''pix'' pixels, square.
    116  '''--group='''''attribute''::
    117   Group nodes by an attribute attached to them and outline them in the output.  This may be given more than once.
    118132 '''--program='''''path''::
    119133 A `neato` compatible program to draw the graph.  This may be helpful if graphviz is installed in a non-standard place or with a non-standard name.
     
    127141  '''id'''::
    128142  The local name and [FeddAbout#GlobalIdentifiers:Fedids fedid] of this experiment.  Just the fedid is returned, not a certificate representing it, or its key.
    129   '''embedding'''::
    130   A raw format of the information returned by [FeddCommands#fedd_ftopo.py].  Unless you're debugging `fedd_ftopo.py` we suggest that program.
    131143  '''experimentdescription'''::
    132144  A [FeddPluginArchitecture#TopologyDescriptionLanguage topdl] description of the global virtual topology of this experiment.  Portal nodes and other elements that are transparent to the experiment (and potentially unknown to the experiment controller) are omitted.
     
    175187=== fedd_new.py ===
    176188
    177 This command creates an experiment but does not attach any resources to it.  This is currently not very useful, but will become useful in the future. It takes the standard arguments and:
     189This command creates an experiment but does not attach any resources to it.  This function is also carried out by [FeddCommands#fedd_create.py fedd_create.py] before it attaches resources to the experiment. For most users that command is more useful. It takes the standard arguments and:
    178190
    179191 '''--experiment_cert='''''filename''::
     
    181193 '''--experiment_name='''''exp_name''::
    182194  Suggest ''exp_name'' to the `fedd` as a local identifier for the federated experiment.  The actual local name chosen will be returned from the command.
     195 '''--gen_cert'''::
     196  If this is specified, the fedd_new.py code generates the experiment certificate.  One can use this if there is any reason to doubt the experiment controller's fedid creation algorithm.
    183197
    184198=== fedd_ns2topdl.py ===
     
    187201
    188202 '''--file='''''filename''::
    189   File containing the [FeddAbout#ExperimentDescriptions experiment description].
     203  File containing the ns2 [FeddAbout#ExperimentDescriptions experiment description].
    190204 '''--output='''''file''::
    191205 A file to store the result.
     
    197211It takes the standard parameters and:
    198212
    199 '''--experiment_cert='''''filename''::
     213 '''--experiment_cert='''''filename''::
    200214  The ''filename'' must contain a certificate valid for the experiment's fedid.  If so it is used to authenticate access to the experiment.  A password may be required if one has been added to the private key.
    201215 '''--experiment_name='''''name''::
     
    210224Deallocate resources from an experiment and remove the experiment structures from the experiment controller.  It takes the standard arguments and:
    211225
    212 '''--experiment_cert='''''filename''::
     226 '''--experiment_cert='''''filename''::
    213227  The ''filename'' must contain a certificate valid for the experiment's fedid.  If so it is used to authenticate access to the experiment.  A password may be required if one has been added to the private key.
    214228 '''--experiment_name='''''name''::
     
    219233 A file to store the log in rather than printing to the standard output.
    220234 '''--print_log'''::
    221  Print a log of the experiment controllers actions.
     235 Print a log of the experiment controllers actions.  This causes fedd_terminate.py to act as a [FeddCommands#fedd_spewlog.py feddd_sppewlog.py] for termination.
    222236
    223237=== fedd_client.py ===
     
    243257
    244258There are several utilities used in the process of setting up a new controller on a DETER-style testbed.  These generate [FeddDatabases federation databases] from the main testbed database.
     259
     260The [FeddCommands#fedid.py fedid.py] command can also be useful in configuration.  It is described with other general command line utilities.
    245261
    246262=== access_exp_access_db.py ===
     
    434450
    435451
     452
     453