Author Topic: name of current URS ? SOLVED  (Read 529 times)

Offline GregorV

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
name of current URS ? SOLVED
« on: January 31, 2018, 06:18:24 PM »
In a IRD strategy I need to find out the name of the current URS, which handles the interation because later a third party component wants to access the URS REST interface. For the URL it is necessary to know which of a HA URS pair handles the interaction with a specific connection-id. I thought this should be easy, but it I stuck finding a solution.
Thanks, Gregor
« Last Edit: January 31, 2018, 11:49:58 PM by GregorV »

Offline n3vek7

  • Full Member
  • ***
  • Posts: 138
  • Karma: 3
    • ITKB
Re: name of current URS ?
« Reply #1 on: January 31, 2018, 10:54:24 PM »
Have you tried with the function "Router[APPLICATION_NAME/CLUSTER_NAME]" ?
If not, try assigning this function to a variable and print it in your logs.

Offline GregorV

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: name of current URS ? Solved
« Reply #2 on: January 31, 2018, 11:49:37 PM »
Found the solution with GetConfigOption['',StartFromRouter] which returs the USR name.
I knew it must be simple, but somehow was blind. :(

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7040
  • Karma: 56330
Re: name of current URS ? SOLVED
« Reply #3 on: January 31, 2018, 11:53:24 PM »
Nice, thanks for sharing  ;D