Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The new XML file sites.xml can be generated from the above database using the script create_sites-xml.pl:

Code Block
51cottrell@pinger:~>bin/create_sites-xml.pl -help
Creates the sites.xml PingER configuration from a database
Usage: bin/create_sites-xml.pl [options]
Options:
  --template=s            template file to use for xml creation
  --host=s                hostname of database location
  --port=s                port number for database
  --db=s                  database name
  --user=s                username for database
  --password=s            password for database
  --ability=i             whether to get enabled or disabled landmarks
                          default = 1 (1=enabled, 0=disabled)
  --help                  this help message
Purpose:
      Script to create the sites.xml file as per
      http://confluence.slac.stanford.edu/display/IEPM/PingER+Sites+XML
      it will poll a mysql database and write out the xml file from a template.
      all this script does is to construct a useable datastructure to populate
      the template file and spits it out to STDOUT
      Output:
  The xml file of landmarks is written to STDOUT
Examples:
  create_sites-xml.pl > /afs/slac/www/comp/net/wan-mon/tulip/sites.xml
  create_sites-xml.pl --ability 0 > /afs/slac/www/comp/net/wan-mon/tulip/sites-disabled.xml
  create_sites-xml.pl --help
Version=Version 1.1, 12/10/09; Author: Qasim Bilal; Maintainer: Les Cottrell

...