Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Sent Output via Email

$
0
0

Hi, I try to create workflow for check oldest snapshot in all of my VM...My goals is the output sent by email to specific recipients but I can't send all of the output....

 

**Scriptable Task

 

.............................

if(days>totalDay){

  snapshots.push(ss);

  System.log("The snapshot "+searchResults[i].folderPath +files[j].path+" of the VM "+ss.config.name+" had "+Math.floor(days)+" days");

  var content = "The snapshot "+searchResults[i].folderPath +files[j].path+" of the VM "+ss.config.name+" had "+Math.floor(days)+" days"; // I add this content variable for sent to my email notification workflow

 

**System.log output**

[2014-04-09 01:32:58.115] [I] The snapshot [Datastore1] data-va/data-va-Snapshot1.vmsn of the VM data-va had 141 days

[2014-04-09 01:32:58.365] [I] The snapshot [Datastore2] Analytics VM_2014225_19448/Analytics VM_2014225_19448-Snapshot4.vmsn of the VM Analytics VM_2014225_19448 had 10 days

[2014-04-09 01:32:58.779] [I] The snapshot [Datastore3] gateway-va/gateway-va-Snapshot1.vmsn of the VM gateway-va had 130 days

[2014-04-09 01:33:00.768] [I] The snapshot [Datastore1] configurator-va/configurator-va-Snapshot145.vmsn of the VM configurator-va had 148 days


But in my email I only receive latest output --> [2014-04-09 01:33:00.768] [I] The snapshot [Datastore1] configurator-va/configurator-va-Snapshot145.vmsn of the VM configurator-va had 148 days


Is it necessary for change the content variable type from string to Array/string?

 

Thank you before....


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>