This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
// WiFi Settings | |
#define wifi_ssid "ssid" | |
#define wifi_password "pw" | |
// MQTT Settings | |
#define mqtt_server "192.168.0.27" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//include all libraries | |
#include <ESP8266WiFi.h> | |
#include <ESP8266mDNS.h> | |
#include <ESP8266httpUpdate.h> | |
#include <PubSubClient.h> | |
#include <RCSwitch.h> | |
#include <fauxmoESP.h> | |
//basic defines | |
#define MQTT_VERSION MQTT_VERSION_3_1_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$brokers = "mapvasdfp02", "natviasdf2", "stpvasdf02" | |
$vcenters = "mapvasdfp02", "natasdf2", "stasdfp02" | |
#$creds = Get-Credential -Message "Please enter your credentials" | |
"Connecting to vCenter Servers" | |
connect-viserver $vcenters -Credential $creds | |
Set-StrictMode -Version 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$report = @() | |
foreach ($vm in $view) { | |
foreach ($vc in $vcenter) { | |
if($vm.Name -eq $vc.Name) { | |
$entry = [PSCustomObject] @{ | |
Name = $vm.Name | |
CPU = $vc.summary.config.NumCpu | |
Memory = $vc.summary.config.MemorySizeMB | |
}} |
NewerOlder