Skip to content

Update Map

Tom Mitchell edited this page Nov 18, 2016 · 1 revision

How to update the aggregate map on the portal

Run these commands on the portal host. You'll need a valid omni config file that is configured to use your portal.geni.net certificate and key.

  1. Download all advertisement RSpecs from all AMs listed in the portal service registry (takes about 5 minutes to run):

    geni-get-ad-rspecs -c <omni_config_file_location> -s /path/to/my/saved/rspecs --silent
    
  2. Parse downloaded RSpecs and write to a GeoJSON file (takes 1 to 2 minutes to run):

    geni-parse-map-data -s /path/to/my/saved/rspecs -o /path/to/current.json --silent
    
    sudo mv /path/to/current.json /var/www/common/map/current.json
    
  3. Commit updated current.json to git (geni-portal/portal/www/common/map/current.json)

Notes

  • Use the --silent option when running as a cron job so information and debugging messages aren't shown.
  • Use the --debug option to get a verbose output of what's going on.

More information on specific options is available in the man pages:

man geni-get-ad-rspecs
man geni-parse-map-data
Clone this wiki locally