Skip to content

Instantly share code, notes, and snippets.

View equelin's full-sized avatar

Erwan Quélin equelin

View GitHub Profile
@equelin
equelin / main.tf
Created April 26, 2019 14:30
Terraform file for deploying a VM on OVH Private Cloud
provider "vsphere" {
user = "admin"
password = "MyAwesomePassword"
vsphere_server = "pcc-XXX-XXX-XXX-XXX.ovh.com"
}
data "vsphere_datacenter" "dc" {
name = "pcc-XXX-XXX-XXX-XXX_datacenter3113"
}
@equelin
equelin / vSAN_Health_Service_Categories.md
Last active April 12, 2019 07:48
vSAN Health Service tests categories

Data

Name Description
vSAN object health Provides a cluster wide overview by summarizing all objects in the cluster, grouping them in fine grained categories of object health.

Hardware compatibility

Name Description
vSAN HCL DB up-to-date Checks the age of the VMware Hardware Compatibility Guide database used for the HCL checks. Shows warning or error when it is older than 90 or 180 days, respectively. VMware updates the VCG frequently, so it is important to keep the local copy up-to-date.
vSAN HCL DB Auto Update Checks the vSAN HCL DB can be downloaded and updated from the VMware HCL release website automatically. When there is no internet access to the VMware public website or the vSAN HCL DB auto update is not enabled, this health check will be in silent health check list by default to show skipped status unless user removes it from silent list manually. Otherwise, it shows warning if the HCL database cannot be auto updated for any other reaso
{
"Status": 0,
"TC": false,
"RD": true,
"RA": true,
"AD": false,
"CD": false,
"Question": [
{
"name": "myvmworld.fr.",

Unity Metrics

List all the metrics available on a Dell EMC Unity. Those metrics are available through the API.

How to interpret the path of a metric

2 possibilities:

  • When there is a * in the path, you can use the path as is in your request, the * will be automatically replaced with all the possibilities. For example, if you want to retrieve the amount of memory available on the SPs, you can use the path sp.*.memory.summary.freeBytes. The API will interpret it as if you were requesting the free memory for the SPA and the SPB. If you need this information only for one of the SPs, you can use the path sp.spa.memory.summary.freeBytes
  • When there is a + in the path, you can replace it with the relevant item before requesting the API. For example, if you want to retrieve the CPU utilization of the SPA, you have to modify the path kpi.sp.+.utilization like this kpi.sp.spa.utilization. If you don't replace it, the array will sum up the metrics.
@equelin
equelin / Decrapifier.ps1
Created February 8, 2018 15:48
Decrapifier
#Windows 10 Decrapifier 2.0: ULTRA-DECRAPIFIER
#2017 CSAND
#Dec 6 2017
#
#NEW STUFF: Nov 23 2017 - Fixed issue with sysprep /generalize. DmwApPushSvc needs to remain enabled for generalize to work. So I commented it out. Feel free to put it back in if you;re not planning to sysprep. WIll add
# a setting to keep it off at a later date.
#
#OFFICIAL DOWNLOAD:
#https://community.spiceworks.com/scripts/show/3298-windows-10-decrapifier-v2
#

Keybase proof

I hereby claim:

  • I am equelin on github.
  • I am equelin (https://keybase.io/equelin) on keybase.
  • I have a public key ASByAb8p2Vbp9C_2zP3IMM9vnehe6dCQdcZu5Xr408yz6wo

To claim this, I am signing this object:

@equelin
equelin / Get-UnityMetric
Created September 18, 2017 12:58
Metrics available in Unity OE 4.2
# https://github.com/equelin/Unity-Powershell
> Get-UnityMetric
Id Name Path Type IsHistoricalAvailable IsRealtimeAvailable
-- ---- ---- ---- --------------------- -------------------
10234 Block Cache Clean Pages sp.*.blockCache.global.summary.cleanPages 5 False True
10239 Block Cache Dirty Data sp.*.blockCache.global.summary.dirtyBytes 5 True True
10240 Block Cache Dirty Pages sp.*.blockCache.global.summary.dirtyPages 5 False True
10257 Block Cache Blocks Flushed sp.*.blockCache.global.summary.flushedBlocks 3 False True
10259 Block Cache Flush Counts sp.*.blockCache.global.summary.flushes
@equelin
equelin / openssl.txt
Last active September 18, 2017 09:36
Myvmworld - Unity Certificat
[req]
default_bits = 2048
prompt = no
default_md = sha256
distinguished_name = dn
[dn]
C=FR
ST=Loire-Atlantique
L=Nantes
@equelin
equelin / builders.json
Last active September 8, 2017 13:28
Myvmworld - Packer demo
"builders": [
{
"type": "amazon-ebs",
"region": "eu-central-1",
"source_ami": "ami-0f2ff760",
"instance_type": "t2.micro",
"ami_name": "windows-base-{{timestamp}}",
"user_data_file":"scripts/ec2-userdata.ps1",
"security_group_id":"sg-4e700e25",
"communicator": "winrm",
@equelin
equelin / createLun.json
Created September 6, 2017 15:49
Unity REST API request for creating LUN
{
"name": "TEST01",
"lunParameters": {
"pool": {
"id": "pool_18"
},
"hostAccess": [
{
"host": {
"id": "Host_33"