wiki:GeniApiProtoGENI

Version 1 (modified by tmitchel@bbn.com, 14 years ago) (diff)

--

Enabling the API

The Aggregate Manager API is an additional interface to a ProtoGENI site. It must be explicitly enabled after ProtoGENI is up and running.

  1. The first step is to install ProtoGENI.
  2. Next, edit /etc/rc.conf and add an additional flag to the apache_flags. Find the line that looks like this:
    apache_flags="-DSSL -DPGENI"
    
    Add the -DGENI_AM flag so it looks like this:
    apache_flags="-DSSL -DPGENI -DGENI_AM"
    
  3. Restart apache:
    sudo /usr/local/etc/rc.d/apache.sh restart 
    
  4. Test it by running one of the AM test scripts
    cd protogeni/test
    am/getversion.py
    
    You should see the following result (or similar):
    {'geni_api': 1}