• New Feature
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • nharward
  • Reporter: tgautier
  • January 17, 2007
  • 0
  • Watchers: 1
  • July 27, 2012
  • March 09, 2007

Description

The value %i should expand to the local ip address of the server.

This expansion should be supported in the server element attributes.

Having this feature will enable the config file to be “location independent” - allowing it to be moved around without having to change the config file.

Comments

Eugene Kuleshov 2007-01-22

From what I see in com.tc.config.schema.dynamic.ParameterSubstituter.substitute(String source) the following macros are supported (including requested %i):

%d - getUniqueTempDirectory() %h - getHostname(); %i - getIpAddress();
%H - System.getProperty(“user.home”); %n - System.getProperty(“user.name”); %o - System.getProperty(“os.name”); %a - System.getProperty(“os.arch”); %v - System.getProperty(“os.version”); %t - System.getProperty(“java.io.tmpdir”);

As far as I can tell this should work for logs and data elments.

Taylor, I just tested 2.2 release and it is working there.

Eugene Kuleshov 2007-01-22

After discussing this with Steve, he suggested that these macros should be documented somewhere.

Eric Ellis 2007-01-22

Sounds good.

Any of you think we may be overdoing it a little with the wildcards? Maybe two or three would be enough.

Fiona OShea 2007-02-07

Updating Due date to last day of Moraga dev iteration

Taylor Gautier 2007-02-27

Let’s apply this fix to demos. Then we need to test that they can be run from localhost and a different host without changing the config. Which is better - %i or %h?

Steve Harris 2007-02-28

With the current demos, is this problem already gone?

Fiona OShea 2007-03-05

QA, this should work according to Gary can you verify?

Fiona OShea 2007-03-05

Marking fixed as Gary says this should work.

Nathaniel Harward 2007-03-08

This is not quite fixed, but is a quick one-liner.

Fiona OShea 2007-03-08

Can we have this fixed be EOD Friday 3/9?

Nathaniel Harward 2007-03-09

The samples tc-config.xml files have also been updated to use a host of “%i” and a symbolic name of “sample”