Versions Compared

Key

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

Background

It is within the a requirement of SLAC's security policy of SLAC to keep as little number of ports open as possible on its perfSONAR machines. Therefore a group of XML based services can be instructed to listen on one port only instead of using a separate port for each. Services and ports in original configuration:

...

Also change TOOL_CONF and TOOL_LOGGER to tell the init script where the conf files are placed:to point to the "combined.conf" and "combined_logger.conf" files.

Code Block
title/etc/init.d/ps-universal.sh

TOOL_CONF=${CONF_PREFIX}/combined.conf
TOOL_LOGGER=${CONF_PREFIX}/combined_logger.conf

...

Code Block
title/etc/init.d/ps-universal.sh

TOOL="Services"

Step 2. Creating conf files

Browse now to /usr/local/etc/perfSONAR/ and do a concatenate to merge all conf files into one so that the script can read configurations for all four services from a single file:

Code Block
title/usr/local/etc/perfSONAR/combined.conf
cat /usr/local/etc/perfSONAR/*conf > /usr/local/etc/perfSONAR/combined.conf

Then go through and remove duplicate entries at the top-level, e.g. you'll have "disable_echo 0" in there repeatedly. Note: this does not apply to anything inside an <endpoint> block. Also, remove the extraneous <port> entries so that all the endpoint elements are under a single port entry. Since this can be confusing, I am attaching a working sample.