Parsing HP CLI Output
I've been working on an environment audit for one of my customers (expect to see some of those scripts popping up in the not-too-distant future). In addition to auditing ESXi host configurations, I've been looking at their HP C7000 Chassis configurations and comparing them against enterprise standards. Since there are a lot of chassis in this environment, I've been leveraging scripts to collect data via plink. It's not always easy to parse data from an SSH session into PowerShell objects, but HP gave us a great tool in their CLI (way better than adjusting column size, which is what I was looking for when I came across this). It's already well documented , but it saved me so much time that I figured that it was worth mentioning anyway... the HP CLI commands support this great option: -output=script2. There's actually a couple of "script#" options, but I'm particularly fond of #2. So, what's it do? Well, it turns this style of human frie