Labels

maandag 10 oktober 2016

Brocade Switch Explorer Java Settings

To solve Java connection problems to Brocade switches:

- Install the latest Java version
- Open the Java control and set the "Security Level" to "Medium"



- Add both http and https address of the Brocade tot the "Exception Site List" under the "Security" tab.  Make sure to add :80 to the http address!


- Use the following URL in Firefox: http://IP/switchExplorer_installed.html
- Open the JNLP file with "Java Web Start Launcher" and select the option "Do this automatically for files like this from now on".

Works with Java 8 U101 (32bits) on Firefox 48

woensdag 5 oktober 2016

Kill Hyper-V client in "stopping" state

To kill a VM in "stopping" state on a Hyper-V platform run the following commands ont the Hyper-V host who hosts the problematic machine:


1. Find the Guid of the problem VM:
$vmname = "COMPUTERNAME"
$id = (get-vm | ? {$_.name -eq $vmname} | select id).id.guid

2. Find the VM worker process who's responsible for the problematic machine:
$vm_pid = (Get-WmiObject Win32_Process | ? {$_.Name -match 'vmwp' -and $_.CommandLine -match $id}).ProcessId
 

3. Kill process:
stop-process $vm_pid -Force

NTP

Configure DC to sync witch external NPT (nl.pool.ntp.org)

Open UDP 123 in- and outbound for DC
Logon to DC with PDC role
w32tm /config /manualpeerlist:"nl.pool.ntp.org,0x1"
w32tm /config /reliable:yes (makes this DC a reliable time source for the clients)
net stop w32time && net start w32time

Helpful w32tm commands:

- w32tm /resync /nowait (Force synchronizing the time ASAP)
- w32tm /query /configuration (check NTP config)
- w32tm /query /source (Display time source)
- w32tm /query /peers (Display list of all configured NTP servers and their status)
- w32tm /query /status (Display time services status)


Force clients to sync time with DC (elevated mode):

w32tm /config /syncfromflags:domhier /update
net stop w32time && net start w32time


Reset time service to default:

net stop w32time
w32tm /unregister
w32tm /register
net start w32time