Skip to content

Instantly share code, notes, and snippets.

View bedecarroll's full-sized avatar

Bede Carroll bedecarroll

View GitHub Profile
@bedecarroll
bedecarroll / gist:6950399
Created October 12, 2013 14:10
Attaching VMware Update Manager baselines to lots of datacentres.
Add-PSSnapin *vmware*
Connect-VIServer <your vCenter Server>
$baseline = Get-Baseline -Name "Vendor VIBs"
Get-Datacenter | Where-Object Name -notlike "<Insert name of exclusions here>" | % { Attach-Baseline -Baseline $baseline -Entity $_ }
Disconnect-VIServer
@bedecarroll
bedecarroll / gist:7076589
Created October 20, 2013 23:26
Create PowerShell profile.
New-Item $profile -Force
notepad $profile
@bedecarroll
bedecarroll / gist:7405639
Created November 11, 2013 00:02
Get the last WinSAT run values and present them like the old WEI page
Get-CimInstance Win32_WinSAT | Format-List @{Label="Base Score";Expression={$_.WinSPRLevel}},@{Label="Processor";Expression={$_.CPUScore}},@{Label="Memory (RAM)";Expression={$_.MemoryScore}},@{Label="Graphics";Expression={$_.GraphicsScore}},@{Label="Gaming graphics";Expression={$_.D3DScore}},@{Label="Primary hard disk";Expression={$_.DiskScore}}
@bedecarroll
bedecarroll / 1 VDEV
Created January 27, 2015 02:50
ZFS 1 VDEV layout
# zpool status tank
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/ ONLINE 0 0 0
@bedecarroll
bedecarroll / 2 VDEV
Created January 27, 2015 02:54
ZFS 2 VDEV layout
# zpool status tank
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/ ONLINE 0 0 0
@bedecarroll
bedecarroll / gist:ed85542ac3251c80e1c7
Last active August 29, 2015 14:14
VMware LSI Status After Flash
/tmp # /opt/lsi/bin/sas2flash -list
LSI Corporation SAS2 Flash Utility
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved
Adapter Selected is a LSI SAS: SAS2308_2(D1)
Controller Number : 0
Controller : SAS2308_2(D1)
PCI Address : 00:08:00:00
@bedecarroll
bedecarroll / gist:d291f3650024c7b7d875
Created January 27, 2015 13:16
VMware LSI Status Before Flash
/tmp # /opt/lsi/bin/sas2flash -list
LSI Corporation SAS2 Flash Utility
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved
Adapter Selected is a LSI SAS: SAS2308_2(D1)
Controller Number : 0
Controller : SAS2308_2(D1)
PCI Address : 00:08:00:00
@bedecarroll
bedecarroll / gist:e49ce6ef95e6a1524929
Created January 27, 2015 13:21
VMware LSI Flash Output
/tmp # /opt/lsi/bin/sas2flash -o -f /tmp/9207-8.bin -b /tmp/mptsas2.rom
LSI Corporation SAS2 Flash Utility
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved
Advanced Mode Set
Adapter Selected is a LSI SAS: SAS2308_2(D1)
Executing Operation: Flash Firmware Image
@bedecarroll
bedecarroll / gist:de2e570955a407252c44
Created January 27, 2015 13:25
FreeNAS P16 Dell HBA Cross Flash In OS Attempt
# sas2flash -o -f /tmp/9200-8e.bin -b /tmp/mptsas2.rom
LSI Corporation SAS2 Flash Utility
Version 14.00.00.00 (2012.07.04)
Copyright (c) 2008-2012 LSI Corporation. All rights reserved
Advanced Mode Set
Adapter Selected is a LSI SAS: SAS2008(B2)
Executing Operation: Flash Firmware Image
@bedecarroll
bedecarroll / gist:ddf7bb4a797846ee23b9
Created January 27, 2015 13:27
FreeNAS P16 Dell HBA Cross Flash After Adapter Information
# sas2flash -list
LSI Corporation SAS2 Flash Utility
Version 14.00.00.00 (2012.07.04)
Copyright (c) 2008-2012 LSI Corporation. All rights reserved
Adapter Selected is a LSI SAS: SAS2008(B2)
Controller Number : 0
Controller : SAS2008(B2)
PCI Address : 00:41:00:00