the license of VMware vSphere 5.1 includes the diskbased Backup Solution VDP(vSphere Data Protection). So I’ve decited to try the appliance (Version 5.1 Timestamp 2012-10-02) whether these meets our requirements.
Before I started, I ensured that
The DNS forward and reverse resolution of the choosen name and IP address is possible.
The User, who manage the backup, have vCenter Administrator rights.
in his office, a customer have a few Avocent KVM switches to control some client computers in a remote room. He ask me about the possibility to get a list of all computers connected to these boxes, because he do not want to maintain any list by hand.
I research the documention but there is no (scripting) interface from which I could get such a list. SSH is only for connecting serial consoles, SNMP offers no OIDs for such a case.
Because of the costs, DSView isn’t a option. The only way seems to be to extracting the list by reading the Webfrontend HTML output. Let us do this 🙂
I wrote a script in powershell, at least version 2 is needed to handle selfsigned SSL certificates, which do the following:
Login to the Webfronted with https and SSL encryption by System.Net.HTTPWebRequest class to get the authentification cookie
Get the Device HTML page by .NET class System.Net.Webclient and using Authentification cookie
Save HTML do a temporary file
Open the file with Internet Explorer
Get the URL to start a KVM session, computername and portnumber by DOM
Define the User, Password, protocol and the devices:
# KVM User
# KVM Password
# Your Devices
My Knowledgebase for things about Linux, Windows, VMware, Electronic and so on…
Place for Advertisment to support michlstechblog.info
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.