Active IQ Unified Manager Discussions
Active IQ Unified Manager Discussions
Hi,
I have the following question:
I have a workflow to add clients to an export rule. In the command I check with an nslookup if the clients exist and then it only adds existing clients to the rule.
Now I want, that it displays an information while executing, if one of the clients doesn't exist.
The only way I found to display a message while executing the workflow is through an error.
Is there any other way to do it? I want the workflow to run successfully, even if one client doesn't exist.
I'm running WFA 4.0 on Linux.
Thanks for the help
Regards,
Simon
Solved! See The Solution
Simon,
You can also set the "Advanced" option on the workflow command to continue at the next step in the workflow on an error. This way you can throw the Error to the WFA screen, and the workflow will continue. Before this feature was available I used a command to throw the error at the end of the workflow and made the text say WARNING. So I think you have multiple options for this. Take a look at the advanced tab. You may want to ensure that your checks are in there own command, so that you can stop the workflow on a legitimate error as well.
Mike
Warning, I'm more of a powershell guy than Perl. However, checkout the "Initialize or Update Storage Virtual Machine SnapMirror" command. They have an example in there on how to post to the log, and just use the info flag instead of warning.
my $wfa_util = WFAUtil->new();
$wfa_util->sendLog('INFO', 'Connecting to cluster: ' . $DestinationCluster);
Simon -
For Powershell you can use the Get-WFALogger cmdlet ...
I hope this response has been helpful to you.
At your service,
Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, FastLane US http://www.fastlaneus.com/
(P.S. I appreciate 'kudos' on any helpful posts.)
You could log from commands as shown in examples below.
In Powershell
Get-WFALogger -Info -message "Creating volume"
In Perl
my wfa_util = WFAUtil->new(); eval { $wfa_util->sendLog('INFO', "Connecting to the cluster: $DestinationCluster"); } |
These messages are visible by clicking on the (i) icon on each step. These messages are also available through REST api
Simon,
You can also set the "Advanced" option on the workflow command to continue at the next step in the workflow on an error. This way you can throw the Error to the WFA screen, and the workflow will continue. Before this feature was available I used a command to throw the error at the end of the workflow and made the text say WARNING. So I think you have multiple options for this. Take a look at the advanced tab. You may want to ensure that your checks are in there own command, so that you can stop the workflow on a legitimate error as well.
Mike
Mike,
I also thought about throwing an error at the end, but thought it was too complicated for such a simple task.
I didn't think about the option to continue after an error though.
Thank you for your help,
I'll check which is the most convenient option.
Regards,
Simon
Ahh I didn't know that you can see the messages there, thank you!
I'll check which is the most convenient option.
Regards,
Simon