Tuesday, July 11, 2017

NTP Drift fix

https://superuser.com/questions/425233/how-can-i-check-a-systems-current-ntp-configuration

https://www.experts-exchange.com/videos/511/Windows-Server-2012-Configuring-NTP-Servers-for-Time-Synchronization.html

w32tm /query /status
I got:
The command /query is unknown.
Then I tried:
reg QUERY [\\machine\]HKLM\SYSTEM\CurrentControlSet\Services\W32Time
I got:
ERROR: The system was unable to find the specified registry key or value.
Then I tried:
net time /querysntp
I got:
This computer is not currently configured to use a specific SNTP server.
So, basically, the service was not running. Following these instructions, I did:
w32tm /unregister
w32tm /unregister
w32tm /register
net start w32time
Finally, all the above would work. Then I just needed to set my ntp up... I did it with:
w32tm /config /manualpeerlist:10.0.0.5 /syncfromflags:manual /reliable:yes /update
following instructions from here, but perhaps it could've been as easy as:
net time /setsntp:10.0.0.5
as instructed here. (10.0.0.5 being my local NTP server). If you're not using a local NTP server, you can use the generic one:
w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:manual /reliable:yes /update
Finally, you might need to do the following, which was not necessary for me:
w32tm /config /update
w32tm /resync /rediscover

Regedit
Computer/Local Machine/System/CurrentControlSet/Services/W32time/Parameters
NTPServer 1.1.1.1, 2.2.2.2
Type NTP





Wednesday, June 21, 2017

UCS new Key ring

A# scope security
A /security # scope keyring default
A /security/keyring # set regenerate yes
A /security/keyring* # commit-buffer

Monday, May 8, 2017

Windows 2008 R2 KB3145126 KILLED DNS

Just FYI, KB3145126 which ironically supposed to resolve the DNS issues actually kills DNS altogether. Just spent my day off to figure this out. Hope it'll help out others so you don't lose your day off!
Windows 2008 R2 x64
Uninstall KB3145126 

Thursday, March 2, 2017

Vmware SYSLOG Powercli

Connect-VIServer -Server (Read-Host "what is the vcenter to use?") -Credential (Get-Credential -Message "What is your VCenter Admin UserID & PW")

$Syslog = "udp://10.1.21.41:514"

$vmhosts = get-vmhost

#practice Run ##  Remove Line 6 to complete all Hosts
$vmhosts = $vmhosts|where {$_.name -eq "iad-esx-ucs1-05.st.com"}

foreach ($vmhost in $vmhosts)
{
#Display the ESXi Host being modified
Write-Output "Processing... $($vmhost.name)"

#Set the Syslog Server
$vmhost | Get-AdvancedSetting -Name Syslog.global.logHost | Set-AdvancedSetting -Value $Syslog -Confirm:$false

#Restart the syslog service
$esxcli = Get-EsxCli -VMHost $vmhost
$esxcli.system.syslog.reload()

#Open firewall ports
if(((Get-VMHostFirewallException -Name "syslog" -VMHost $vmhost).Enabled) -ne $true)
{Get-VMHostFirewallException -Name "syslog" -VMHost $vmhost | set-VMHostFirewallException -Enabled:$true}

}

Vmware Time Servers

0.vmware.pool.ntp.org, 1.vmware.pool.ntp.org, 2.vmware.pool.ntp.org, 3.vmware.pool.ntp.org

w32tm /config /manualpeerlist:10.1.16.123, 10.25.16.123 /syncfromflags:manual /reliable:yes /update

Wednesday, February 1, 2017

How to create RDM mappings for SQL Clustering with MSCS on VMware 6.0 -

Using vSphere 6.0
For the sake of this discussion, we’re building two VMs for use in a two node failover MSCS cluster for SQL 2012.  We’ll simply call them A and B.
We will be using the Web Client for this, since that’s the direction VMware is pushing. However, the Fat (C#) client is faster for this task as it takes fewer steps.  For example, on the fat client, when you create the first RDM mapping, it will automatically create a new, second SCSI controller. When on the web client, you have to manually create the SCSI controller first, then start building the RDM drives.
The documentation in the 6.0 documents is very sparse, and I don’t think it’s even complete or accurate so this took a bit of effort to figure out and get set up.

Add a new SCSI Controller (we had issues with other “types” and use VMware Paravirtual exclusively now)
Add a new disk;

Vmware NSX SSL creation 

Using OpenSSL for NSX Manager SSL import: Creates CSR and 4096 bit KEY Creating NSX 6.4.2 SSL    openssl req -out nsxcert.csr -newkey rsa:40...