09-22-2011 06:44 AM - edited 03-14-2019 08:36 AM
09-22-2011 01:37 PM
I see!
Well... I don't know a way of getting it directly. Since you are talking SQL I'm assuming you have premium license, and hopefully some java know-how:
What I might try is using System.getenv() or System.getpropery() (once I'd found the name of a suitable property using the methods that return a map of all the properties) to try and retrieve the hostname - you can then work out the node ID based on what you get from that (admittedly by coding it into the script - e.g. UCCXA=node2, UCCXB=node1 or whatever). Just an idea really; I can get the hostname of my laptop in this way, but the set of properties may be different on the Linux OS and I don't have a server handy.
Regards
Aaron
09-22-2011 12:41 PM
Hi
What are you trying to achieve?
Aaron
09-22-2011 01:14 PM
Hi
Trying to save a single record per call on an SQL database and make that record to match the one on the UCCX database.
Regards
09-22-2011 01:37 PM
I see!
Well... I don't know a way of getting it directly. Since you are talking SQL I'm assuming you have premium license, and hopefully some java know-how:
What I might try is using System.getenv() or System.getpropery() (once I'd found the name of a suitable property using the methods that return a map of all the properties) to try and retrieve the hostname - you can then work out the node ID based on what you get from that (admittedly by coding it into the script - e.g. UCCXA=node2, UCCXB=node1 or whatever). Just an idea really; I can get the hostname of my laptop in this way, but the set of properties may be different on the Linux OS and I don't have a server handy.
Regards
Aaron
09-22-2011 02:01 PM
Yes, i know how to do it using java. I was looking for a cleaner solution using the contact properties, session properties.
But anyways 5 points for you!
09-18-2014 01:05 PM
Since I had to do this I thought I would post it.
nodeID needs to be created as a string
Set nodeID = { String hostname = System.getenv().get("HOSTNAME"); return hostname; }
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide