Finding WWN’s on Windows Server 2012 Using PowerShell

With a single command you can retrieve WWN’s on Windows Server 2012 R2 using PowerShell.

Open the PowerShell command and type:

Get-WmiObject -class MSFC_FCAdapterHBAAttributes -namespace “root\WMI” | ForEach-Object {(($_.NodeWWN) | ForEach-Object {“{0:x}” -f $_}) -join “:”}

And that is all there is to it. Simple and fast using PowerShell.

Update: I have been been made aware of another way to get the WWN on Windows 2012 R2 with a cmdlet called get-initiatorport which was added to Windows Server 2012 R2. This is a much cleaner way of retrieving the WWN information instead of the WMI call.

 

PS C:\> Get-InitiatorPort

InstanceName NodeAddress PortAddress ConnectionType
------------ ----------- ----------- --------------
PCI\VEN_10DF&DEV_F100&SUBS... 20000090fa56b930 10000090fa56b930 Fibre Channel
PCI\VEN_10DF&DEV_F100&SUBS... 20000090fa56b931 10000090fa56b931 Fibre Channel

You can also filter the display and just get the PortAddress

PS C:\> Get-InitiatorPort | Select-Object -Property PortAddress | Format-Table -AutoSize

PortAddress
-----------
10000090fa56b930
10000090fa56b931

More information on get-initiatorport and many other storage related cmdlets can be found here!

 

Site

Java plugin needed message when connecting to a website

I had issue connecting to a broccade switch. I got a message that I need to install Java. But Java latest version is already installed on my system.

I tried to install an old version but I could not solve that.

I Found this on a website.

  1. Install Java Latest version 32bit (even if on a x64 box)
  2. Edit the Java.Security file and comment out (put a # sign in front)
    use notepad++ or any other text editor that allows proper formatting display
Line 569

#jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
#    RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224


And
Line 613

# jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024

3. Do this for both java.security files if you have both 32 and 64 bit java installed. The file(s) are found at:
C:\Program Files (x86) \Java\jre7\lib\security
C:\Program Files\Java\jre7\lib\security

4. Open up control panel and lower the java security bar to medium

5. Add the URLS of your brocades into the Exception Site List (make sure this is identical to what you type into your browser or have bookmarked)

Link