Hi, All.
Just under a week ago I hadn't really touched Powershell/PowerCLI other than working with Windows Server Core. After a request for VI host metrics from my boss and thanks to help from the forum and its members, I am now getting my head around things and have two scripts running as scheduled tasks that gather on the fly / one week average information for our ESX / ESXi hosts.
I have hit a bit of a brick wall though; he also wants me to collect basic rolling data for the hosts on a daily basis and I've been trying to put together a script that I can run once a week, that collects daily averages, per day, for seven days. At the very basic of levels, let's say that I have two hosts and I want to collect the CPU average per day, for seven days, which would look something like:
HOST DAY CPU AVERAGE
host1 day1 average value
host1 day2 average value
host1 day3 average value
host1 day4 average value
host1 day5 average value
host1 day6 average value
host1 day7 average value
host2 day1 average value
etc
I simply cannot get me head around this (and after a week, it's not through lack of trying or trawling of forums) and would appreciate any and all help. I also need memory and network averages but if someone can help with the above, I should be able to add to the code to include these items.
TIA,
Carl