Forum Discussion

mealies_60121's avatar
mealies_60121
Icon for Nimbostratus rankNimbostratus
May 17, 2010

Grabbing user stats using iControl/Powershell

Hi Guys

 

 

I need some help returning the following data using iControl and Powershell, i have only just started using iControl and i am learning powershell as i go so this may be a basic question.

 

 

Using Powershell, I am trying to collect some stats from a custom stats profile. Below is what i have manged so far. I am just stuck on how to get the individual field names and values. Using the following code:-

 

 

$stats = (Get-F5.iControl).localLBprofileUserStatistic.get_statistics("stats_blocked_pv");

 

$blockpv = $SystemStatistics.statistics

 

$blockpv

 

 

generates this output:-

 

 

profile_name statistics

 

------------ ----------

 

stats_blocked_pv {USER_STATISTIC_1, USER_STATISTIC_2, USER_STATISTIC_3,

 

 

How do I retrieve the individual statistic field names and values from this?

 

 

Thanks

 

 

Andrew

 

No RepliesBe the first to reply