Network


Fibre Channel Network



Identify FC
diskpart list disk select disk detail disk


Get WWN with Powershell
Get-WmiObject -class MSFC_FCAdapterHBAAttributes -namespace root\WMI | ForEach- Object {(($_.NodeWWN) | ForEach-Object {{0:x} -f $_}) -join :} Get-ClusterNodeInitiatorPort -Cluster OneOfMyNode | Export-Csv -Path 'C:\Temp\data.csv' Get-ClusterNodeInitiatorPort -Cluster MyCluster | Format-Table -AutoSize Get-InitiatorPort | Select-Object -Property PortAddress | Format-Table -AutoSize gwmi -list -namespace root\wmi | Sort-Object Name -------------------------------------------------------------------------------- Listing from https://techstronghold.com: Function Get-ClusterNodeInitiatorPort { <# .SYNOPSIS Enter name of the cluster or any node and get all node names and their WWN (PWWN) .DESCRIPTION Developer Developer: Rudolf Vesely, http://rudolfvesely.com/ Copyright (c) Rudolf Vesely. All rights reserved License: Free for private use only "RV" are initials of the developer's name Rudolf Vesely and distingue names of Rudolf Vesely's cmdlets from the other cmdlets. Description Enter name of the cluster or any node and get all node names and their WWN (PWWN). Requirements Developed and tested using PowerShell 4.0. .PARAMETER Cluster Name of cluster or node. .EXAMPLE 'EXAMPLE: Enter name of the cluster or any node' Get-ClusterNodeInitiatorPort -Cluster MyCluster | Format-Table -AutoSize .INPUTS .OUTPUTS System.Management.Automation.PSCustomObject .LINK https://techstronghold.com/ #> [CmdletBinding( DefaultParametersetName = 'Cluster', SupportsShouldProcess = $true, PositionalBinding = $false, HelpURI = 'https://techstronghold.com/', ConfirmImpact = 'Medium' )] Param ( [Parameter( Mandatory = $true, Position = 0, ParameterSetName = 'Cluster', ValueFromPipelineByPropertyName = $true )] [ValidateLength(1, 255)] [Alias('ClusterName')] [Alias('NodeName')] [string[]]$Cluster ) Begin { # Configurations $ErrorActionPreference = 'Stop' if ($PSBoundParameters['Debug']) { $DebugPreference = 'Continue' } Set-PSDebug -Strict Set-StrictMode -Version Latest } Process { foreach ($clusterItem in $Cluster) { $clusterNodeItems = Get-ClusterNode -Cluster $clusterItem | Select-Object -ExpandProperty Name foreach ($clusterNodeItem in $clusterNodeItems) { $items = Invoke-Command -ComputerName $clusterNodeItem -ScriptBlock { Get-InitiatorPort } foreach ($item in $items) { [PsCustomObject]@{ Computername = $clusterNodeItem NodeAddress = $item.NodeAddress PortAddress = $item.PortAddress } } } } } End { } } -------------------------------------------------------------------------------------------------- External Links: https://tigerwang1213.wordpress.com/2015/10/05/viewing-the-world-wide-name-for-an-hba-port-in-microsoft-windows/