For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

slaser_159976's avatar
slaser_159976
Icon for Nimbostratus rankNimbostratus
Sep 26, 2014

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.

 

2 Replies

  • Kent_Munson_168's avatar
    Kent_Munson_168
    Historic F5 Account

    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