VMware Orchestrator F5 plugin question

Looking for the JAVASCRIPT code to use to obtain a single statistic returned by the “GetPoolMemberStatisticsForOneMember” action in com.F5Network.Local plugin for VMware Orchestrator. I am in need of the value associated with the “STATISTIC_CURRENT_SESSIONS” in order to determine when the Pool Member is drained so a shutdown of the Pool Member (associated VM) can occur.

Hello Slaser, You will need to bind the actionresult from the GetPoolMemberStatiscsForoneMember to an attribute. In my case I created one called PollMemberStats, below is the javascript from a scriptable task to print the results of the current sessions.

//entries_curSessions

var statistics = PoolMemberStats.getStatistics();

System.log(“Retrieved statistics from container”);

System.log("exact log " + statistics[23].name + " - " + statistics[23].value);

Kent

Thank you