Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Is it possible to create a compound variable from a row repeat?

2016-10-31
06:59 AM
4,651 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to create a complex workflow that will work for any number of nodes in a cluster. One of the steps has to be adding the mgmt interface to a new failover-group. I have a command that will do that, but it needs the node names as input. Is there a way to create a variable that =+ each repeats node? $full_node =+ NodeMemeber1.name and would allow me to use that in another row?
Solved! See The Solution
1 ACCEPTED SOLUTION
dblackwe has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe as you are looping through the nodes to do the rename, you could be building up a workflow variable that holds the complete list of node names (new or old) using the 'additional' row repetition variables ... something like:
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you considered getting that information directly from the cluster and just doing the looping with a single command.
Look at Get-NcClusterNode
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Normally I would try that. However the failover-group setup command I have for WFA needs all nodes specifiec at the same time. Also, part of the workflow changes the node names. They come in as 01,02,03 etc.. and the first step is to rename them to h01a,h01b,h02a,h02b etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you export the command and attach the .dar file?
dblackwe has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe as you are looping through the nodes to do the rename, you could be building up a workflow variable that holds the complete list of node names (new or old) using the 'additional' row repetition variables ... something like:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This solved exactly what I wanted/needed. Thank you.
