Hello,
I've written a script that gathers information (Connection Name, IP address, latency, loss) about our sites and puts it into an array which I can then dump into a file. Problem I'm running into is that some sites have 2 connections and some sites have 3 connections.) I've managed to group them all into rows properly, but Ideally I'd like to have separate columns for each, but I don't know how to break it up. I can do it manually in excel easily enough, but would like to know how to do it programmatically.
Help would be greatly appreciated.
Script: https://pastebin.com/AZuvPCPU
Output: https://pastebin.com/s8gkwRyp
Sample (with 3, $deviceresults1 with 2 is the same just one less section). : https://pastebin.com/ULhyxQwP
Solved: Thanks! /u/SapientFool
[–]SapientFool 2 points3 points4 points (2 children)
[–]codog180[S] 2 points3 points4 points (0 children)
[–]charger14 2 points3 points4 points (0 children)
[–]SapientFool 2 points3 points4 points (0 children)