Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
node name as parameter in dnr script
System
Hi,
dnr scripts run for each node of replication farm used in deployment definition. Is it possible (within the dnr script) to get somewhere name (nodeRef) of the node the dnr script is currently running for?
Thanks for answer, Bohuslav
Find more posts tagged with
Comments
Adam Stoller
Is your DNR script running on the source side or target side?
Is your goal to have the DNR script only run once? Or do you want to do something different for each node where it runs?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
It is running on source side and I want to do something different for each node where it runs. I do not want to run it on target side because script uses also other functionality and libraries residing on source. Script is supposed to call jsp on web server running on each node, but the web server's host name differs (is node dependent).
Bohuslav.
Adam Stoller
If you ran it from the target side - the script you ran could check the local machine's hostname.
If you only wanted to run it once for all targets, you could use dnrDeploymentJob (OD 5.6 or later)
You could do a dump of the in-memory log in your DNR script to see if the information is listed. Taking a quick look at the generatred manifest files, it doesn't look like the target node name (or real hostname) is listed anywhere - so you might have to log a feature request with Support - which won't help you here/now but might help you eventually... However, it's possible the in-memory log may contain additional information that isn't in the written out log, hence I suggest dumping it from within your DNR so that you can see if it provides the handle you need.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
Fyi, feature request # 53816 is for the in-memory manifest to include server name.
Also, note that dnrDeploymentJob only works on the source system and not the target(s).
Todd Scallan
Director of Product Management
Interwoven
t: 408-530-7167
e:
tscallan@interwoven.com