Changes between Version 1 and Version 2 of FeddCommands


Ignore:
Timestamp:
Dec 12, 2008 5:12:39 PM (16 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FeddCommands

    v1 v2  
    9696
    9797The '''create''' command takes the following additional parameters:
     98 '''--experiment_cert='''''filename''
     99  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 beliw, but is an output parameter here.
    98100 '''--experiment_name='''''exp_name''::
    99101  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.
    100102 '''-file='''''filename''::
    101   File containing the [FeddExperiment experiment description].
     103  File containing the [FeddAbout#ExperimentDescriptions experiment description].
    102104 '''--project='''''export_project''::
    103105  The local project to export from the master testbed.
     106 '''--master='''''master_testbed''::
     107  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.
    104108 '''--sshKey='''''file''::
    105109  Use the contents of ''file'' as the SSH key for service access in the experiment.  By default the contents of `.ssh/id_rsa.pub` is used.
    106  '''--master='''''master_testbed''::
    107   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.
    108110
    109111An example of experiment creation is:
     
    112114$ fedd_client.py create --file=test_fedd.tcl --master=deter --project=emulab-ops --url=https://users.isi.deterlab.net:23234 --transport=xmlrpc
    113115}}}
     116
     117The results are the local name of the experiment and its fedid printed to standard output.  If '''--experiment_file'' is given an X.509 certificate and private key are saved to the given file that can be used as a capability to access the experiment state.
     118
     119The commands to access data about an experiment or to terminate it all take only two non-generic options:
     120
     121 '''--experiment_file='''''filename''
     122  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.
     123 '''--experiment_name='''''name''
     124  The local name of the experiment to terminate.  Only the experiment creator can use this for access.
     125
     126The informational commands are '''vtopo''', '''vis''', and '''info'''.  '''Vtopo''' and '''vis''' are equivalent to the analogous Emulab XMLRPC commands, and `fedd_client.py` prints thier results in raw XML.  '''Info''' provides more information about the experiment, and it is printed as a python hash.  These are primarily used for debugging rather than operations.
     127
     128The '''terminate''' command stops a federated experiment and removes the access granted from the federants.
     129
     130== User_to_project.py ==
     131
     132The `user_to_project.py` command exists to provide command line functionality that Emulab keeps in a web page.  It attaches a user to a project.  It is called by a `fedd` running on `boss` when a project is dynamically created.  Its default installation destination and the default value for the [experiment_control] parameter '''user_to_project''' both default to `/usr/local/bin/user_to_project.py`.  It is unlikely a user will ever need to run this command.