Forum Discussion
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_168Historic 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
- Scott_Laser_152
Nimbostratus
Thank you
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
