Giter Club home page Giter Club logo

get-vlanhealthcheck's Introduction

Get-VLANHealthCheck

Exports the results of the vCenters VLAN Health Check.

If you work with a lot of VLANs, you should find that the HTML5 vCenter Health Check really starts to be come unusable. There is also no way to dump out that data, that I could find.

This script is an attempt to provide that functionality.

The script performs three steps.

  1. Collect the VMhost names, vmnics, Nic speed, Nic MAC address, SwitchID, and PortID.
  2. Collect the VLAN HealthCheck results.

Now these two tables of data are rather useless because there is no common element between them. However, the Uplinks have common elements across both tables.

  1. Collect Uplinks
  2. Merge data together.

Credit where credit is due. https://kb.vmware.com/s/article/1007069 The initial script just pulled the VLAN information from the CDP. But I found that "observed traffic" wasn't reliable enough over time. VLANs would disappear. However it was useful in getting the switch and port information.

Luc Dekens' code here https://communities.vmware.com/message/2643890#2643890 helped me figure out how to parse the Trunked and UnTrunked VLANs.

https://www.vnugglets.com/2014/07/get-vmhost-fc-hba-wwn-info-most-quickly.html Then I happened across this post about HBA WWNs a year or so later. This script was bazingly fast. I rewrote how my script gathered hosts' information to follow the method employed here. Sure enough it chopped down the runtime.

I had one spot which was still taking forever to process. Collecting Uplinks. So I reached out to Matt Boren, the author of vNugglets, on vmwarecode.slack.com and asked him for help. He worked up an alternative which was 10x faster.

This script will get the job done but I'm sure could use more refinement.

get-vlanhealthcheck's People

Contributors

mrbassplayer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.