joel74 / POSH-F5-BIGIP

A set of PowerShell modules for working with F5 BIGIP devices using the iControlREST API
14 stars 8 forks source link

Cannot get the number of connections for a specific pool member #11

Open joepeppard opened 5 years ago

joepeppard commented 5 years ago

Using Get-PoolMemberStats without specifying a member name returns the stats for all members. However, if you specify a member, it doesn't return anything. I'm not sure if this is expected or if I need to specify the member name in a specific format.

SCMoperations commented 5 years ago

Hi, what version of the LTM are you using? Have you tried specifying the IP address of the pool member for the Address param? Also, I haven't been keeping this repo as up to date as the F5-LTM repo. Not sure if you've tried getting stats with that PS module.

Thanks, Joel

joepeppard commented 5 years ago

Oh, I'm sorry, I was using F5-LTM and posted to the wrong project. I was able to use the address and reference the connections. The snippet below worked. Thanks!

$connections = Get-PoolMemberStats -F5Session $Session -partition $F5Partition -PoolName $F5Pool -address $nodeip | Select-Object -ExpandProperty 'serverside.curConns'

I could reference the number of connections via $connections.value